aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_power.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_power.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_power.c')
-rw-r--r--kernel/trace/trace_power.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/trace/trace_power.c b/kernel/trace/trace_power.c
index 810a5b7cf1c5..8a30d9874cd4 100644
--- a/kernel/trace/trace_power.c
+++ b/kernel/trace/trace_power.c
@@ -190,6 +190,12 @@ static enum print_line_t power_print_line(struct trace_iterator *iter)
190 return TRACE_TYPE_UNHANDLED; 190 return TRACE_TYPE_UNHANDLED;
191} 191}
192 192
193static void power_print_header(struct seq_file *s)
194{
195 seq_puts(s, "# TIMESTAMP STATE EVENT\n");
196 seq_puts(s, "# | | |\n");
197}
198
193static struct tracer power_tracer __read_mostly = 199static struct tracer power_tracer __read_mostly =
194{ 200{
195 .name = "power", 201 .name = "power",
@@ -198,6 +204,7 @@ static struct tracer power_tracer __read_mostly =
198 .stop = stop_power_trace, 204 .stop = stop_power_trace,
199 .reset = power_trace_reset, 205 .reset = power_trace_reset,
200 .print_line = power_print_line, 206 .print_line = power_print_line,
207 .print_header = power_print_header,
201}; 208};
202 209
203static int init_power_trace(void) 210static int init_power_trace(void)