tools lib traceevent: Add retrieval of preempt count and latency flags
authorSteven Rostedt <rostedt@goodmis.org>
Tue, 22 Nov 2016 16:31:58 +0000 (11:31 -0500)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 23 Nov 2016 13:44:03 +0000 (10:44 -0300)
commitc52d9e4e677b0407fe553e9211802e2505a2f244
treee29777a93f6525a2cfa96ea62ac813a4d9277826
parentbb5a7316b909612a382b30b568c6b0345b4b6768
tools lib traceevent: Add retrieval of preempt count and latency flags

Add a way to retrieve the preempt count as well as the latency flags from a
pevent_record.

  int pevent_data_preempt_count(pevent, record);

returns the preempt count of a record.

  int pevent_data_flags(pevent, record);

returns the latency flags for a record.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/20161122113158.03a010a8@gandalf.local.home
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/event-parse.c
tools/lib/traceevent/event-parse.h