Skip to content

Commit 9e73821

Browse files
Quentin Perretrostedt
authored andcommitted
tracing: Fix number of entries in trace header
The following commit 441dae8 ("tracing: Add support for display of tgid in trace output") removed the call to print_event_info() from print_func_help_header_irq() which results in the ftrace header not reporting the number of entries written in the buffer. As this wasn't the original intent of the patch, re-introduce the call to print_event_info() to restore the orginal behaviour. Link: http://lkml.kernel.org/r/20190214152950.4179-1-quentin.perret@arm.com Acked-by: Joel Fernandes <joelaf@google.com> Cc: stable@vger.kernel.org Fixes: 441dae8 ("tracing: Add support for display of tgid in trace output") Signed-off-by: Quentin Perret <quentin.perret@arm.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 parent 2c4f1fc commit 9e73821

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kernel/trace/trace.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3384,6 +3384,8 @@ static void print_func_help_header_irq(struct trace_buffer *buf, struct seq_file
33843384
const char tgid_space[] = " ";
33853385
const char space[] = " ";
33863386

3387+
print_event_info(buf, m);
3388+
33873389
seq_printf(m, "# %s _-----=> irqs-off\n",
33883390
tgid ? tgid_space : space);
33893391
seq_printf(m, "# %s / _----=> need-resched\n",

0 commit comments

Comments
 (0)