From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751262AbeEBU1x (ORCPT ); Wed, 2 May 2018 16:27:53 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:37670 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750939AbeEBU1t (ORCPT ); Wed, 2 May 2018 16:27:49 -0400 X-Google-Smtp-Source: AB8JxZrR4e5t1PnSqDlZSWTGq2qKlXTlKnVwT9M5pdn3RxaUk5irz+cvAtlqStJRrpgG5/cWrLupTuBxdVvj48PQx4E= MIME-Version: 1.0 In-Reply-To: <1525268700-10631-4-git-send-email-changbin.du@intel.com> References: <1525268700-10631-1-git-send-email-changbin.du@intel.com> <1525268700-10631-4-git-send-email-changbin.du@intel.com> From: Arnd Bergmann Date: Wed, 2 May 2018 16:27:47 -0400 X-Google-Sender-Auth: RVTm6l1lH2SWh0r-8t0siNmCOAs Message-ID: Subject: Re: [PATCH v2 3/5] kernel hacking: new config NO_AUTO_INLINE to disable compiler auto-inline optimizations To: changbin.du@intel.com Cc: 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Arnd