perf tools: Introduce trace_event__tp_format_id()
authorJiri Olsa <jolsa@kernel.org>
Sun, 10 Jul 2016 11:07:54 +0000 (13:07 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 12 Jul 2016 19:14:52 +0000 (16:14 -0300)
commit71fe1052af98fc5b615c067425aeb6fe39a0368c
treeee6a400ea66b9aa32fc1672429eeb30a077eef4b
parent7cb5c5acaba9fa0b90ca11275f19131d3eca35c2
perf tools: Introduce trace_event__tp_format_id()

To get struct event_format object from tracepoint ID.  It will be used
in following patches.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1468148882-10362-3-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/trace-event.c
tools/perf/util/trace-event.h