tracing: Add function probe to trigger a ftrace dump to console
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Tue, 30 Apr 2013 19:46:14 +0000 (15:46 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 11 Jun 2013 22:38:46 +0000 (18:38 -0400)
commitad71d889b88055e61e3970a6744a271a51a94f42
tree716f6e043847000a82449270e3b2d5dcdc9c4f79
parent317ddd256b9c24b0d78fa8018f80f1e495481a10
tracing: Add function probe to trigger a ftrace dump to console

Add the "dump" command to have the ftrace buffer dumped to console if
a function is hit. This is useful when debugging a tripple fault,
where you have an idea of a function that is called just before the
tripple fault occurs, and can tell ftrace to dump its content out
to the console before it continues.

Format is:

  <function>:dump

echo 'bad_address:dump' > /debug/tracing/set_ftrace_filter

To remove this:

echo '!bad_address:dump' > /debug/tracing/set_ftrace_filter

Requested-by: Luis Claudio R. Goncalves <lclaudio@uudg.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Documentation/trace/ftrace.txt
kernel/trace/trace_functions.c