From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CDE0FC433DF for ; Wed, 26 Aug 2020 01:39:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id ACA512075E for ; Wed, 26 Aug 2020 01:39:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726611AbgHZBjf (ORCPT ); Tue, 25 Aug 2020 21:39:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:54196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726599AbgHZBjf (ORCPT ); Tue, 25 Aug 2020 21:39:35 -0400 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (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 1D04A2072D; Wed, 26 Aug 2020 01:39:33 +0000 (UTC) Date: Tue, 25 Aug 2020 21:39:31 -0400 From: Steven Rostedt To: Nicolas Boichat Cc: Douglas Anderson , Guenter Roeck , Andrew Morton , Andy Shevchenko , Daniel Vetter , "Guilherme G. Piccoli" , Kars Mulder , Kees Cook , Masahiro Yamada , Michal Marek , Thomas Gleixner , Tiezhu Yang , Will Deacon , Yue Hu , linux-kbuild@vger.kernel.org, lkml Subject: Re: [PATCH v5] kernel/trace: Add DISALLOW_TRACE_PRINTK make option Message-ID: <20200825213931.04ec7f22@oasis.local.home> In-Reply-To: References: <20200824105852.v5.1.I4feb11d34ce7a0dd5ee2c3327fb5a1a9a646be30@changeid> <20200824093020.073ae8d8@oasis.local.home> X-Mailer: Claws Mail 3.17.3 (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-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org On Tue, 25 Aug 2020 08:38:27 +0800 Nicolas Boichat wrote: > This already works. I'll be honest, I'm not 100% sure why (and if > fully intentional)... > > The CFLAGS end up in 3 generated assembly files: > # grep -R DISALLOW_TRACE_PRINTK * | grep -v ".cmd:" > arch/x86/kernel/asm-offsets.s:# -imultiarch x86_64-linux-gnu -D > __KERNEL__ -D DISALLOW_TRACE_PRINTK > kernel/bounds.s:# -imultiarch x86_64-linux-gnu -D __KERNEL__ -D > DISALLOW_TRACE_PRINTK > scripts/mod/devicetable-offsets.s:# -D DISALLOW_TRACE_PRINTK > (along with all *.cmd files) > > and I suspect some/all of those force a complete kernel rebuild. Yeah, I believe that the modification of CFLAGS causes a recompile of the entire kernel. Thanks! -- Steve