diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2016-02-29 15:01:28 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-02-29 15:35:21 +0100 |
commit | a6745330789f25103e67011bcfeec908fcc3b341 (patch) | |
tree | 983529a632216cf142edf440373e0681d1f03e1e /tools/perf/util/pmu.c | |
parent | tracing/syscalls: Rename "/format" tracepoint field name "nr" to "__syscall_nr: (diff) | |
download | linux-a6745330789f25103e67011bcfeec908fcc3b341.tar.xz linux-a6745330789f25103e67011bcfeec908fcc3b341.zip |
tools lib traceevent: Split pevent_print_event() into specific functionality functions
Currently there's a single function that is used to display a record's
data in human readable format. That's pevent_print_event().
Unfortunately, this gives little room for adding other output within the
line without updating that function call.
I've decided to split that function into 3 parts.
pevent_print_event_task() which prints the task comm, pid and the CPU
pevent_print_event_time() which outputs the record's timestamp
pevent_print_event_data() which outputs the rest of the event data.
pevent_print_event() now simply calls these three functions.
To save time from doing the search for event from the record's type, I
created a new helper function called pevent_find_event_by_record(),
which returns the record's event, and this event has to be passed to the
above functions.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/20160229090128.43a56704@gandalf.local.home
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/pmu.c')
0 files changed, 0 insertions, 0 deletions