aboutsummaryrefslogtreecommitdiff
path: root/kernel/trace/ftrace.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-02-14 19:04:24 -0500
committerSteven Rostedt <srostedt@redhat.com>2009-02-16 22:50:04 -0500
commit23b4ff3aa479c9e3bb23cb6b2d0a97878399784a (patch)
treeba446de609489d91303e6bdafd5168463100417a /kernel/trace/ftrace.c
parent988ae9d6b2bc3ebdc1a488490250a6812f85e9d4 (diff)
ftrace: add traceon traceoff commands to enable/disable the buffers
This patch adds the new function selection commands traceon and traceoff. traceon sets the function to enable the ring buffers while traceoff disables the ring buffers. You can pass in the number of times you want the command to be executed when the function is hit. It will only execute if the state of the buffers are not already in that state. Example: # echo do_fork:traceon:4 Will enable the ring buffers if they are disabled every time it hits do_fork, up to 4 times. # echo sys_close:traceoff This will disable the ring buffers every time (unlimited) when sys_close is called. Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'kernel/trace/ftrace.c')
0 files changed, 0 insertions, 0 deletions