aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2008-11-12 15:24:24 -0500
committerIngo Molnar <mingo@elte.hu>2008-11-12 16:28:09 -0500
commit9f029e83e968e5661d7be045bbcb620dbb909938 (patch)
tree13beecf2626162dc8a3912c79d58fc91e2193de5 /kernel/trace/trace.h
parent2ed84eeb8808cf3c9f039213ca137ffd7d753f0e (diff)
ftrace: rename unlikely iter_ctrl to branch
Impact: rename of iter_ctrl unlikely to branch The unlikely name is ugly. This patch converts the iter_ctrl command "unlikely" and "nounlikely" to "branch" and "nobranch" respectively. It also renames a lot of internal functions to use "branch" instead of "unlikely". 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.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index dccae6312941..7fbf37b27453 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -22,7 +22,7 @@ enum trace_type {
22 TRACE_SPECIAL, 22 TRACE_SPECIAL,
23 TRACE_MMIO_RW, 23 TRACE_MMIO_RW,
24 TRACE_MMIO_MAP, 24 TRACE_MMIO_MAP,
25 TRACE_UNLIKELY, 25 TRACE_BRANCH,
26 TRACE_BOOT_CALL, 26 TRACE_BOOT_CALL,
27 TRACE_BOOT_RET, 27 TRACE_BOOT_RET,
28 TRACE_FN_RET, 28 TRACE_FN_RET,
@@ -137,7 +137,7 @@ struct trace_boot_ret {
137 137
138#define TRACE_FUNC_SIZE 30 138#define TRACE_FUNC_SIZE 30
139#define TRACE_FILE_SIZE 20 139#define TRACE_FILE_SIZE 20
140struct trace_unlikely { 140struct trace_branch {
141 struct trace_entry ent; 141 struct trace_entry ent;
142 unsigned line; 142 unsigned line;
143 char func[TRACE_FUNC_SIZE+1]; 143 char func[TRACE_FUNC_SIZE+1];
@@ -247,7 +247,7 @@ extern void __ftrace_bad_type(void);
247 TRACE_MMIO_MAP); \ 247 TRACE_MMIO_MAP); \
248 IF_ASSIGN(var, ent, struct trace_boot_call, TRACE_BOOT_CALL);\ 248 IF_ASSIGN(var, ent, struct trace_boot_call, TRACE_BOOT_CALL);\
249 IF_ASSIGN(var, ent, struct trace_boot_ret, TRACE_BOOT_RET);\ 249 IF_ASSIGN(var, ent, struct trace_boot_ret, TRACE_BOOT_RET);\
250 IF_ASSIGN(var, ent, struct trace_unlikely, TRACE_UNLIKELY); \ 250 IF_ASSIGN(var, ent, struct trace_branch, TRACE_BRANCH); \
251 IF_ASSIGN(var, ent, struct ftrace_ret_entry, TRACE_FN_RET);\ 251 IF_ASSIGN(var, ent, struct ftrace_ret_entry, TRACE_FN_RET);\
252 __ftrace_bad_type(); \ 252 __ftrace_bad_type(); \
253 } while (0) 253 } while (0)
@@ -469,7 +469,7 @@ enum trace_iterator_flags {
469 TRACE_ITER_PRINTK = 0x400, 469 TRACE_ITER_PRINTK = 0x400,
470 TRACE_ITER_PREEMPTONLY = 0x800, 470 TRACE_ITER_PREEMPTONLY = 0x800,
471#ifdef CONFIG_BRANCH_TRACER 471#ifdef CONFIG_BRANCH_TRACER
472 TRACE_ITER_UNLIKELY = 0x1000, 472 TRACE_ITER_BRANCH = 0x1000,
473#endif 473#endif
474}; 474};
475 475
@@ -531,25 +531,25 @@ static inline void ftrace_preempt_enable(int resched)
531} 531}
532 532
533#ifdef CONFIG_BRANCH_TRACER 533#ifdef CONFIG_BRANCH_TRACER
534extern int enable_unlikely_tracing(struct trace_array *tr); 534extern int enable_branch_tracing(struct trace_array *tr);
535extern void disable_unlikely_tracing(void); 535extern void disable_branch_tracing(void);
536static inline int trace_unlikely_enable(struct trace_array *tr) 536static inline int trace_branch_enable(struct trace_array *tr)
537{ 537{
538 if (trace_flags & TRACE_ITER_UNLIKELY) 538 if (trace_flags & TRACE_ITER_BRANCH)
539 return enable_unlikely_tracing(tr); 539 return enable_branch_tracing(tr);
540 return 0; 540 return 0;
541} 541}
542static inline void trace_unlikely_disable(void) 542static inline void trace_branch_disable(void)
543{ 543{
544 /* due to races, always disable */ 544 /* due to races, always disable */
545 disable_unlikely_tracing(); 545 disable_branch_tracing();
546} 546}
547#else 547#else
548static inline int trace_unlikely_enable(struct trace_array *tr) 548static inline int trace_branch_enable(struct trace_array *tr)
549{ 549{
550 return 0; 550 return 0;
551} 551}
552static inline void trace_unlikely_disable(void) 552static inline void trace_branch_disable(void)
553{ 553{
554} 554}
555#endif /* CONFIG_BRANCH_TRACER */ 555#endif /* CONFIG_BRANCH_TRACER */