summaryrefslogtreecommitdiffstats
path: root/include/linux/tracepoint.h
diff options
context:
space:
mode:
authorSteven Rostedt2009-02-28 08:41:25 +0100
committerSteven Rostedt2009-02-28 10:04:03 +0100
commitfd99498989f3b3feeab89dcadf537138ba136d24 (patch)
tree9470e9b4e886466511d47a70281e77e5a8c674ff /include/linux/tracepoint.h
parenttracing: add raw trace point recording infrastructure (diff)
downloadkernel-qcow2-linux-fd99498989f3b3feeab89dcadf537138ba136d24.tar.gz
kernel-qcow2-linux-fd99498989f3b3feeab89dcadf537138ba136d24.tar.xz
kernel-qcow2-linux-fd99498989f3b3feeab89dcadf537138ba136d24.zip
tracing: add raw fast tracing interface for trace events
This patch adds the interface to enable the C style trace points. In the directory /debugfs/tracing/events/subsystem/event We now have three files: enable : values 0 or 1 to enable or disable the trace event. available_types: values 'raw' and 'printf' which indicate the tracing types available for the trace point. If a developer does not use the TRACE_EVENT_FORMAT macro and just uses the TRACE_FORMAT macro, then only 'printf' will be available. This file is read only. type: values 'raw' or 'printf'. This indicates which type of tracing is active for that trace point. 'printf' is the default and if 'raw' is not available, this file is read only. # echo raw > /debug/tracing/events/sched/sched_wakeup/type # echo 1 > /debug/tracing/events/sched/sched_wakeup/enable Will enable the C style tracing for the sched_wakeup trace point. Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'include/linux/tracepoint.h')
0 files changed, 0 insertions, 0 deletions