diff options
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index f2bd275bb60f..9e158cc84ced 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -2140,6 +2140,21 @@ enum print_line_t print_trace_line(struct trace_iterator *iter) | |||
2140 | return print_trace_fmt(iter); | 2140 | return print_trace_fmt(iter); |
2141 | } | 2141 | } |
2142 | 2142 | ||
2143 | void trace_latency_header(struct seq_file *m) | ||
2144 | { | ||
2145 | struct trace_iterator *iter = m->private; | ||
2146 | |||
2147 | /* print nothing if the buffers are empty */ | ||
2148 | if (trace_empty(iter)) | ||
2149 | return; | ||
2150 | |||
2151 | if (iter->iter_flags & TRACE_FILE_LAT_FMT) | ||
2152 | print_trace_header(m, iter); | ||
2153 | |||
2154 | if (!(trace_flags & TRACE_ITER_VERBOSE)) | ||
2155 | print_lat_help_header(m); | ||
2156 | } | ||
2157 | |||
2143 | void trace_default_header(struct seq_file *m) | 2158 | void trace_default_header(struct seq_file *m) |
2144 | { | 2159 | { |
2145 | struct trace_iterator *iter = m->private; | 2160 | struct trace_iterator *iter = m->private; |