diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2013-03-12 19:35:13 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2013-03-15 00:36:04 -0400 |
commit | 3cd715de261182413b3487abfffe1b6af41b81b3 (patch) | |
tree | 14d9a48d2aa31eb1ad387477376e41f25031238f /drivers/remoteproc | |
parent | 417944c4c7a0f657158d0515f3b8e8c043fd788f (diff) | |
download | blackbird-op-linux-3cd715de261182413b3487abfffe1b6af41b81b3.tar.gz blackbird-op-linux-3cd715de261182413b3487abfffe1b6af41b81b3.zip |
tracing: Add function probe triggers to enable/disable events
Add triggers to function tracer that lets an event get enabled or
disabled when a function is called:
format is:
<function>:enable_event:<system>:<event>[:<count>]
<function>:disable_event:<system>:<event>[:<count>]
echo 'schedule:enable_event:sched:sched_switch' > /debug/tracing/set_ftrace_filter
Every time schedule is called, it will enable the sched_switch event.
echo 'schedule:disable_event:sched:sched_switch:2' > /debug/tracing/set_ftrace_filter
The first two times schedule is called while the sched_switch
event is enabled, it will disable it. It will not count for a time
that the event is already disabled (or enabled for enable_event).
[ fixed return without mutex_unlock() - thanks to Dan Carpenter and smatch ]
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'drivers/remoteproc')
0 files changed, 0 insertions, 0 deletions