perf bpf: Move perf_event_output() from stdio.h to bpf.h
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 12 Dec 2018 18:31:28 +0000 (15:31 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 18 Dec 2018 15:23:58 +0000 (12:23 -0300)
commit61d007138a44dc69265cf948eadd1759edbd3875
tree6f2576a080c390b9aed6d8a57c06b7b55e9b2a78
parentb27b38ed9427b32e0194e03281e3a79dd49887b2
perf bpf: Move perf_event_output() from stdio.h to bpf.h

So that we don't always carry that __bpf_output__ map, leaving that to
the scripts wanting to use that facility.

'perf trace' will be changed to look if that map is present and only
setup the bpf-output events if so.

Cc: Adrian Hunter <adrian.hunter@intel.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-azwys8irxqx9053vpajr0k5h@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/include/bpf/bpf.h
tools/perf/include/bpf/stdio.h