Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+15
+8
kernel/trace/trace_branch.c
··· 155 155 return TRACE_TYPE_HANDLED; 156 156 } 157 157 158 + static void branch_print_header(struct seq_file *s) 159 + { 160 + seq_puts(s, "# TASK-PID CPU# TIMESTAMP CORRECT" 161 + " FUNC:FILE:LINE\n"); 162 + seq_puts(s, "# | | | | | " 163 + " |\n"); 164 + } 158 165 159 166 static struct trace_event trace_branch_event = { 160 167 .type = TRACE_BRANCH, ··· 176 169 #ifdef CONFIG_FTRACE_SELFTEST 177 170 .selftest = trace_selftest_startup_branch, 178 171 #endif /* CONFIG_FTRACE_SELFTEST */ 172 + .print_header = branch_print_header, 179 173 }; 180 174 181 175 __init static int init_branch_tracer(void)
+7
kernel/trace/trace_power.c
··· 186 186 return TRACE_TYPE_UNHANDLED; 187 187 } 188 188 189 + static void power_print_header(struct seq_file *s) 190 + { 191 + seq_puts(s, "# TIMESTAMP STATE EVENT\n"); 192 + seq_puts(s, "# | | |\n"); 193 + } 194 + 189 195 static struct tracer power_tracer __read_mostly = 190 196 { 191 197 .name = "power", ··· 200 194 .stop = stop_power_trace, 201 195 .reset = power_trace_reset, 202 196 .print_line = power_print_line, 197 + .print_header = power_print_header, 203 198 }; 204 199 205 200 static int init_power_trace(void)