Received: by 10.192.165.148 with SMTP id m20csp1904245imm; Thu, 3 May 2018 07:16:47 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq1711dUEGt3LHiRQM6BC8zv9GRYH/w/Bqi63feEOFoP+lm7KvvQxW3cy6jhNGP0bak7fXD X-Received: by 2002:a63:b54b:: with SMTP id u11-v6mr19413443pgo.365.1525357007572; Thu, 03 May 2018 07:16:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525357007; cv=none; d=google.com; s=arc-20160816; b=q1WODo52q9inA3O8OF8XwUYSQUtGzN4F1lwIZ87VPnMLorx+ddZ9kurL1Ad9HgOpvK 6/crxv9sNKP7tZPZCjyOgkh05zOxaI4LPoFy0BtsTOP6pbwoIU6YoIBWOFycnT76Ahc0 S78SoSt319e6ZtoPhCnli25qRlvv5C3xYI8B1N7eD/F9wbYdqcf1HYgXQldvRHUqFvPB e/x8d8Ce/RB6puVjNWiq1E8yVN0AjahUzBunyKIn9Wh3HuylYTqeyd6KzaPlnT1cSmMr WSeiYWi5zgtS5Sx4UfPRHmuyv2vU3xNQSzpyTLx/7QNh4LwPi286wg5N5/8L7GaNXDYA s/bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=WkiJN4HYpNQiTY9KZLpSXyo+6CU+OWO5kbUy6N+ZFWI=; b=CkguImOo85IZQBgzx8aBo/e+pDJr9Y16/YYfib1E9tBJp6JQmSUJjDRaDb+fjDaxjj rrh+MeaNvVi7u9SCXk2OOHkAbw32SdlL0EAdOao7kQUFhQv6A6ZLgsdm7weqOojsDjrv 3h6QnuUXazeYoAdwexgVcu1dgOUmaObI0Op6rY0zlDuIjz0Cx/KQiVQXtQUcK2bbEsP+ 6wMNrm7tgQjo7HysEAFtB5C4uGmXRXtqysYCqYyKeHuWeYrLZ5hJbye48HawmqMwZuQ5 qXthe+EWRnXN1gJ3JDjW7epG+rBYI+gCXMhnicWQf2uTAnygkH/M4ubKYTBpiLQNpwUk 0Z8g== 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 f75si14698659pfh.90.2018.05.03.07.16.33; Thu, 03 May 2018 07:16:47 -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 S1751414AbeECOQN (ORCPT + 99 others); Thu, 3 May 2018 10:16:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:49166 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751220AbeECOQK (ORCPT ); Thu, 3 May 2018 10:16:10 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6572D214D5; Thu, 3 May 2018 14:16:08 +0000 (UTC) Date: Thu, 3 May 2018 10:16:06 -0400 From: Steven Rostedt To: "Du, Changbin" Cc: Arnd Bergmann , Masahiro Yamada , Michal Marek , Thomas Gleixner , Ingo Molnar , Andrew Morton , 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: <20180503101606.51b7a6a2@gandalf.local.home> In-Reply-To: <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> <20180503130013.lcsem2xubk5jqmcg@intel.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 3 May 2018 21:00:13 +0800 "Du, Changbin" wrote: > 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. > Agreed, as OPTIMIZE_INLINING is to make functions marked inline not to be inlined. And I just noticed (doing a git grep), that that config is now only available in arch/x86. Maybe it always was, but sparc undefines it for vclock_gettime.c. $ git grep OPTIMIZE_INLIN arch/sparc/vdso/vdso32/vclock_gettime.c:#undef CONFIG_OPTIMIZE_INLINING arch/x86/Kconfig.debug:config OPTIMIZE_INLINING arch/x86/configs/i386_defconfig:CONFIG_OPTIMIZE_INLINING=y arch/x86/configs/x86_64_defconfig:CONFIG_OPTIMIZE_INLINING=y arch/x86/entry/vdso/vdso32/vclock_gettime.c:#undef CONFIG_OPTIMIZE_INLINING include/linux/compiler-gcc.h: !defined(CONFIG_OPTIMIZE_INLINING) || (__GNUC__ < 4) kernel/configs/tiny.config:CONFIG_OPTIMIZE_INLINING=y -- Steve