diff --git a/kernel/events/core.c b/kernel/events/core.c index 21fe33ca632770db440992defa2713acf80ba184..e1fa25c0946d8486f897d195d7ec201c89c74fdf 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -8673,7 +8673,7 @@ static void perf_event_bpf_output(struct perf_event *event, void *data) perf_event_header__init_id(&bpf_event->event_id.header, &sample, event); - ret = perf_output_begin(&handle, data, event, + ret = perf_output_begin(&handle, &sample, event, bpf_event->event_id.header.size); if (ret) return;