aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_branch.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-05-07 05:17:13 -0400
committerIngo Molnar <mingo@elte.hu>2009-05-07 05:17:34 -0400
commit44347d947f628060b92449702071bfe1d31dfb75 (patch)
treec6ed74610d5b3295df4296659f80f5feb94b28cc /kernel/trace/trace_branch.c
parentd94fc523f3c35bd8013f04827e94756cbc0212f4 (diff)
parent413f81eba35d6ede9289b0c8a920c013a84fac71 (diff)
Merge branch 'linus' into tracing/core
Merge reason: tracing/core was on a .30-rc1 base and was missing out on on a handful of tracing fixes present in .30-rc5-almost. Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_branch.c')
-rw-r--r--kernel/trace/trace_branch.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/trace/trace_branch.c b/kernel/trace/trace_branch.c
index 8e64e604f5a..7a7a9fd249a 100644
--- a/kernel/trace/trace_branch.c
+++ b/kernel/trace/trace_branch.c
@@ -157,6 +157,13 @@ static enum print_line_t trace_branch_print(struct trace_iterator *iter,
157 return TRACE_TYPE_HANDLED; 157 return TRACE_TYPE_HANDLED;
158} 158}
159 159
160static void branch_print_header(struct seq_file *s)
161{
162 seq_puts(s, "# TASK-PID CPU# TIMESTAMP CORRECT"
163 " FUNC:FILE:LINE\n");
164 seq_puts(s, "# | | | | | "
165 " |\n");
166}
160 167
161static struct trace_event trace_branch_event = { 168static struct trace_event trace_branch_event = {
162 .type = TRACE_BRANCH, 169 .type = TRACE_BRANCH,
@@ -171,6 +178,7 @@ static struct tracer branch_trace __read_mostly =
171#ifdef CONFIG_FTRACE_SELFTEST 178#ifdef CONFIG_FTRACE_SELFTEST
172 .selftest = trace_selftest_startup_branch, 179 .selftest = trace_selftest_startup_branch,
173#endif /* CONFIG_FTRACE_SELFTEST */ 180#endif /* CONFIG_FTRACE_SELFTEST */
181 .print_header = branch_print_header,
174}; 182};
175 183
176__init static int init_branch_tracer(void) 184__init static int init_branch_tracer(void)