diff options
author | Steven Noonan <steven@uplinklabs.net> | 2008-09-19 06:06:43 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-14 04:37:43 -0400 |
commit | fb1b6d8b5154c692172a424e45fbd0573295cb93 (patch) | |
tree | d9a7ad2c629a6133998402354e77cd721e4962b4 /kernel/trace/trace.h | |
parent | 5bf9a1ee350a10feb94107de32a203d81fbbe706 (diff) |
ftrace: add nop tracer
A no-op tracer which can serve two purposes:
1. A template for development of a new tracer.
2. A convenient way to see ftrace_printk() calls without
an irrelevant trace making the output messy.
[ mingo@elte.hu: resolved conflicts ]
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 42f65d0097f0..447d4b9b6391 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -339,6 +339,10 @@ extern int trace_selftest_startup_preemptirqsoff(struct tracer *trace, | |||
339 | extern int trace_selftest_startup_wakeup(struct tracer *trace, | 339 | extern int trace_selftest_startup_wakeup(struct tracer *trace, |
340 | struct trace_array *tr); | 340 | struct trace_array *tr); |
341 | #endif | 341 | #endif |
342 | #ifdef CONFIG_NOP_TRACER | ||
343 | extern int trace_selftest_startup_nop(struct tracer *trace, | ||
344 | struct trace_array *tr); | ||
345 | #endif | ||
342 | #ifdef CONFIG_CONTEXT_SWITCH_TRACER | 346 | #ifdef CONFIG_CONTEXT_SWITCH_TRACER |
343 | extern int trace_selftest_startup_sched_switch(struct tracer *trace, | 347 | extern int trace_selftest_startup_sched_switch(struct tracer *trace, |
344 | struct trace_array *tr); | 348 | struct trace_array *tr); |