Re: [PATCH 1/2] perf core: Add PERF_COUNT_SW_CGROUP_SWITCHES event

2021-01-21 Thread Namhyung Kim
Hi Peter, Can you please take a look at this again? Thanks, Namhyung On Thu, Jan 14, 2021 at 5:50 PM Namhyung Kim wrote: > > This patch adds a new software event to count context switches > involving cgroup switches. So it's counted only if cgroups of > previous and next tasks are different.

[PATCH 1/2] perf core: Add PERF_COUNT_SW_CGROUP_SWITCHES event

2021-01-14 Thread Namhyung Kim
This patch adds a new software event to count context switches involving cgroup switches. So it's counted only if cgroups of previous and next tasks are different. Note that it only checks the cgroups in the perf_event subsystem. For cgroup v2, it shouldn't matter anyway. One can argue that we