Re: [PATCH v3 1/3] perf core: Factor out __perf_sw_event_sched

2021-02-25 Thread Stephane Eranian
Hi Peter, Any comments on this patch series? It is quite useful to be able to count the number of cgroup switches simply using perf stat/record. Not all context switches (cs) are necessarily cgroup switches. Thanks. On Wed, Feb 10, 2021 at 12:33 AM Namhyung Kim wrote: > > In some cases, we need

[PATCH v3 1/3] perf core: Factor out __perf_sw_event_sched

2021-02-10 Thread Namhyung Kim
In some cases, we need to check more than whether the software event is enabled. So split the condition check and the actual event handling. This is a preparation for the next change. Suggested-by: Peter Zijlstra Signed-off-by: Namhyung Kim --- include/linux/perf_event.h | 33