Re: [PATCH] perf stat: Support regex pattern in --for-each-cgroup

2020-10-23 Thread Namhyung Kim
Hi Andi, On Sat, Oct 24, 2020 at 2:04 AM Andi Kleen wrote: > > 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-cgr

Re: [PATCH] perf stat: Support regex pattern in --for-each-cgroup

2020-10-23 Thread Andi Kleen
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 ^.$

[PATCH] perf stat: Support regex pattern in --for-each-cgroup

2020-10-23 Thread Namhyung Kim
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 Performance counter stats for 'system wide': 992.90 msec cpu-clock A #0.992 CPUs utiliz