History

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.

Steven Rostedt committed 10 years ago

Commit 4f3c8871 parent 3938bad1 file · +1 −3Browse files

Unified · Split

tools/lib/traceevent/event-parse.c+1−3
@@ -5427,10 +5427,8 @@ void pevent_print_event_time(struct pevent *pevent, struct trace_seq *s, · 5426 unmodified lines
54275427 }
54285428
54295429 if (pevent->latency_format) {
5430− trace_seq_printf(s, " %3d", record->cpu);
54315430 pevent_data_lat_fmt(pevent, s, record);
5432− } else
5433− trace_seq_printf(s, " [%03d]", record->cpu);
5431+ }
54345432
54355433 if (use_usec_format) {
54365434 if (pevent->flags & PEVENT_NSEC_OUTPUT) {