diff options
| author | Kyle Huey <[email protected]> | 2024-04-12 01:50:18 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2024-04-12 09:49:50 +0000 |
| commit | c4fcc7d1f41532e878087c7c43f4cf247604d68b (patch) | |
| tree | 42d5d279844896a20d768199e71ca22cb84671a5 /tools/testing/selftests/bpf/prog_tests/perf_skip.c | |
| parent | perf/bpf: Remove unneeded uses_default_overflow_handler() (diff) | |
| download | kernel-c4fcc7d1f41532e878087c7c43f4cf247604d68b.tar.gz kernel-c4fcc7d1f41532e878087c7c43f4cf247604d68b.zip | |
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 <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Acked-by: Song Liu <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Acked-by: Namhyung Kim <[email protected]>
Acked-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/perf_skip.c')
0 files changed, 0 insertions, 0 deletions
