Re: [PATCH] perf stat: Support regex pattern in --for-each-cgroup
From: Andi Kleen
Date: Fri Oct 23 2020 - 13:04:36 EST
On Fri, Oct 23, 2020 at 04:42:34PM +0900, Namhyung Kim wrote:
> To make the command line even more compact with cgroups, support regex
> pattern matching in cgroup names.
>
> $ perf stat -a -e cpu-clock,cycles --for-each-cgroup '^.$' sleep 1
The example doesn't exactly show the benefit. So ^.$ would be only
for one character cgroups?
Missing documentation updates.
-Andi