diff options
Diffstat (limited to 'kernel/trace/trace_power.c')
-rw-r--r-- | kernel/trace/trace_power.c | 7 |
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 | ||
193 | static void power_print_header(struct seq_file *s) | ||
194 | { | ||
195 | seq_puts(s, "# TIMESTAMP STATE EVENT\n"); | ||
196 | seq_puts(s, "# | | |\n"); | ||
197 | } | ||
198 | |||
193 | static struct tracer power_tracer __read_mostly = | 199 | static 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 | ||
203 | static int init_power_trace(void) | 210 | static int init_power_trace(void) |