Re: [PATCH] perf, tools: Fix adding multiple event groups

2017-09-17 Thread Jiri Olsa
On Thu, Sep 14, 2017 at 01:57:35PM -0700, Andi Kleen wrote: > From: Andi Kleen > > The -M metric group parser threw away the events of earlier > groups when multiple groups were specified. Fix this here > by not overwriting the string incorrectly. > > Now this works correctly: > > % perf stat -

[PATCH] perf, tools: Fix adding multiple event groups

2017-09-14 Thread Andi Kleen
From: Andi Kleen The -M metric group parser threw away the events of earlier groups when multiple groups were specified. Fix this here by not overwriting the string incorrectly. Now this works correctly: % perf stat -M Summary,SMT --metric-only -a sleep 1 Performance counter stats for 'system