summaryrefslogtreecommitdiff
path: root/net/core/sock.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2016-09-06 15:10:22 +0200
committerMichael Bestas <mkbestas@lineageos.org>2022-04-19 00:51:44 +0300
commit1a759ab3516beb70fc432a7ebbae99b863d15517 (patch)
treec6a9e248c8d2df015c1d39796b333b4d7a6c5919 /net/core/sock.c
parent290f63d0da222ce841693e6de742c8c442ae6b38 (diff)
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 'net/core/sock.c')
0 files changed, 0 insertions, 0 deletions