diff options
author | Chengming Zhou <zhouchengming@bytedance.com> | 2022-03-29 17:45:23 +0200 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2022-04-05 09:59:45 +0200 |
commit | e19cd0b6fa5938c51d7b928010d584f0de93913a (patch) | |
tree | 4a1f067ea20e6d3ed7c53fc08129b694f7ef4350 /kernel/kprobes.c | |
parent | perf/core: Fix perf_cgroup_switch() (diff) | |
download | linux-e19cd0b6fa5938c51d7b928010d584f0de93913a.tar.xz linux-e19cd0b6fa5938c51d7b928010d584f0de93913a.zip |
perf/core: Always set cpuctx cgrp when enable cgroup event
When enable a cgroup event, cpuctx->cgrp setting is conditional
on the current task cgrp matching the event's cgroup, so have to
do it for every new event. It brings complexity but no advantage.
To keep it simple, this patch would always set cpuctx->cgrp
when enable the first cgroup event, and reset to NULL when disable
the last cgroup event.
Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20220329154523.86438-5-zhouchengming@bytedance.com
Diffstat (limited to 'kernel/kprobes.c')
0 files changed, 0 insertions, 0 deletions