perf/bpf: Remove #ifdef CONFIG_BPF_SYSCALL from struct perf_event members
authorKyle Huey <me@kylehuey.com>
Fri, 12 Apr 2024 01:50:15 +0000 (18:50 -0700)
committerIngo Molnar <mingo@kernel.org>
Fri, 12 Apr 2024 09:49:49 +0000 (11:49 +0200)
commit14e40a9578b70cc5323e55f61292a7e021f6037c
tree7c86fb11ad61a5e7d6ada7248495da6409c72082
parent924d934393f98fa6a41d6ea27352faf79c2bbaf6
perf/bpf: Remove #ifdef CONFIG_BPF_SYSCALL from struct perf_event members

This will allow __perf_event_overflow() (which is independent of
CONFIG_BPF_SYSCALL) to use struct perf_event's prog to decide whether to
call bpf_overflow_handler().

Suggested-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Kyle Huey <khuey@kylehuey.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20240412015019.7060-4-khuey@kylehuey.com
include/linux/perf_event.h