Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1243775ybz; Wed, 29 Apr 2020 18:00:05 -0700 (PDT) X-Google-Smtp-Source: APiQypKavCzUZYkGgrWYsRugzaVonFp7gOARlW1FcoKWvfZRypMUFzwZuZeiLkdm+DxJhZEiHzYc X-Received: by 2002:a05:6402:204b:: with SMTP id bc11mr573350edb.114.1588208405359; Wed, 29 Apr 2020 18:00:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588208405; cv=none; d=google.com; s=arc-20160816; b=x06hVjbMp/sulsHpjO6HwPGDxNzEpxdSul/lAvoNwwuQBhdbLRTsqWLoY72/08yaRS kPU413IkFBml0BBTNcITiuGBWXcKSMO6KyRcPmBGy/pzCBZL0DPS37zLtg+PFbxQdX1H g7vsBgTfH+uySjT0sSBw/GP8A/bOCG1sHhfYRZxrbumVR1j2KIrEJYL+q3l61YaGvsfe cYDa0Nw8Jqy9tFpX7FumvwhxLqq373ZKz699Ai6cPP4kQNldxwOKkIbGH5FSSDsDzk0c xaX7RKgmajb5RodRNXAhJsG6iBqAoYmJNma9HUSP6d+KZX/WXWmUchFrS5408mm2Bv2Z 9dBw== 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=yyGp/bNepBCHOsHSZ/ItTFYq9LnwLpUN7ypSKcCmE0Y=; b=mDx3o0aGKrm1eS3M6b2+31CU3K9DX6lZYilL63pSaWrRYIIJ+FGu/zrx4xfvDNFJ0t V/jGkOXrKIpaGCdlaJRjEilD/qhm9fuS7fDFtec3M9ryx0IB47w8MzdMvE5uP5tYYUJ6 UPx+KcaCi46cKR0KXpPLjZEDFSwUKdPDzmrfk5d2JC//zdFA4O6U3ObDjbJWcs9kZwvg tr90RPCbbAJRY8Pepy40KYPNXioUQ21aLEcljSaB1QkL7aOYraYxepK76KNUlCnyJ/LR CtZuRn9Jnleu5VK7RtOgg9jbOmp4ZRAGobCK9uhfVdaoavmssMPyl29cmptHkM+h5Ngi rpfg== 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 cb17si4912833ejb.481.2020.04.29.17.59.42; Wed, 29 Apr 2020 18:00: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 S1726501AbgD3A6D (ORCPT + 99 others); Wed, 29 Apr 2020 20:58:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:58822 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726279AbgD3A6D (ORCPT ); Wed, 29 Apr 2020 20:58:03 -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 CF92E20787; Thu, 30 Apr 2020 00:58:02 +0000 (UTC) Date: Wed, 29 Apr 2020 20:58:01 -0400 From: Steven Rostedt To: Stephen Kitt Cc: Jonathan Corbet , Mauro Carvalho Chehab , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] docs: sysctl/kernel: document ftrace entries Message-ID: <20200429205801.5ce95ab3@oasis.local.home> In-Reply-To: <20200429205757.8677-1-steve@sk2.org> References: <20200429205757.8677-1-steve@sk2.org> 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 Wed, 29 Apr 2020 22:57:56 +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 > --- > Changes since v2: > - spelling and grammar fixes in ftrace_dump_on_oops ("outputing it" > -> "outputting them") > - "and::" in a single line in tracepoint_printk I didn't re-read or compare this patch with v1, but if the only changes were the above: Acked-by: Steven Rostedt (VMware) -- Steve > > Documentation/admin-guide/sysctl/kernel.rst | 48 +++++++++++++++++++++ > 1 file changed, 48 insertions(+) > > diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst > index 82bfd5892663..b1ad4c86274d 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 outputting them 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,33 @@ 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:: > + > + 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 > ================= >