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_selftest.c | |
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_selftest.c')
-rw-r--r-- | kernel/trace/trace_selftest.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/trace/trace_selftest.c b/kernel/trace/trace_selftest.c index 630715bbd572..82db9103b9bc 100644 --- a/kernel/trace/trace_selftest.c +++ b/kernel/trace/trace_selftest.c | |||
@@ -418,6 +418,15 @@ trace_selftest_startup_preemptirqsoff(struct tracer *trace, struct trace_array * | |||
418 | } | 418 | } |
419 | #endif /* CONFIG_IRQSOFF_TRACER && CONFIG_PREEMPT_TRACER */ | 419 | #endif /* CONFIG_IRQSOFF_TRACER && CONFIG_PREEMPT_TRACER */ |
420 | 420 | ||
421 | #ifdef CONFIG_NOP_TRACER | ||
422 | int | ||
423 | trace_selftest_startup_nop(struct tracer *trace, struct trace_array *tr) | ||
424 | { | ||
425 | /* What could possibly go wrong? */ | ||
426 | return 0; | ||
427 | } | ||
428 | #endif | ||
429 | |||
421 | #ifdef CONFIG_SCHED_TRACER | 430 | #ifdef CONFIG_SCHED_TRACER |
422 | static int trace_wakeup_test_thread(void *data) | 431 | static int trace_wakeup_test_thread(void *data) |
423 | { | 432 | { |