Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4534621ybz; Tue, 28 Apr 2020 13:07:06 -0700 (PDT) X-Google-Smtp-Source: APiQypKmmF4Q+zYMgo+++Ih6v3uBcKzAqoO4sV1iC9emulwcwlUVA7ILnCczIRJ2jgu/j+HJHldZ X-Received: by 2002:a17:907:2101:: with SMTP id qn1mr27287348ejb.207.1588104426652; Tue, 28 Apr 2020 13:07:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588104426; cv=none; d=google.com; s=arc-20160816; b=z0Qt6ieHWhhz8qnxVI9AWo4kQeFhPjgEm0iNE5XW325fIkFB3xjyZ0FrLbWQy6oTvG z48GUPspAMv+axv/3JQvOIJjPKqDcqphJ9EfZjMGdkGgQxlgOZTkfmBHwEoUOD1keuqN yxjtH1jq/TypdZM9LObMCr8rYPCr81I3C8bJmMfzmX/Lq9NwaL8P98ZuGKALcTP9b5tP 19UOnbK4Pg+7iFvfeDi4o4aBdixc8qraJ8sAvASpu2CUGifrWryk2cN07K02eOWf+DU3 hMEkHMdb+aXvgIrWujCWc7Ttj4hrryvdzc/lFrE73TesV7bQSWB5Jm+qzR7+OKy01fGU uJ1Q== 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=DnW5bMB+67GBU+3YB4eqWwiyPBjGF09eTl+QUqn8Ydc=; b=Ym3ePP+d7DW+uAz3BcMBjOA0kRjHwRPpPXRlfiAjuSybHIK1kMrLo8pYPSrDNaeA4q BsfpusTt8zyKb7x486oUGYsztCbx4IF/FjwQ+E/lxf8kSHc6rsiKrT8G1GtBMqwZJpks 4i6siGpaeFGfstk5MLqCVa/Ta6O1theGwONMjZeTsxe7iA731k/nz94Kgy4oAt43jR2E 41YbGvRl027rDHr8M8CGdV2vG0aC/TmNx9yGOtt7Dji5h1nY2q/SZlVVsi5XZMTZ6Dbd uj01qg9G/DwC+Zs68yb9HpVCdKBtJHnfNbgPT3OFYl8nsBy8VJ8m90lMJcc2CI8eBRTu DNjg== 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 o6si2393420ejb.97.2020.04.28.13.06.38; Tue, 28 Apr 2020 13:07:06 -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 S1726286AbgD1UDi (ORCPT + 99 others); Tue, 28 Apr 2020 16:03:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:56014 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726180AbgD1UDh (ORCPT ); Tue, 28 Apr 2020 16:03:37 -0400 Received: from gandalf.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 DC3022070B; Tue, 28 Apr 2020 20:03:36 +0000 (UTC) Date: Tue, 28 Apr 2020 16:03:35 -0400 From: Steven Rostedt To: Jonathan Corbet Cc: Stephen Kitt , Mauro Carvalho Chehab , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] docs: sysctl/kernel: document ftrace entries Message-ID: <20200428160335.1d1cee9c@gandalf.local.home> In-Reply-To: <20200428124133.0fbaf7c5@lwn.net> References: <20200423183651.15365-1-steve@sk2.org> <20200423183651.15365-2-steve@sk2.org> <20200428124133.0fbaf7c5@lwn.net> 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, 28 Apr 2020 12:41:33 -0600 Jonathan Corbet wrote: > 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 Thanks! I verified that the documentation is correct. Acked-by: Steven Rostedt (VMware) -- Steve > 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