Commit 9f76208c authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'tracing-fixes-for-linus' of...

Merge branch 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

* 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
  tracing: Fix branch tracer header
  tracing: Fix power tracer header
parents d06be221 557055be
...@@ -155,6 +155,13 @@ static enum print_line_t trace_branch_print(struct trace_iterator *iter, ...@@ -155,6 +155,13 @@ static enum print_line_t trace_branch_print(struct trace_iterator *iter,
return TRACE_TYPE_HANDLED; return TRACE_TYPE_HANDLED;
} }
static void branch_print_header(struct seq_file *s)
{
seq_puts(s, "# TASK-PID CPU# TIMESTAMP CORRECT"
" FUNC:FILE:LINE\n");
seq_puts(s, "# | | | | | "
" |\n");
}
static struct trace_event trace_branch_event = { static struct trace_event trace_branch_event = {
.type = TRACE_BRANCH, .type = TRACE_BRANCH,
...@@ -169,6 +176,7 @@ static struct tracer branch_trace __read_mostly = ...@@ -169,6 +176,7 @@ static struct tracer branch_trace __read_mostly =
#ifdef CONFIG_FTRACE_SELFTEST #ifdef CONFIG_FTRACE_SELFTEST
.selftest = trace_selftest_startup_branch, .selftest = trace_selftest_startup_branch,
#endif /* CONFIG_FTRACE_SELFTEST */ #endif /* CONFIG_FTRACE_SELFTEST */
.print_header = branch_print_header,
}; };
__init static int init_branch_tracer(void) __init static int init_branch_tracer(void)
......
...@@ -186,6 +186,12 @@ static enum print_line_t power_print_line(struct trace_iterator *iter) ...@@ -186,6 +186,12 @@ static enum print_line_t power_print_line(struct trace_iterator *iter)
return TRACE_TYPE_UNHANDLED; return TRACE_TYPE_UNHANDLED;
} }
static void power_print_header(struct seq_file *s)
{
seq_puts(s, "# TIMESTAMP STATE EVENT\n");
seq_puts(s, "# | | |\n");
}
static struct tracer power_tracer __read_mostly = static struct tracer power_tracer __read_mostly =
{ {
.name = "power", .name = "power",
...@@ -194,6 +200,7 @@ static struct tracer power_tracer __read_mostly = ...@@ -194,6 +200,7 @@ static struct tracer power_tracer __read_mostly =
.stop = stop_power_trace, .stop = stop_power_trace,
.reset = power_trace_reset, .reset = power_trace_reset,
.print_line = power_print_line, .print_line = power_print_line,
.print_header = power_print_header,
}; };
static int init_power_trace(void) static int init_power_trace(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment