Re: [PATCH] perf stat: Create '--add-default' option to append default list

2021-03-12 Thread Andi Kleen
> A more concise syntax would be -e +event > > The + would apply to the whole event list if there are multiple. > > and maybe -event too to remove something from the default list. Sorry that was an old email. Please ignore. -Andi

Re: [PATCH] perf stat: Create '--add-default' option to append default list

2021-03-12 Thread Andi Kleen
On Tue, Dec 22, 2020 at 09:11:31AM +0800, Jin Yao wrote: > The event default list includes the most common events which are widely > used by users. But with -e option, the current perf only counts the events > assigned by -e option. Users may want to collect some extra events with > the default

Re: [PATCH] perf stat: Create '--add-default' option to append default list

2020-12-22 Thread Jin, Yao
On 12/23/2020 8:56 AM, Jin, Yao wrote: Hi Arnaldo, On 12/23/2020 12:15 AM, Arnaldo Carvalho de Melo wrote: Em Tue, Dec 22, 2020 at 09:11:31AM +0800, Jin Yao escreveu: The event default list includes the most common events which are widely used by users. But with -e option, the current perf

Re: [PATCH] perf stat: Create '--add-default' option to append default list

2020-12-22 Thread Jin, Yao
Hi Arnaldo, On 12/23/2020 12:15 AM, Arnaldo Carvalho de Melo wrote: Em Tue, Dec 22, 2020 at 09:11:31AM +0800, Jin Yao escreveu: The event default list includes the most common events which are widely used by users. But with -e option, the current perf only counts the events assigned by -e

Re: [PATCH] perf stat: Create '--add-default' option to append default list

2020-12-22 Thread Arnaldo Carvalho de Melo
Em Tue, Dec 22, 2020 at 09:11:31AM +0800, Jin Yao escreveu: > The event default list includes the most common events which are widely > used by users. But with -e option, the current perf only counts the events > assigned by -e option. Users may want to collect some extra events with > the default

[PATCH] perf stat: Create '--add-default' option to append default list

2020-12-21 Thread Jin Yao
The event default list includes the most common events which are widely used by users. But with -e option, the current perf only counts the events assigned by -e option. Users may want to collect some extra events with the default list. For this case, users have to manually add all the events from