aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2011-03-11 16:52:40 -0500
committerSteven Rostedt <rostedt@goodmis.org>2011-03-11 16:52:40 -0500
commitdf843687135e7ffca2d6b70ca5453698e4067bf0 (patch)
tree584312fc355d46a9176d7a7c803ef884e508936f /Documentation
parent46a183d56259978644643643bea126972333a476 (diff)
trace-cmd: Add --func-stack option to enable function stack trace
Added --func-stack option to trace-cmd record, that will enable the function stack tracing, but only if the -l option (limit functions) is used, and succeeds in filtering functions. It is known that running the function stack trace on all functions can livelock the machine. The output now looks like this: <idle>-0 [002] 64003.696572: function: schedule <idle>-0 [002] 64003.696577: kernel_stack: <stack trace> => cpu_idle (ffffffff8100a38c) => start_secondary (ffffffff814ab828) trace-cmd-4132 [003] 64003.696632: function: schedule trace-cmd-4132 [003] 64003.696637: kernel_stack: <stack trace> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/trace-cmd-record.1.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/trace-cmd-record.1.txt b/Documentation/trace-cmd-record.1.txt
index 87e4f97..b78182a 100644
--- a/Documentation/trace-cmd-record.1.txt
+++ b/Documentation/trace-cmd-record.1.txt
@@ -64,6 +64,13 @@ OPTIONS
64=> cpu_idle (ffffffff8100a38c) 64=> cpu_idle (ffffffff8100a38c)
65=> start_secondary (ffffffff814ab828) 65=> start_secondary (ffffffff814ab828)
66 66
67*--func-stack*::
68 Enable a stack trace on all functions. Note this is only applicable
69 for the "function" plugin tracer, and will only take effect if the
70 -l option is used and succeeds in limiting functions. If the function
71 tracer is not filtered, and the stack trace is enabled, you can live
72 lock the machine.
73
67*-f* 'filter':: 74*-f* 'filter'::
68 Specify a filter for the previous event. This must come after a *-e*. This 75 Specify a filter for the previous event. This must come after a *-e*. This
69 will filter what events get recorded based on the content of the event. 76 will filter what events get recorded based on the content of the event.