Received: by 10.192.165.148 with SMTP id m20csp1832250imm; Thu, 3 May 2018 06:12:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrrPMTwYe+Eenlk90QhI4UgbeT2W3estc6cG1ydhDbGuiy1wdouXoZ+DYVV5QLMCBsP/YTI X-Received: by 2002:a17:902:6113:: with SMTP id t19-v6mr23397089plj.372.1525353132068; Thu, 03 May 2018 06:12:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525353132; cv=none; d=google.com; s=arc-20160816; b=xwCxoJC8jEx3KXU8WyeOLVA2+wekxd56JkzatTvidPo7pdAm5hxLvYCxLxaIw5s7AR FttZEQDmhUhdm57lOYgOL5RvFcd9e//5Ys1Ei/DW4LjuohPHYm5cfI9oqToDnq76ZAm8 geDze1g4QvITlcigsZUg5/CQJx+DW1U6j973cwUcucxBzX1kiTC9NNgMchvi96lZ1ATv bVWHgMA7mO6/PCT/hH45xFxBjVNNXq9mwXOGjHp/4HtZY73mN3qZkFhHQeS8flmYP+gE HbCAsvZd3/Ulx1HM2fxpYJWAqLOVvXZ+FbdOS32nVAhYJsZjydr2gukE1ouRi4DaI5r2 HvVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=SKD4w9a2xPWrld0Y82Xkbw9rCwe7G2mNqD1n0QPxXf4=; b=bi/DdMweOrMdy6sKzG9tZEKN/ipFEeT9FIyZLOxBNsoF0qLFknqD7R7YmqhD3nTl0H s/Af4uijlP7m95nO4rC5wzIDVy0wDCr3vxrGXNmupCKbzlrkUoo3G9PAVMM05dimEAAl L0rRaY83n4jzTLOljU0Kd9vPBqgnXbMDKXUQHSTNwhs7SkeKShtvh+tLP6WgHqxsEWeI ZKAlYJWTT/ZnUUSQRUSqnpO1HecBy6DsxgRfQJRv5GH/4aeQIM5Zr1Djqpu4kDUBhGI4 4GFJ12kThU7EzRtXXxVa8vFBxmla+ic5vumodx+7Xe6FdlBsKWTImPDHrpQk2YV1nMJX qvzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 9-v6si13681009plf.283.2018.05.03.06.11.57; Thu, 03 May 2018 06:12:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751253AbeECNKY (ORCPT + 99 others); Thu, 3 May 2018 09:10:24 -0400 Received: from mga04.intel.com ([192.55.52.120]:58380 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751141AbeECNKW (ORCPT ); Thu, 3 May 2018 09:10:22 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 May 2018 06:10:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,358,1520924400"; d="scan'208";a="37164952" Received: from gvt-dell.bj.intel.com (HELO intel.com) ([10.238.154.59]) by fmsmga008.fm.intel.com with SMTP; 03 May 2018 06:10:15 -0700 Date: Thu, 3 May 2018 21:00:13 +0800 From: "Du, Changbin" To: Arnd Bergmann Cc: changbin.du@intel.com, Masahiro Yamada , Michal Marek , Thomas Gleixner , Ingo Molnar , Andrew Morton , Steven Rostedt , Randy Dunlap , the arch/x86 maintainers , Liam Girdwood , Mark Brown , Linux Kbuild mailing list , Linux Kernel Mailing List , linux-arch Subject: Re: [PATCH v2 3/5] kernel hacking: new config NO_AUTO_INLINE to disable compiler auto-inline optimizations Message-ID: <20180503130013.lcsem2xubk5jqmcg@intel.com> References: <1525268700-10631-1-git-send-email-changbin.du@intel.com> <1525268700-10631-4-git-send-email-changbin.du@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180323-6-5ca392 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 02, 2018 at 04:27:47PM -0400, Arnd Bergmann wrote: > On Wed, May 2, 2018 at 9:44 AM, wrote: > > From: Changbin Du > > > > This patch add a new kernel hacking option NO_AUTO_INLINE. Selecting > > this option will prevent the compiler from optimizing the kernel by > > auto-inlining functions not marked with the inline keyword. > > > > With this option, only functions explicitly marked with "inline" will > > be inlined. This will allow the function tracer to trace more functions > > because it only traces functions that the compiler has not inlined. > > > > Signed-off-by: Changbin Du > > Cc: Steven Rostedt > > Should this be closer to CONFIG_OPTIMIZE_INLINING or > possibly mutually exclusive with it? > They are not related I think. CONFIG_OPTIMIZE_INLINING only has effect on functions which are explicitly marked as inline. > Arnd -- Thanks, Changbin Du