perf augmented_raw_syscalls: Reduce perf_event_output() boilerplate
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 23 Aug 2019 18:54:02 +0000 (15:54 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 26 Aug 2019 14:58:29 +0000 (11:58 -0300)
commite051c2f69850e571cb408b555aaffb00c07dbb05
treecceb3e7253791d39ed61264a298f1f072d5181ed
parentc265784de7adff9e07934b712204556fb0b3ba43
perf augmented_raw_syscalls: Reduce perf_event_output() boilerplate

Add a augmented__output() helper to reduce the boilerplate of sending
the augmented tracepoint to the PERF_EVENT_ARRAY BPF map associated with
the bpf-output event used to communicate with the userspace perf trace
tool.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-ln99gt0j4fv0kw0778h6vphm@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/examples/bpf/augmented_raw_syscalls.c