Re: [PATCH v1 0/3] perf: Support a new coresum event qualifier

2019-03-15 Thread Jin, Yao
On 3/16/2019 7:26 AM, Andi Kleen wrote: Yes, the coresum's behavior is similar as --per-core option, just supports at the event level. I'm OK with calling it 'per-core'. For example, perf stat -e cpu/event=0,umask=0x3,per-core=1/ Please use percore, the - would need to be escaped in metric

Re: [PATCH v1 0/3] perf: Support a new coresum event qualifier

2019-03-15 Thread Andi Kleen
> Yes, the coresum's behavior is similar as --per-core option, just supports > at the event level. I'm OK with calling it 'per-core'. > > For example, > perf stat -e cpu/event=0,umask=0x3,per-core=1/ Please use percore, the - would need to be escaped in metric expressions. -Andi

Re: [PATCH v1 0/3] perf: Support a new coresum event qualifier

2019-03-15 Thread Jin, Yao
On 3/15/2019 9:34 PM, Jiri Olsa wrote: On Sat, Mar 16, 2019 at 12:04:13AM +0800, Jin Yao wrote: The coresum event qualifier which sums up the event counts for both hardware threads in a core. For example, perf stat -e cpu/event=0,umask=0x3,coresum=1/,cpu/event=0,umask=0x3/ In this example,

Re: [PATCH v1 0/3] perf: Support a new coresum event qualifier

2019-03-15 Thread Jiri Olsa
On Sat, Mar 16, 2019 at 12:04:13AM +0800, Jin Yao wrote: > The coresum event qualifier which sums up the event counts for both > hardware threads in a core. For example, > > perf stat -e cpu/event=0,umask=0x3,coresum=1/,cpu/event=0,umask=0x3/ > > In this example, we count the event 'ref-cycles' p

[PATCH v1 0/3] perf: Support a new coresum event qualifier

2019-03-15 Thread Jin Yao
The coresum event qualifier which sums up the event counts for both hardware threads in a core. For example, perf stat -e cpu/event=0,umask=0x3,coresum=1/,cpu/event=0,umask=0x3/ In this example, we count the event 'ref-cycles' per-core and per-CPU in one perf stat command-line. We can already su