Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2346040pxa; Mon, 24 Aug 2020 11:31:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWWMGxvvyTrkRpIw2F52ac0h3MZ7hMkdj7KnYKneElKT+uIoX9trykWYmTuFBZlhP4cFYm X-Received: by 2002:a17:906:2356:: with SMTP id m22mr22486eja.452.1598293865996; Mon, 24 Aug 2020 11:31:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598293865; cv=none; d=google.com; s=arc-20160816; b=pkkN1UBQlDfunjmh5XFIvyY1cR+kA7OlduJrORcS9AOdXJr+ENVYtMs2g9ItwHiT/T SsI6QZiHxuTe5zmkZHrVO8TmTTfxfjgFIe+XSsI0DxVIVJkQoUw47JpwSbe8zVIkGqUJ NozPCPjQRmo6NoyRlaIdo0/TQDaPQchfJKfST58PtuOEJrswPxNWIOY5oLMJh2BM4fMR gKXBGLcM0euWK5Ml/WEdP00pasEbx8xmINLLSURmlzlgZ/yM1IhHsmrbbG7xaQSSkpT0 1ObsmQVAnZkjld7iW76eTzZhXDUw4TZ0BwfLw63q2dzhR6rLUyW43rqIFPbjvizNH4z8 KCRQ== 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=OIGT5T6JhXxVHGqanwDJFDWGSWDSy/0+u4AcX4YhRoc=; b=errM00OHuAjw2BBHDnYX05Hkz8Rl/+LOukp9fKoK5oLrxlr0MAFtJjOVoSMXcUpLdj sPjNVxFX2Ll6P/HECgxfz95UVKHwR8xpzmwzUBcGKMa/gtu7DrGWviHFt4QHTET1pUuW vmXaQfnMSEco4nIbokL9JcSTAnCfB4tr1HP97sz2rrTh8Qn9JDDNMIkqC9s4PPGqjMSc oqmhpNMpAjH72AhEpaFQ2MHqQxMUT3IhZHMw+0sBevr7d0a+V60bNZIL/P34smdB1wfB cCdxI76wpgT6fMMzTq9L8zht2xF3SuBhrfjETcOVvERg6esSlp8K/o0nA669kAoequBj Ix4A== 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 p21si8219644eds.193.2020.08.24.11.30.43; Mon, 24 Aug 2020 11:31:05 -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 S1726585AbgHXS0k (ORCPT + 99 others); Mon, 24 Aug 2020 14:26:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:33564 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725946AbgHXS0j (ORCPT ); Mon, 24 Aug 2020 14:26:39 -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 6BDC4206BE; Mon, 24 Aug 2020 18:26:36 +0000 (UTC) Date: Mon, 24 Aug 2020 14:26:34 -0400 From: Steven Rostedt To: Andy Shevchenko Cc: David Laight , 'Nicolas Boichat' , "dianders@chromium.org" , "groeck@chromium.org" , Andrew Morton , 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" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v5] kernel/trace: Add DISALLOW_TRACE_PRINTK make option Message-ID: <20200824142634.235acc7d@oasis.local.home> In-Reply-To: <20200824134201.GM1891694@smile.fi.intel.com> References: <20200824105852.v5.1.I4feb11d34ce7a0dd5ee2c3327fb5a1a9a646be30@changeid> <3f84781f12424cbfa552981af42dfaf2@AcuMS.aculab.com> <20200824092828.4386bd25@oasis.local.home> <20200824134201.GM1891694@smile.fi.intel.com> 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 Mon, 24 Aug 2020 16:42:01 +0300 Andy Shevchenko wrote: > How making it make's option prevent some "smart" distros to achieve the same? > AFAIU any compile-time knob will allow to build a kernel w/o a feature and you > are against of such kernel builds in distros. Catch-22? Because it will fail the build if it finds a trace_printk() in the compiled code, but doesn't touch the config that is shipped, nor does it affect modules being built against this kernel. This patch series is for those that do not want a trace_printk() accidentally left behind in their own work and trigger that big warning and scare their users. But it still gives an option for developers to add a trace_printk. That is, the decision to have trace_printk in a particular output (vmlinux) is done at the compile time, and all it does is to make sure one isn't present at that moment. This series is not about keeping them out completely (test modules, etc), which a config option will. -- Steve