summaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2012-09-18 11:21:50 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-09-24 12:26:59 -0300
commitefd2b924d3af0efd360cb5b7f29ddc9bc74fce4b (patch)
treed33cf0ddc12567a6cbef32b614b9873044decc95 /tools/perf/builtin.h
parent2b29175d2b212d88f100c8819aaea097be61e062 (diff)
downloadtalos-obmc-linux-efd2b924d3af0efd360cb5b7f29ddc9bc74fce4b.tar.gz
talos-obmc-linux-efd2b924d3af0efd360cb5b7f29ddc9bc74fce4b.zip
perf evsel: Provide a new constructor for tracepoints
The existing constructor receives a perf_event_attr filled with the event type and the config. To reduce the boilerplate for tracepoints, provide a new constructor, perf_evsel__newtp() that receives the tracepoint name and will open the debugfs file, call into libtraceevent new pevent_parse_format file to fill its ->tp_format member, so that users can then just call perf_evsel__field() to access its fields. Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Cc: Steven Rostedt <rostedt@goodmis.org> Link: http://lkml.kernel.org/n/tip-6du8dl1hz0y5l4cybodye7hn@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud