Commit c4fcc7d
perf/bpf: Allow a BPF program to suppress all sample side effects
Returning zero from a BPF program attached to a perf event already
suppresses any data output. Return early from __perf_event_overflow() in
this case so it will also suppress event_limit accounting, SIGTRAP
generation, and F_ASYNC signalling.
Signed-off-by: Kyle Huey <khuey@kylehuey.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Song Liu <song@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20240412015019.7060-7-khuey@kylehuey.com1 parent 76f6d58 commit c4fcc7d
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9677 | 9677 | | |
9678 | 9678 | | |
9679 | 9679 | | |
| 9680 | + | |
| 9681 | + | |
| 9682 | + | |
9680 | 9683 | | |
9681 | 9684 | | |
9682 | 9685 | | |
| |||
9726 | 9729 | | |
9727 | 9730 | | |
9728 | 9731 | | |
9729 | | - | |
9730 | | - | |
| 9732 | + | |
9731 | 9733 | | |
9732 | 9734 | | |
9733 | 9735 | | |
| |||
0 commit comments