]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9228d4df07107403bab1816bfbecc9a1938d9c64
tree6f2576a080c390b9aed6d8a57c06b7b55e9b2a78
parent15bf47787470cb54ba652df28b9f14656479b0ba
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