aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/trace/trace.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 42fdf3adff31..cf22b4bf9896 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -2053,6 +2053,9 @@ void trace_default_header(struct seq_file *m)
2053{ 2053{
2054 struct trace_iterator *iter = m->private; 2054 struct trace_iterator *iter = m->private;
2055 2055
2056 if (!(trace_flags & TRACE_ITER_CONTEXT_INFO))
2057 return;
2058
2056 if (iter->iter_flags & TRACE_FILE_LAT_FMT) { 2059 if (iter->iter_flags & TRACE_FILE_LAT_FMT) {
2057 /* print nothing if the buffers are empty */ 2060 /* print nothing if the buffers are empty */
2058 if (trace_empty(iter)) 2061 if (trace_empty(iter))