aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.c
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.c
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.c')
-rw-r--r--kernel/trace/trace.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index bad59d32a4a..4bf070bb527 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -259,7 +259,7 @@ static const char *trace_options[] = {
259 "ftrace_printk", 259 "ftrace_printk",
260 "ftrace_preempt", 260 "ftrace_preempt",
261#ifdef CONFIG_BRANCH_TRACER 261#ifdef CONFIG_BRANCH_TRACER
262 "unlikely", 262 "branch",
263#endif 263#endif
264 NULL 264 NULL
265}; 265};
@@ -1651,8 +1651,8 @@ print_lat_fmt(struct trace_iterator *iter, unsigned int trace_idx, int cpu)
1651 trace_seq_print_cont(s, iter); 1651 trace_seq_print_cont(s, iter);
1652 break; 1652 break;
1653 } 1653 }
1654 case TRACE_UNLIKELY: { 1654 case TRACE_BRANCH: {
1655 struct trace_unlikely *field; 1655 struct trace_branch *field;
1656 1656
1657 trace_assign_type(field, entry); 1657 trace_assign_type(field, entry);
1658 1658
@@ -1802,8 +1802,8 @@ static enum print_line_t print_trace_fmt(struct trace_iterator *iter)
1802 return print_return_function(iter); 1802 return print_return_function(iter);
1803 break; 1803 break;
1804 } 1804 }
1805 case TRACE_UNLIKELY: { 1805 case TRACE_BRANCH: {
1806 struct trace_unlikely *field; 1806 struct trace_branch *field;
1807 1807
1808 trace_assign_type(field, entry); 1808 trace_assign_type(field, entry);
1809 1809
@@ -2619,7 +2619,7 @@ static int tracing_set_tracer(char *buf)
2619 if (t == current_trace) 2619 if (t == current_trace)
2620 goto out; 2620 goto out;
2621 2621
2622 trace_unlikely_disable(); 2622 trace_branch_disable();
2623 if (current_trace && current_trace->reset) 2623 if (current_trace && current_trace->reset)
2624 current_trace->reset(tr); 2624 current_trace->reset(tr);
2625 2625
@@ -2627,7 +2627,7 @@ static int tracing_set_tracer(char *buf)
2627 if (t->init) 2627 if (t->init)
2628 t->init(tr); 2628 t->init(tr);
2629 2629
2630 trace_unlikely_enable(tr); 2630 trace_branch_enable(tr);
2631 out: 2631 out:
2632 mutex_unlock(&trace_types_lock); 2632 mutex_unlock(&trace_types_lock);
2633 2633