Actually thinking about it more you should probably pass around ctx/cgroup in a single abstract argument. Otherwise have to change all the metrics functions for the next filter too.
- [PATCH] perf stat: Take cgroups into account for shadow stats Namhyung Kim
- Re: [PATCH] perf stat: Take cgroups into account for sha... Andi Kleen
- Re: [PATCH] perf stat: Take cgroups into account for sha... Andi Kleen