aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_irqsoff.c
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2008-05-12 15:20:44 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 14:40:36 -0400
commit60a11774b38fef1ab90b18c5353bd1c7c4d311c8 (patch)
treee2a6fd066b0dba6dcd776d07383e2932055cf66a /kernel/trace/trace_irqsoff.c
parente1c08bdd9fa73e44096e5a82c0d5928b04ab02c8 (diff)
ftrace: add self-tests
Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/trace/trace_irqsoff.c')
-rw-r--r--kernel/trace/trace_irqsoff.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/trace/trace_irqsoff.c b/kernel/trace/trace_irqsoff.c
index 74165f611f36..14183b8f79c5 100644
--- a/kernel/trace/trace_irqsoff.c
+++ b/kernel/trace/trace_irqsoff.c
@@ -432,6 +432,9 @@ static struct tracer irqsoff_tracer __read_mostly =
432 .close = irqsoff_tracer_close, 432 .close = irqsoff_tracer_close,
433 .ctrl_update = irqsoff_tracer_ctrl_update, 433 .ctrl_update = irqsoff_tracer_ctrl_update,
434 .print_max = 1, 434 .print_max = 1,
435#ifdef CONFIG_FTRACE_SELFTEST
436 .selftest = trace_selftest_startup_irqsoff,
437#endif
435}; 438};
436# define register_irqsoff(trace) register_tracer(&trace) 439# define register_irqsoff(trace) register_tracer(&trace)
437#else 440#else
@@ -455,6 +458,9 @@ static struct tracer preemptoff_tracer __read_mostly =
455 .close = irqsoff_tracer_close, 458 .close = irqsoff_tracer_close,
456 .ctrl_update = irqsoff_tracer_ctrl_update, 459 .ctrl_update = irqsoff_tracer_ctrl_update,
457 .print_max = 1, 460 .print_max = 1,
461#ifdef CONFIG_FTRACE_SELFTEST
462 .selftest = trace_selftest_startup_preemptoff,
463#endif
458}; 464};
459# define register_preemptoff(trace) register_tracer(&trace) 465# define register_preemptoff(trace) register_tracer(&trace)
460#else 466#else
@@ -480,6 +486,9 @@ static struct tracer preemptirqsoff_tracer __read_mostly =
480 .close = irqsoff_tracer_close, 486 .close = irqsoff_tracer_close,
481 .ctrl_update = irqsoff_tracer_ctrl_update, 487 .ctrl_update = irqsoff_tracer_ctrl_update,
482 .print_max = 1, 488 .print_max = 1,
489#ifdef CONFIG_FTRACE_SELFTEST
490 .selftest = trace_selftest_startup_preemptirqsoff,
491#endif
483}; 492};
484 493
485# define register_preemptirqsoff(trace) register_tracer(&trace) 494# define register_preemptirqsoff(trace) register_tracer(&trace)