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

2020-10-27 Thread Arnaldo Carvalho de Melo
Em Tue, Oct 27, 2020 at 02:44:21PM +0100, Jiri Olsa escreveu: > On Tue, Oct 27, 2020 at 04:28:55PM +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

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

2020-10-27 Thread Jiri Olsa
On Tue, Oct 27, 2020 at 04:28:55PM +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 ^foo sleep 1 > > 3,000.73 msec cpu-clock

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

2020-10-27 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 ^foo sleep 1 3,000.73 msec cpu-clock foo #2.998 CPUs utilized 12,530,992,699 cycles