Re: [PATCHSET v2 0/3] perf stat: Enable BPF counters with --for-each-cgroup

From: Peter Zijlstra
Date: Wed Jun 16 2021 - 11:14:48 EST


On Mon, Jun 14, 2021 at 06:17:21PM -0700, Namhyung Kim wrote:
> Current limitations are:
> * it doesn't support cgroup hierarchy

That seems unfortunate; there's no bpf helper to iterate cgroup
hierarchy?

> * there's no reliable way to trigger running the BPF program

You can't attach to the PERF_COUNT_SW_CGROUP_SWITCHES event?