Skip to content

Commit 924d934

Browse files
khueyIngo Molnar
authored andcommitted
perf/bpf: Create bpf_overflow_handler() stub for !CONFIG_BPF_SYSCALL
This will allow __perf_event_overflow() (which is independent of CONFIG_BPF_SYSCALL) to call bpf_overflow_handler(). Signed-off-by: Kyle Huey <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 4c03fe1 commit 924d934

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

kernel/events/core.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9643,6 +9643,12 @@ static void perf_event_free_bpf_handler(struct perf_event *event)
96439643
bpf_prog_put(prog);
96449644
}
96459645
#else
9646+
static void bpf_overflow_handler(struct perf_event *event,
9647+
struct perf_sample_data *data,
9648+
struct pt_regs *regs)
9649+
{
9650+
}
9651+
96469652
static int perf_event_set_bpf_handler(struct perf_event *event,
96479653
struct bpf_prog *prog,
96489654
u64 bpf_cookie)

0 commit comments

Comments
 (0)