aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_event.h
diff options
context:
space:
mode:
authorKyle Huey <me@kylehuey.com>2024-04-11 18:50:15 -0700
committerIngo Molnar <mingo@kernel.org>2024-04-12 11:49:49 +0200
commit14e40a9578b70cc5323e55f61292a7e021f6037c (patch)
tree7c86fb11ad61a5e7d6ada7248495da6409c72082 /include/linux/perf_event.h
parentperf/bpf: Create bpf_overflow_handler() stub for !CONFIG_BPF_SYSCALL (diff)
downloadlinux-rng-14e40a9578b70cc5323e55f61292a7e021f6037c.tar.xz
linux-rng-14e40a9578b70cc5323e55f61292a7e021f6037c.zip
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
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r--include/linux/perf_event.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 3e33b366347a..50e01db083ee 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -809,11 +809,9 @@ struct perf_event {
u64 (*clock)(void);
perf_overflow_handler_t overflow_handler;
void *overflow_handler_context;
-#ifdef CONFIG_BPF_SYSCALL
perf_overflow_handler_t orig_overflow_handler;
struct bpf_prog *prog;
u64 bpf_cookie;
-#endif
#ifdef CONFIG_EVENT_TRACING
struct trace_event_call *tp_event;