perf bpf: Make bpf__for_each_stdout_map() generic
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 6 Aug 2018 12:46:33 +0000 (09:46 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 8 Aug 2018 18:55:55 +0000 (15:55 -0300)
commit5941d856a90435b32a3296c0b7df8f0075430b81
treef0c473d43bb291ec013909c1f3a6a23411ec08b1
parent53a5d7b80032fcf48cdc5a6c96c8dc8a120b64ef
perf bpf: Make bpf__for_each_stdout_map() generic

By passing a 'name' arg, that will eventually be used to setup more
"bpf-output" events, e.g. to create a event where to create raw_syscalls
like events that in addition to the syscall arguments will also copy the
pointer contents being passed from/to userspace.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-talrnxps9p3qozk3aeh91fgv@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/bpf-loader.c