Re: [PATCH 4/5] nds32: Fix perf multiple events map to same counter.

2018-10-22 Thread Nick Hu
Hi Mark, On Thu, Oct 18, 2018 at 10:29:05PM +0800, Mark Rutland wrote: > On Thu, Oct 18, 2018 at 04:43:16PM +0800, Nickhu wrote: > > When there are multiple events map to the same counter, the counter > > counts inaccurately. This is because each counter only counts one event > > in the same

Re: [PATCH 4/5] nds32: Fix perf multiple events map to same counter.

2018-10-22 Thread Nick Hu
Hi Mark, On Thu, Oct 18, 2018 at 10:29:05PM +0800, Mark Rutland wrote: > On Thu, Oct 18, 2018 at 04:43:16PM +0800, Nickhu wrote: > > When there are multiple events map to the same counter, the counter > > counts inaccurately. This is because each counter only counts one event > > in the same

Re: [PATCH 4/5] nds32: Fix perf multiple events map to same counter.

2018-10-18 Thread Mark Rutland
On Thu, Oct 18, 2018 at 04:43:16PM +0800, Nickhu wrote: > When there are multiple events map to the same counter, the counter > counts inaccurately. This is because each counter only counts one event > in the same time. > So when there are multiple events map to same counter, they have to take >

Re: [PATCH 4/5] nds32: Fix perf multiple events map to same counter.

2018-10-18 Thread Mark Rutland
On Thu, Oct 18, 2018 at 04:43:16PM +0800, Nickhu wrote: > When there are multiple events map to the same counter, the counter > counts inaccurately. This is because each counter only counts one event > in the same time. > So when there are multiple events map to same counter, they have to take >

[PATCH 4/5] nds32: Fix perf multiple events map to same counter.

2018-10-18 Thread Nickhu
When there are multiple events map to the same counter, the counter counts inaccurately. This is because each counter only counts one event in the same time. So when there are multiple events map to same counter, they have to take turns in each context. There are two solution: 1. Print the error

[PATCH 4/5] nds32: Fix perf multiple events map to same counter.

2018-10-18 Thread Nickhu
When there are multiple events map to the same counter, the counter counts inaccurately. This is because each counter only counts one event in the same time. So when there are multiple events map to same counter, they have to take turns in each context. There are two solution: 1. Print the error