Skip to content

Commit 14e40a9

Browse files
khueyIngo Molnar
authored andcommitted
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 <[email protected]> Signed-off-by: Kyle Huey <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 924d934 commit 14e40a9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

include/linux/perf_event.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -809,11 +809,9 @@ struct perf_event {
809809
u64 (*clock)(void);
810810
perf_overflow_handler_t overflow_handler;
811811
void *overflow_handler_context;
812-
#ifdef CONFIG_BPF_SYSCALL
813812
perf_overflow_handler_t orig_overflow_handler;
814813
struct bpf_prog *prog;
815814
u64 bpf_cookie;
816-
#endif
817815

818816
#ifdef CONFIG_EVENT_TRACING
819817
struct trace_event_call *tp_event;

0 commit comments

Comments
 (0)