diff options
author | Arnd Bergmann <arnd@arndb.de> | 2016-09-06 15:10:22 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-09-06 16:34:14 -0700 |
commit | f1e4ba5b6a6555d1f6b174d4fd0a96a9363bb57f (patch) | |
tree | ce25127a5cf8b1ca5bda066c785fe1892a65152e /fs/9p | |
parent | 3f591997b1484cbf869d21b511c8d84902444cfb (diff) | |
download | blackbird-op-linux-f1e4ba5b6a6555d1f6b174d4fd0a96a9363bb57f.tar.gz blackbird-op-linux-f1e4ba5b6a6555d1f6b174d4fd0a96a9363bb57f.zip |
perf, bpf: fix conditional call to bpf_overflow_handler
The newly added bpf_overflow_handler function is only built of both
CONFIG_EVENT_TRACING and CONFIG_BPF_SYSCALL are enabled, but the caller
only checks the latter:
kernel/events/core.c: In function 'perf_event_alloc':
kernel/events/core.c:9106:27: error: 'bpf_overflow_handler' undeclared (first use in this function)
This changes the caller so we also skip this call if CONFIG_EVENT_TRACING
is disabled entirely.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: aa6a5f3cb2b2 ("perf, bpf: add perf events core support for BPF_PROG_TYPE_PERF_EVENT programs")
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/9p')
0 files changed, 0 insertions, 0 deletions