diff options
-rw-r--r-- | kernel/trace/trace_events.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index cdcc3aed76fd..210e71ff82db 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c | |||
@@ -487,7 +487,11 @@ event_format_read(struct file *filp, char __user *ubuf, size_t cnt, | |||
487 | if (*ppos) | 487 | if (*ppos) |
488 | return 0; | 488 | return 0; |
489 | 489 | ||
490 | /* If this fails, so will the show_format. */ | 490 | /* If any of the first writes fail, so will the show_format. */ |
491 | |||
492 | trace_seq_printf(s, "name: %s\n", call->name); | ||
493 | trace_seq_printf(s, "ID: %d\n", call->id); | ||
494 | trace_seq_printf(s, "format:\n"); | ||
491 | trace_write_header(s); | 495 | trace_write_header(s); |
492 | 496 | ||
493 | r = call->show_format(s); | 497 | r = call->show_format(s); |