Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp757801ybt; Wed, 24 Jun 2020 10:26:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLWO2uPF8z/1osExQtxFr3iJC+o2qAMMlmQ4cpwsY94sC7EVgMU/5qdHgcyy3cwpw/Ajly X-Received: by 2002:a17:906:8d2:: with SMTP id o18mr18038176eje.183.1593019597440; Wed, 24 Jun 2020 10:26:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593019597; cv=none; d=google.com; s=arc-20160816; b=Tk4lZLFbFI4wuw6SEgtVIDZz7BPnK0VJ//rsrbe9WYZyZRo+JJrOKf0cr3CcPJENbS Dej2xl6ucrLlfVRNsBxztdf+p4XR5wxQQAodEq+qS9nJ1/t7WhqLNEpVvfWX1DOn4Eyj /TPIBrxlwHDrTPJfD4iaOlJkBM2USYBP2LPZdKyeOvQvhjWA+SAfdayKI37UkmwZ/F0k ST4nuPXCTOru5x808zxb/XOrYG7KUhPqXL2AIq4jzJRHLCemp5DAh4Oqj0FzlKOVbGaz fi5mEpEFOp5jFvy5XMMYlNJkiHcY9dqXaPQqu39xDacoS0w/prWB472gGUA6nqBFZqp+ lSbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=V6tWQqT52wylP/JH88Myhi4OlexSJw9zpdaP4552z9c=; b=lHpesOmgUS6LU/bOVbMajhQkGeDNVvsl5ya+9muHC7irwgsrUWQ1MCMwDsYVzesPz6 mwIWVPArDmummI17Xs884K8pp9pfzC5hHf2qb24RFXzrXvfy7e0C3Ic3KLQzdQTrBfGy uXoXnvcgcVWsYs4RFPRPBHWdQouEPwsG31HCsQuDVFXA2WEd4ukRI/lpW7edBQ+5vUVd ubq9EIKodr16nvLHysDRcdcsvR8brDwxKKQ9ysJz2T22PkLwx3C5u1ewyA0ril1xvT66 S3JouDccTrZen/F1e9/pWV/jdI1sOedhNt4GsvlS23v+1jq6KpPXHuSnLC3mP5adVatS A2mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XEvBsXA4; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ck11si12988448edb.156.2020.06.24.10.26.14; Wed, 24 Jun 2020 10:26:37 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XEvBsXA4; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405465AbgFXRZv (ORCPT + 99 others); Wed, 24 Jun 2020 13:25:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405318AbgFXRZu (ORCPT ); Wed, 24 Jun 2020 13:25:50 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21B6AC061573 for ; Wed, 24 Jun 2020 10:25:49 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id g2so1724048lfb.0 for ; Wed, 24 Jun 2020 10:25:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=V6tWQqT52wylP/JH88Myhi4OlexSJw9zpdaP4552z9c=; b=XEvBsXA4f1vGjDuptjsYSs9/a0ZEBQ6Tdm3ZCOnQ13GBZNcdgsyTrfDxoaCYSzC0NT W64485xGJ5Moz/nJfDrdU5P69uu3kfDXZPDnngCYZpIcrQMTjXDX3I/+AiK6a1WcuRed N8NCjO48gpfDRGKZ0bFXjWcrL5RTZmAxl5wYZc6U7JVZlwkPmDdq2GiZ5orXFfmYNjkZ tkQzfRXuOh52DnkLfXXpQ3PkDlVcb/QAGnogZoLOgsmdyuo4zlpxTqtjW46l+RxcALWw 5Nra8lvsaM/PqfLxkmlRlvfYLIS/QJ94zbeROBLOz0b0vNryDHFRmQ09ZWUKICtLxN1n XOzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=V6tWQqT52wylP/JH88Myhi4OlexSJw9zpdaP4552z9c=; b=DhTGXg2lx1PeHxZ+NM5xm5/2FItHZtHapXX2w6osK3bP2n1ft3TrasD7Vvc+xdKszC x8XJRmyCTc8VU7tqplAdsceXR6BkkzjKkQvdvANhAyflY7Xz2voe9t4eHFqa1aHPh7rn sEwQQnUXQnXhEouWXTB3I3wVF5vmQc9fLHRMqTNVDiObo+lLpSFFG6sxfs1sZIM9e471 X4zBQ6KZaFw2EX6/EN/nB+VTVsRgOzqgpDSZ2W6CeaEjX7jhwrN+rsT45pdiN1EYo3Pg O2XgY+KSDpLc2gcoTnWPPkCm+QIvMJzE8pT4F6SWz5sHC6s7UrwsGsOezX0voP6HsrrY 6mpA== X-Gm-Message-State: AOAM530/1NaZ6+Cd3+F8/DB4mguwnmA4Bv9eqZ2VQJRJMmMPEJRENo2n /AUpBXxbSbfhsVI0vLWtx08K2+kJnbicZssNS/U= X-Received: by 2002:a05:6512:54d:: with SMTP id h13mr16163673lfl.8.1593019547540; Wed, 24 Jun 2020 10:25:47 -0700 (PDT) MIME-Version: 1.0 References: <20200624084524.259560-1-drinkcat@chromium.org> <20200624120408.12c8fa0d@oasis.local.home> In-Reply-To: <20200624120408.12c8fa0d@oasis.local.home> From: Alexei Starovoitov Date: Wed, 24 Jun 2020 10:25:35 -0700 Message-ID: Subject: Re: [PATCH] kernel/trace: Add TRACING_ALLOW_PRINTK config option To: Steven Rostedt Cc: Nicolas Boichat , LKML , Ingo Molnar , Andrew Morton , Kees Cook , Jason Gunthorpe , Daniel Vetter , Peter Zijlstra , Vinod Koul , Andy Shevchenko , Alexey Dobriyan , Tiezhu Yang , Thomas Gleixner , "Guilherme G . Piccoli" , Will Deacon , dianders@chromium.org, Guenter Roeck Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 24, 2020 at 9:07 AM Steven Rostedt wrote: > > On Wed, 24 Jun 2020 16:45:24 +0800 > Nicolas Boichat wrote: > > > trace_printk is only meant as a debugging tool, and should never be > > compiled into production code without source code changes, as > > indicated by the warning that shows up on boot if any trace_printk > > is called: > > ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE ** > > ** ** > > ** trace_printk() being used. Allocating extra memory. ** > > ** ** > > ** This means that this is a DEBUG kernel and it is ** > > ** unsafe for production use. ** > > > > If this option is set to n, the kernel will generate a build-time > > error if trace_printk is used. > > > > Signed-off-by: Nicolas Boichat > > Interesting. Note, this will prevent modules with trace_printk from > being loaded as well. Nack. The message is bogus. It's used in production kernels. bpf_trace_printk() calls it.