Re: [PATCH] perf/bpf: Don't call bpf_overflow_handler() for tracing events
From: Peter Zijlstra
Date: Mon Jul 15 2024 - 12:30:30 EST
On Mon, Jul 15, 2024 at 08:19:44AM -0700, Kyle Huey wrote:
> I think this would probably work but stealing the bit seems far more
> complicated than just gating on perf_event_is_tracing().
perf_event_is_tracing() is something like 3 branches. It is not a simple
conditional. Combined with that re-load and the wrong return value, this
all wants a cleanup.
Using that LSB works, it's just that the code aint pretty.