perf bpf: Generalize bpf__setup_stdout()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 6 Aug 2018 12:53:35 +0000 (09:53 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 8 Aug 2018 18:55:56 +0000 (15:55 -0300)
commit92bbe8d834d293c4db7a70fd53884ec1c95d61dc
treeafe584cfc5046cf4b01da805d6d5a4c370722bed
parent5941d856a90435b32a3296c0b7df8f0075430b81
perf bpf: Generalize bpf__setup_stdout()

We will use it to set up other bpf-output events, for instance to
generate augmented syscall entry tracepoints with pointer contents.

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-4r7kw0nsyi4vyz6xm1tzx6a3@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/bpf-loader.c
tools/perf/util/bpf-loader.h