diff options
author | Kyle Huey | 2024-04-11 18:50:14 -0700 |
---|---|---|
committer | Ingo Molnar | 2024-04-12 11:49:48 +0200 |
commit | 924d934393f98fa6a41d6ea27352faf79c2bbaf6 (patch) | |
tree | 451e56cb147c607c21f1f4542e895b84a1c6ae7d /kernel/events | |
parent | 4c03fe11b96bda60610aca77002e83f37b4a2242 (diff) |
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 <khuey@kylehuey.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20240412015019.7060-3-khuey@kylehuey.com
Diffstat (limited to 'kernel/events')
-rw-r--r-- | kernel/events/core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c index ca0a90648fe6..d3f3f552e193 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -9643,6 +9643,12 @@ static void perf_event_free_bpf_handler(struct perf_event *event) bpf_prog_put(prog); } #else +static void bpf_overflow_handler(struct perf_event *event, + struct perf_sample_data *data, + struct pt_regs *regs) +{ +} + static int perf_event_set_bpf_handler(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie) |