Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3320252pxa; Tue, 25 Aug 2020 18:41:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVnj2tf7rl/sP7GdP2RdYHvU6DhKmODPHLHSUP7grqlC3IW0L1f8MWdkkwuRGqdfd0BHHu X-Received: by 2002:a17:906:19d5:: with SMTP id h21mr13149942ejd.505.1598406086059; Tue, 25 Aug 2020 18:41:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598406086; cv=none; d=google.com; s=arc-20160816; b=UA7KMIwgN+MTlTTr/LfkqslCGiAQvnUFpvVHkRNLiCfns4BXXQtS+XvTLN/F5JgfuH 9Y4KabTF5kNcli5aqkiT+IJwoRzA8lsJLG6gxxEzKptTtd42wJCF+z6RdigPek4PQTfx EyskHEVhI+Jkma0VWNBq/vhHuhn8Fha1NxmjJNSZsuPSB8Gbqa2upm1u2HUFxnUNDe50 mTTD0MPefEwGtVAv+rYOP8aWS/66TRTpktT3HZew5Okt5VjExiLbw5of5vE/voKJPbdS P6HRKJVsTXkECCzbSJmxM/QcH19aswND9Grj7GpvdK5IjIyxJxv6oU9d/fcGYshOyJCC obBg== 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; bh=DyTkhO3C3TblE5fSodKDG82nbD3vuqUvEKKCZqndw4c=; b=qdOoDKbLM7YbqspOaSYwZWFO3whQ3yxWbUJe2T/FimMakoiOxDIfAkSJPsevjI/DOF a/Fyp+QOylqfnxpmBnZhXvO8IiC/Sldfu4REfu6Q+T/Hgwr3XASim7aPm3mAgBSrcyZc EeiPgYSC6SY8f3O8WDKy2KYRLd233UyCzH2QmVm8gjSaBM7m48ZJBjBGItjW1J9U9D2U vliDd4d4x1UH0OZ7GlBM7WiKqyQ8msvE8qP4Umk32Oq6fCe0ydlf6Gr9ELQpfAZ7SuXg fXH5sJVMWeCC3ltfXKStujJmAl5WQGc75hIB6YFYkv1tPWksL8u31GfqZ5UILmIlpalZ FalA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ob20si533937ejb.330.2020.08.25.18.40.44; Tue, 25 Aug 2020 18:41:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726633AbgHZBjf (ORCPT + 99 others); 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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