Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143502
b: refs/heads/master
c: 557055b
h: refs/heads/master
v: v3
  • Loading branch information
Zhaolei authored and Ingo Molnar committed Apr 14, 2009
1 parent 796280c commit 942dbec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a3d03ecaf9fe722bf96e4ef4a2f5e42ef652ddeb
refs/heads/master: 557055bebe9212dfa6b9f5df811dfd0dac77ec55
8 changes: 8 additions & 0 deletions trunk/kernel/trace/trace_branch.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,13 @@ static enum print_line_t trace_branch_print(struct trace_iterator *iter,
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 = {
.type = TRACE_BRANCH,
Expand All @@ -169,6 +176,7 @@ static struct tracer branch_trace __read_mostly =
#ifdef CONFIG_FTRACE_SELFTEST
.selftest = trace_selftest_startup_branch,
#endif /* CONFIG_FTRACE_SELFTEST */
.print_header = branch_print_header,
};

__init static int init_branch_tracer(void)
Expand Down

0 comments on commit 942dbec

Please sign in to comment.