Re: [PATCH v3] perf parse-events: Set exclude_guest=1 for user-space counting

2020-08-25 Thread Arnaldo Carvalho de Melo
Em Tue, Aug 25, 2020 at 03:54:37PM +0800, Jin, Yao escreveu: > Hi Arnaldo, > > On 8/19/2020 11:05 AM, Like Xu wrote: > > Hi Arnaldo, > > > > On 2020/8/17 10:32, Jin, Yao wrote: > > > Hi Arnaldo, > > > > > > On 8/14/2020 8:47 PM, Arnaldo Carvalho de Melo wrote: > > > > Em Fri, Aug 14, 2020 at 09:

Re: [PATCH v3] perf parse-events: Set exclude_guest=1 for user-space counting

2020-08-25 Thread Jin, Yao
Hi Arnaldo, On 8/19/2020 11:05 AM, Like Xu wrote: Hi Arnaldo, On 2020/8/17 10:32, Jin, Yao wrote: Hi Arnaldo, On 8/14/2020 8:47 PM, Arnaldo Carvalho de Melo wrote: Em Fri, Aug 14, 2020 at 09:21:20AM +0800, Jin Yao escreveu: Currently if we run 'perf record -e cycles:u', exclude_guest=0. Bu

Re: [PATCH v3] perf parse-events: Set exclude_guest=1 for user-space counting

2020-08-18 Thread Like Xu
Hi Arnaldo, On 2020/8/17 10:32, Jin, Yao wrote: Hi Arnaldo, On 8/14/2020 8:47 PM, Arnaldo Carvalho de Melo wrote: Em Fri, Aug 14, 2020 at 09:21:20AM +0800, Jin Yao escreveu: Currently if we run 'perf record -e cycles:u', exclude_guest=0. But it doesn't make sense in most cases that we reques

Re: [PATCH v3] perf parse-events: Set exclude_guest=1 for user-space counting

2020-08-16 Thread Jin, Yao
Hi Arnaldo, On 8/14/2020 8:47 PM, Arnaldo Carvalho de Melo wrote: Em Fri, Aug 14, 2020 at 09:21:20AM +0800, Jin Yao escreveu: Currently if we run 'perf record -e cycles:u', exclude_guest=0. But it doesn't make sense in most cases that we request for user-space counting but we also get the gues

Re: [PATCH v3] perf parse-events: Set exclude_guest=1 for user-space counting

2020-08-14 Thread Arnaldo Carvalho de Melo
Em Fri, Aug 14, 2020 at 09:21:20AM +0800, Jin Yao escreveu: > Currently if we run 'perf record -e cycles:u', exclude_guest=0. > > But it doesn't make sense in most cases that we request for > user-space counting but we also get the guest report. > > Of course, we also need to consider perf kvm us

[PATCH v3] perf parse-events: Set exclude_guest=1 for user-space counting

2020-08-13 Thread Jin Yao
Currently if we run 'perf record -e cycles:u', exclude_guest=0. But it doesn't make sense in most cases that we request for user-space counting but we also get the guest report. Of course, we also need to consider perf kvm usage case that authorized perf users on the host may only want to count g