aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2016-03-23 10:16:28 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2016-03-23 14:08:12 -0400
commit4f3c887688a2b0c01b241afcfedbb4e5e4a8e022 (patch)
tree2d3b47c983532f3a0e94f0a2e7a45e1d82cb208d /tools/lib
parent3938bad44ed2fea41328e4be2ae04a8e94540813 (diff)
tools lib traceevent: Remove redundant CPU output
Commit a6745330789f ("tools lib traceevent: Split pevent_print_event() into specific functionality functions") broke apart the function pevent_print_event() into three functions. The first function prints the comm, pid and CPU, the second prints the timestamp. But that commit added the printing of the CPU in the timestamp function, which now causes pevent_print_event() to duplicate the CPU output. Remove the redundant printing of the record's CPU from the timestamp function. Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Cc: Namhyung Kim <namhyung@kernel.org> Fixes: a6745330789f ("tools lib traceevent: Split pevent_print_event() into specific functionality functions") Link: http://lkml.kernel.org/r/20160323101628.459375d2@gandalf.local.home Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/traceevent/event-parse.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index 190cc886ab91..a8b6357d1ffe 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -5427,10 +5427,8 @@ void pevent_print_event_time(struct pevent *pevent, struct trace_seq *s,
5427 } 5427 }
5428 5428
5429 if (pevent->latency_format) { 5429 if (pevent->latency_format) {
5430 trace_seq_printf(s, " %3d", record->cpu);
5431 pevent_data_lat_fmt(pevent, s, record); 5430 pevent_data_lat_fmt(pevent, s, record);
5432 } else 5431 }
5433 trace_seq_printf(s, " [%03d]", record->cpu);
5434 5432
5435 if (use_usec_format) { 5433 if (use_usec_format) {
5436 if (pevent->flags & PEVENT_NSEC_OUTPUT) { 5434 if (pevent->flags & PEVENT_NSEC_OUTPUT) {