diff options
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/kernel-parameters.txt | 6 | ||||
-rw-r--r-- | Documentation/trace/ftrace.txt | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index e2202e93b148..21a99474df93 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
@@ -784,8 +784,12 @@ and is between 256 and 4096 characters. It is defined in the file | |||
784 | as early as possible in order to facilitate early | 784 | as early as possible in order to facilitate early |
785 | boot debugging. | 785 | boot debugging. |
786 | 786 | ||
787 | ftrace_dump_on_oops | 787 | ftrace_dump_on_oops[=orig_cpu] |
788 | [FTRACE] will dump the trace buffers on oops. | 788 | [FTRACE] will dump the trace buffers on oops. |
789 | If no parameter is passed, ftrace will dump | ||
790 | buffers of all CPUs, but if you pass orig_cpu, it will | ||
791 | dump only the buffer of the CPU that triggered the | ||
792 | oops. | ||
789 | 793 | ||
790 | ftrace_filter=[function-list] | 794 | ftrace_filter=[function-list] |
791 | [FTRACE] Limit the functions traced by the function | 795 | [FTRACE] Limit the functions traced by the function |
diff --git a/Documentation/trace/ftrace.txt b/Documentation/trace/ftrace.txt index 03485bfbd797..52011815c905 100644 --- a/Documentation/trace/ftrace.txt +++ b/Documentation/trace/ftrace.txt | |||
@@ -1337,12 +1337,14 @@ ftrace_dump_on_oops must be set. To set ftrace_dump_on_oops, one | |||
1337 | can either use the sysctl function or set it via the proc system | 1337 | can either use the sysctl function or set it via the proc system |
1338 | interface. | 1338 | interface. |
1339 | 1339 | ||
1340 | sysctl kernel.ftrace_dump_on_oops=1 | 1340 | sysctl kernel.ftrace_dump_on_oops=n |
1341 | 1341 | ||
1342 | or | 1342 | or |
1343 | 1343 | ||
1344 | echo 1 > /proc/sys/kernel/ftrace_dump_on_oops | 1344 | echo n > /proc/sys/kernel/ftrace_dump_on_oops |
1345 | 1345 | ||
1346 | If n = 1, ftrace will dump buffers of all CPUs, if n = 2 ftrace will | ||
1347 | only dump the buffer of the CPU that triggered the oops. | ||
1346 | 1348 | ||
1347 | Here's an example of such a dump after a null pointer | 1349 | Here's an example of such a dump after a null pointer |
1348 | dereference in a kernel module: | 1350 | dereference in a kernel module: |