Commit 61988e36 authored by Peter Zijlstra's avatar Peter Zijlstra
Browse files

perf: Fix cgroup state vs ERROR



While chasing down a missing perf_cgroup_event_disable() elsewhere,
Leo Yan found that both perf_put_aux_event() and
perf_remove_sibling_event() were also missing one.

Specifically, the rule is that events that switch to OFF,ERROR need to
call perf_cgroup_event_disable().

Unify the disable paths to ensure this.

Fixes: ab43762e ("perf: Allow normal events to output AUX data")
Fixes: 9f0c4fa1 ("perf/core: Add a new PERF_EV_CAP_SIBLING event capability")
Reported-by: default avatarLeo Yan <leo.yan@arm.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20250605123343.GD35970@noisy.programming.kicks-ass.net
parent 4f6fc782
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment