diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-02-24 10:21:36 -0500 |
---|---|---|
committer | Steven Rostedt <srostedt@redhat.com> | 2009-02-24 21:54:05 -0500 |
commit | b77e38aa240c3bd9c55c98b9f7c81541e042eae5 (patch) | |
tree | bbb40993e76edc52d2cae1040b941ba4e4d2f965 /kernel/trace/Kconfig | |
parent | 7c37730cd31ddb2d3a1da142af9b18c29b8c433b (diff) |
tracing: add event trace infrastructure
This patch creates the event tracing infrastructure of ftrace.
It will create the files:
/debug/tracing/available_events
/debug/tracing/set_event
The available_events will list the trace points that have been
registered with the event tracer.
set_events will allow the user to enable or disable an event hook.
example:
# echo sched_wakeup > /debug/tracing/set_event
Will enable the sched_wakeup event (if it is registered).
# echo "!sched_wakeup" >> /debug/tracing/set_event
Will disable the sched_wakeup event (and only that event).
# echo > /debug/tracing/set_event
Will disable all events (notice the '>')
# cat /debug/tracing/available_events > /debug/tracing/set_event
Will enable all registered event hooks.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'kernel/trace/Kconfig')
-rw-r--r-- | kernel/trace/Kconfig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 07877f4b5233..999c6a2485df 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig | |||
@@ -159,6 +159,15 @@ config CONTEXT_SWITCH_TRACER | |||
159 | This tracer gets called from the context switch and records | 159 | This tracer gets called from the context switch and records |
160 | all switching of tasks. | 160 | all switching of tasks. |
161 | 161 | ||
162 | config EVENT_TRACER | ||
163 | bool "Trace various events in the kernel" | ||
164 | depends on DEBUG_KERNEL | ||
165 | select TRACING | ||
166 | help | ||
167 | This tracer hooks to various trace points in the kernel | ||
168 | allowing the user to pick and choose which trace point they | ||
169 | want to trace. | ||
170 | |||
162 | config BOOT_TRACER | 171 | config BOOT_TRACER |
163 | bool "Trace boot initcalls" | 172 | bool "Trace boot initcalls" |
164 | depends on DEBUG_KERNEL | 173 | depends on DEBUG_KERNEL |