Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4465284ybz; Tue, 28 Apr 2020 11:45:16 -0700 (PDT) X-Google-Smtp-Source: APiQypKpPDLghta70emS3aXswiuD8rMlTFemrBgW0+nkvqqe9CBCuBRa7qlEVl3L7FEXTz0Gt4Tk X-Received: by 2002:a05:6402:1a33:: with SMTP id be19mr24586265edb.214.1588099516686; Tue, 28 Apr 2020 11:45:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588099516; cv=none; d=google.com; s=arc-20160816; b=kaCUTqIiTtLMsYIT6nz7bHc8YPkXAOWp1YRm7505dfF2Ivlvm523VEbpC1UQqHBz+N JIHzGUBqG18m4AYrJqwRws17fBRIPrz20poc0FpzBEdgHKq1xLiyBqtmCSa/6zhA+V6/ iZGwRoh3/2VVXHbWvSibV69bT1ccIswyIF6PXfyUzqHNBOiFbZoJ7oBj2zn6idq2ry6L OOgTVIxYoDrTFSfCNNSnZGujsafzoz+wpucesrFD96SGf89+Olz8M469lS2pyyrVtz6e WNxb4FxagFTAyPEsE1zdhWhqR5Zm0XvsasRyb7dXtlK/OSB9wO5zhvfyIWWZTyOfTIMT Emjw== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=PKKNRNUypYb9wvE2dYOObT9mNemd6Xs40NXgndfzUNs=; b=u6MGWGOQ60UOkZR8MmrRpHTRMPPkhOxiFTXjzdmfNY0m16JzJWSs9EcTeDFCX+Y4YO X91SW/I214ZoD0a7qbmUhp/Z7adoCGfn2EcGt4G+VtakEbzma8TGIE6/bPjDva58Kn8N rYcDhAq/3REgh6FCGNUSMomEZxO/qEuAkbmLUMn27G73dZ/TIfTag6IKhtsZXip1F3j+ 0d557wsd4frvRgmh6S81SF1U7XIipubuV7Y6GK1DtiOZW+5UvhX5gjcZUnnnuapuJWCf iQrXEnU0Hls7AxgOy6QP6g2tCaMDFf3C0V8UO5dG2Ioi9acXAoUiQxy/MGqYE701pVO6 nFFA== 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 e21si2138175edq.508.2020.04.28.11.44.53; Tue, 28 Apr 2020 11:45:16 -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 S1729953AbgD1Slj (ORCPT + 99 others); Tue, 28 Apr 2020 14:41:39 -0400 Received: from ms.lwn.net ([45.79.88.28]:41422 "EHLO ms.lwn.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730995AbgD1Sle (ORCPT ); Tue, 28 Apr 2020 14:41:34 -0400 Received: from lwn.net (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ms.lwn.net (Postfix) with ESMTPSA id 47A0744A; Tue, 28 Apr 2020 18:41:34 +0000 (UTC) Date: Tue, 28 Apr 2020 12:41:33 -0600 From: Jonathan Corbet To: Stephen Kitt Cc: Mauro Carvalho Chehab , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Steven Rostedt Subject: Re: [PATCH 2/3] docs: sysctl/kernel: document ftrace entries Message-ID: <20200428124133.0fbaf7c5@lwn.net> In-Reply-To: <20200423183651.15365-2-steve@sk2.org> References: <20200423183651.15365-1-steve@sk2.org> <20200423183651.15365-2-steve@sk2.org> Organization: LWN.net MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 23 Apr 2020 20:36:50 +0200 Stephen Kitt wrote: > Based on the ftrace documentation, the tp_printk boot parameter > documentation, and the implementation in kernel/trace/trace.c. > > Signed-off-by: Stephen Kitt This one could benefit from an ack from Steve (CC'd). Also one other little nit below: > Documentation/admin-guide/sysctl/kernel.rst | 50 +++++++++++++++++++++ > 1 file changed, 50 insertions(+) > > diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst > index 82bfd5892663..d4bbdaf96ebc 100644 > --- a/Documentation/admin-guide/sysctl/kernel.rst > +++ b/Documentation/admin-guide/sysctl/kernel.rst > @@ -265,6 +265,27 @@ domain names are in general different. For a detailed discussion > see the ``hostname(1)`` man page. > > > +ftrace_dump_on_oops > +=================== > + > +Determines whether ``ftrace_dump()`` should be called on an oops (or > +kernel panic). This will output the contents of the ftrace buffers to > +the console. This is very useful for capturing traces that lead to > +crashes and outputing it to a serial console. > + > += =================================================== > +0 Disabled (default). > +1 Dump buffers of all CPUs. > +2 Dump the buffer of the CPU that triggered the oops. > += =================================================== > + > + > +ftrace_enabled, stack_tracer_enabled > +==================================== > + > +See :doc:`/trace/ftrace`. > + > + > hardlockup_all_cpu_backtrace > ============================ > > @@ -1191,6 +1212,35 @@ If a value outside of this range is written to ``threads-max`` an > ``EINVAL`` error occurs. > > > +traceoff_on_warning > +=================== > + > +When set, disables tracing (see :doc:`/trace/ftrace`) when a > +``WARN()`` is hit. > + > + > +tracepoint_printk > +================= > + > +When tracepoints are sent to printk() (enabled by the ``tp_printk`` > +boot parameter), this entry provides runtime control:: > + > + echo 0 > /proc/sys/kernel/tracepoint_printk > + > +will stop tracepoints from being sent to printk(), and > + > +:: I would just make that ", and::" and avoid the separate line. > + > + echo 1 > /proc/sys/kernel/tracepoint_printk > + > +will send them to printk() again. > + > +This only works if the kernel was booted with ``tp_printk`` enabled. > + > +See :doc:`/admin-guide/kernel-parameters` and > +:doc:`/trace/boottime-trace`. > + > + > unknown_nmi_panic > ================= > Thanks, jon