diff options
author | Steven Rostedt <srostedt@redhat.com> | 2008-11-12 15:24:24 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-12 16:27:58 -0500 |
commit | 2ed84eeb8808cf3c9f039213ca137ffd7d753f0e (patch) | |
tree | 3aa22269a1fd5ed0b66826120ca9b572400962b5 /kernel/trace/trace.h | |
parent | 68d119f0a66f7e3663304343b072e56a2693446b (diff) |
trace: rename unlikely profiler to branch profiler
Impact: name change of unlikely tracer and profiler
Ingo Molnar suggested changing the config from UNLIKELY_PROFILE
to BRANCH_PROFILING. I never did like the "unlikely" name so I
went one step farther, and renamed all the unlikely configurations
to a "BRANCH" variant.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 9635aa2c4fc1..dccae6312941 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -468,7 +468,7 @@ enum trace_iterator_flags { | |||
468 | TRACE_ITER_SCHED_TREE = 0x200, | 468 | TRACE_ITER_SCHED_TREE = 0x200, |
469 | TRACE_ITER_PRINTK = 0x400, | 469 | TRACE_ITER_PRINTK = 0x400, |
470 | TRACE_ITER_PREEMPTONLY = 0x800, | 470 | TRACE_ITER_PREEMPTONLY = 0x800, |
471 | #ifdef CONFIG_UNLIKELY_TRACER | 471 | #ifdef CONFIG_BRANCH_TRACER |
472 | TRACE_ITER_UNLIKELY = 0x1000, | 472 | TRACE_ITER_UNLIKELY = 0x1000, |
473 | #endif | 473 | #endif |
474 | }; | 474 | }; |
@@ -530,7 +530,7 @@ static inline void ftrace_preempt_enable(int resched) | |||
530 | preempt_enable_notrace(); | 530 | preempt_enable_notrace(); |
531 | } | 531 | } |
532 | 532 | ||
533 | #ifdef CONFIG_UNLIKELY_TRACER | 533 | #ifdef CONFIG_BRANCH_TRACER |
534 | extern int enable_unlikely_tracing(struct trace_array *tr); | 534 | extern int enable_unlikely_tracing(struct trace_array *tr); |
535 | extern void disable_unlikely_tracing(void); | 535 | extern void disable_unlikely_tracing(void); |
536 | static inline int trace_unlikely_enable(struct trace_array *tr) | 536 | static inline int trace_unlikely_enable(struct trace_array *tr) |
@@ -552,6 +552,6 @@ static inline int trace_unlikely_enable(struct trace_array *tr) | |||
552 | static inline void trace_unlikely_disable(void) | 552 | static inline void trace_unlikely_disable(void) |
553 | { | 553 | { |
554 | } | 554 | } |
555 | #endif /* CONFIG_UNLIKELY_TRACER */ | 555 | #endif /* CONFIG_BRANCH_TRACER */ |
556 | 556 | ||
557 | #endif /* _LINUX_KERNEL_TRACE_H */ | 557 | #endif /* _LINUX_KERNEL_TRACE_H */ |