ftrace: show selected functions in set_ftrace_filter
authorSteven Rostedt <srostedt@redhat.com>
Mon, 16 Feb 2009 20:28:00 +0000 (15:28 -0500)
committerSteven Rostedt <srostedt@redhat.com>
Tue, 17 Feb 2009 03:50:06 +0000 (22:50 -0500)
commit8fc0c701c5b6c0c3e242758c3acef6f9047940a9
treeaa9c495fc2d898b39873e1ce9f154bed64b33f8e
parent23b4ff3aa479c9e3bb23cb6b2d0a97878399784a
ftrace: show selected functions in set_ftrace_filter

This patch adds output to show what functions have tracer hooks
attached to them.

  # echo 'sys_open:traceon:4' > /debug/tracing/set_ftrace_filter
  # cat set_ftrace_filter

 #### all functions enabled ####
 sys_open:ftrace_traceon:0000000000000004

  # echo 'do_fork:traceoff:' > set_ftrace_filter
  # cat set_ftrace_filter

 #### all functions enabled ####
 sys_open:ftrace_traceon:0000000000000002
 do_fork:ftrace_traceoff:ffffffffffffffff

Note the 4 changed to a 2. This is because The code was executed twice
since the traceoff was added. If a cat is done again:

 #### all functions enabled ####
 sys_open:ftrace_traceon
 do_fork:ftrace_traceoff:ffffffffffffffff

The number disappears. That is because it will not print a NULL.

Callbacks to allow the tracer to pretty print will be implemented soon.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
kernel/trace/ftrace.c