public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/2] docs: sysctl/kernel: document ftrace entries
@ 2020-04-29 20:57 Stephen Kitt
  2020-04-29 20:57 ` [PATCH v2 2/2] docs: sysctl/kernel: document firmware_config Stephen Kitt
  2020-04-30  0:58 ` [PATCH v2 1/2] docs: sysctl/kernel: document ftrace entries Steven Rostedt
  0 siblings, 2 replies; 4+ messages in thread
From: Stephen Kitt @ 2020-04-29 20:57 UTC (permalink / raw)
  To: Jonathan Corbet, Mauro Carvalho Chehab, linux-doc
  Cc: linux-kernel, Steven Rostedt, Stephen Kitt

Based on the ftrace documentation, the tp_printk boot parameter
documentation, and the implementation in kernel/trace/trace.c.

Signed-off-by: Stephen Kitt <steve@sk2.org>
---
Changes since v2:
  - spelling and grammar fixes in ftrace_dump_on_oops ("outputing it"
    -> "outputting them")
  - "and::" in a single line in tracepoint_printk

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
 =================
 
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH v2 2/2] docs: sysctl/kernel: document firmware_config
  2020-04-29 20:57 [PATCH v2 1/2] docs: sysctl/kernel: document ftrace entries Stephen Kitt
@ 2020-04-29 20:57 ` Stephen Kitt
  2020-04-30  0:58 ` [PATCH v2 1/2] docs: sysctl/kernel: document ftrace entries Steven Rostedt
  1 sibling, 0 replies; 4+ messages in thread
From: Stephen Kitt @ 2020-04-29 20:57 UTC (permalink / raw)
  To: Jonathan Corbet, Mauro Carvalho Chehab, linux-doc
  Cc: linux-kernel, Steven Rostedt, Stephen Kitt

Based on the firmware fallback mechanisms documentation and the
implementation in drivers/base/firmware_loader/fallback.c.

Signed-off-by: Stephen Kitt <steve@sk2.org>
---
 Documentation/admin-guide/sysctl/kernel.rst | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst
index b1ad4c86274d..1779455fb2c5 100644
--- a/Documentation/admin-guide/sysctl/kernel.rst
+++ b/Documentation/admin-guide/sysctl/kernel.rst
@@ -265,6 +265,19 @@ domain names are in general different. For a detailed discussion
 see the ``hostname(1)`` man page.
 
 
+firmware_config
+===============
+
+See :doc:`/driver-api/firmware/fallback-mechanisms`.
+
+The entries in this directory allow the firmware loader helper
+fallback to be controlled:
+
+* ``force_sysfs_fallback``, when set to 1, forces the use of the
+  fallback;
+* ``ignore_sysfs_fallback``, when set to 1, ignores any fallback.
+
+
 ftrace_dump_on_oops
 ===================
 
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 1/2] docs: sysctl/kernel: document ftrace entries
  2020-04-29 20:57 [PATCH v2 1/2] docs: sysctl/kernel: document ftrace entries Stephen Kitt
  2020-04-29 20:57 ` [PATCH v2 2/2] docs: sysctl/kernel: document firmware_config Stephen Kitt
@ 2020-04-30  0:58 ` Steven Rostedt
  2020-05-05 15:54   ` Jonathan Corbet
  1 sibling, 1 reply; 4+ messages in thread
From: Steven Rostedt @ 2020-04-30  0:58 UTC (permalink / raw)
  To: Stephen Kitt
  Cc: Jonathan Corbet, Mauro Carvalho Chehab, linux-doc, linux-kernel

On Wed, 29 Apr 2020 22:57:56 +0200
Stephen Kitt <steve@sk2.org> 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 <steve@sk2.org>
> ---
> 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) <rostedt@goodmis.org>

-- 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
>  =================
>  


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH v2 1/2] docs: sysctl/kernel: document ftrace entries
  2020-04-30  0:58 ` [PATCH v2 1/2] docs: sysctl/kernel: document ftrace entries Steven Rostedt
@ 2020-05-05 15:54   ` Jonathan Corbet
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Corbet @ 2020-05-05 15:54 UTC (permalink / raw)
  To: Steven Rostedt
  Cc: Stephen Kitt, Mauro Carvalho Chehab, linux-doc, linux-kernel

On Wed, 29 Apr 2020 20:58:01 -0400
Steven Rostedt <rostedt@goodmis.org> wrote:

> On Wed, 29 Apr 2020 22:57:56 +0200
> Stephen Kitt <steve@sk2.org> 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 <steve@sk2.org>
> > ---
> > 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) <rostedt@goodmis.org>

Both applied, thanks.

jon

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-05-05 15:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-29 20:57 [PATCH v2 1/2] docs: sysctl/kernel: document ftrace entries Stephen Kitt
2020-04-29 20:57 ` [PATCH v2 2/2] docs: sysctl/kernel: document firmware_config Stephen Kitt
2020-04-30  0:58 ` [PATCH v2 1/2] docs: sysctl/kernel: document ftrace entries Steven Rostedt
2020-05-05 15:54   ` Jonathan Corbet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox