perf python: Add perf.tracepoint method
authorJiri Olsa <jolsa@kernel.org>
Sun, 10 Jul 2016 11:07:58 +0000 (13:07 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 12 Jul 2016 19:17:54 +0000 (16:17 -0300)
commit1075fbb22f095c857930190e30fd3ae422d424b6
treea339b96b07b678b2f921f51c93e32eb278bd1d90
parent85e37de3a993b9e407398f792b996acad27f4cdc
perf python: Add perf.tracepoint method

To get id of the tracepoint from subsystem and name strings. The
interface is:

  id = perf.tracepoint(sys, name)

In case of error -1 is returned.

It will be used to get python tracepoint event's config value for
tracepoint event.

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-7-git-send-email-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/python.c