WSL2-Linux-Kernel/kernel/events
Chengming Zhou e19cd0b6fa 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
2022-04-05 09:59:45 +02:00
..
Makefile perf/core: allow ftrace for functions in kernel/event/core.c 2021-10-25 22:50:42 -04:00
callchain.c uaccess: remove CONFIG_SET_FS 2022-02-25 09:36:06 +01:00
core.c perf/core: Always set cpuctx cgrp when enable cgroup event 2022-04-05 09:59:45 +02:00
hw_breakpoint.c
internal.h tracing/perf: Add interrupt_context_level() helper 2021-10-19 20:33:20 -04:00
ring_buffer.c
uprobes.c mm: Add DEFINE_PAGE_VMA_WALK and DEFINE_FOLIO_VMA_WALK 2022-03-21 12:59:02 -04:00