Re: [PATCH V2 0/2] measure SMI cost (user)

2017-06-20 Thread Jiri Olsa
On Fri, May 26, 2017 at 12:05:36PM -0700, kan.li...@intel.com wrote: > From: Kan Liang > > Currently, there is no way to measure the time cost in System management > mode (SMM) by perf. > > Intel perfmon supports FREEZE_WHILE_SMM bit in IA32_DEBUGCTL. Once it sets, > the

Re: [PATCH V2 0/2] measure SMI cost (user)

2017-06-20 Thread Jiri Olsa
On Fri, May 26, 2017 at 12:05:36PM -0700, kan.li...@intel.com wrote: > From: Kan Liang > > Currently, there is no way to measure the time cost in System management > mode (SMM) by perf. > > Intel perfmon supports FREEZE_WHILE_SMM bit in IA32_DEBUGCTL. Once it sets, > the PMU core counters will

Re: [PATCH V2 0/2] measure SMI cost (user)

2017-06-20 Thread 'Arnaldo Carvalho de Melo'
n > > > Subject: RE: [PATCH V2 0/2] measure SMI cost (user) > > > > Hi Jirka, > > > > Have you got a chance to try the code? > > Are you OK with the patch? > > > > Thanks, > > Kan > > > > > > > > Em Fri, Jun 0

Re: [PATCH V2 0/2] measure SMI cost (user)

2017-06-20 Thread 'Arnaldo Carvalho de Melo'
n > > > Subject: RE: [PATCH V2 0/2] measure SMI cost (user) > > > > Hi Jirka, > > > > Have you got a chance to try the code? > > Are you OK with the patch? > > > > Thanks, > > Kan > > > > > > > > Em Fri, Jun 0

RE: [PATCH V2 0/2] measure SMI cost (user)

2017-06-20 Thread Liang, Kan
Hi Arnaldo and Jirka, Ping. Any comments for the patch? Thanks, Kan > Subject: RE: [PATCH V2 0/2] measure SMI cost (user) > > Hi Jirka, > > Have you got a chance to try the code? > Are you OK with the patch? > > Thanks, > Kan > > > > > Em Fri, Ju

RE: [PATCH V2 0/2] measure SMI cost (user)

2017-06-20 Thread Liang, Kan
Hi Arnaldo and Jirka, Ping. Any comments for the patch? Thanks, Kan > Subject: RE: [PATCH V2 0/2] measure SMI cost (user) > > Hi Jirka, > > Have you got a chance to try the code? > Are you OK with the patch? > > Thanks, > Kan > > > > > Em Fri, Ju

RE: [PATCH V2 0/2] measure SMI cost (user)

2017-06-14 Thread Liang, Kan
Hi Jirka, Have you got a chance to try the code? Are you OK with the patch? Thanks, Kan > > Em Fri, Jun 02, 2017 at 03:45:11PM +, Liang, Kan escreveu: > > > > On Mon, May 29, 2017 at 02:52:39PM +0200, Peter Zijlstra wrote: > > > > > On Mon, May 29, 2017 at 02:46:37PM +0200, Jiri Olsa

RE: [PATCH V2 0/2] measure SMI cost (user)

2017-06-14 Thread Liang, Kan
Hi Jirka, Have you got a chance to try the code? Are you OK with the patch? Thanks, Kan > > Em Fri, Jun 02, 2017 at 03:45:11PM +, Liang, Kan escreveu: > > > > On Mon, May 29, 2017 at 02:52:39PM +0200, Peter Zijlstra wrote: > > > > > On Mon, May 29, 2017 at 02:46:37PM +0200, Jiri Olsa

Re: [PATCH V2 0/2] measure SMI cost (user)

2017-06-02 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 02, 2017 at 03:45:11PM +, Liang, Kan escreveu: > > > On Mon, May 29, 2017 at 02:52:39PM +0200, Peter Zijlstra wrote: > > > > On Mon, May 29, 2017 at 02:46:37PM +0200, Jiri Olsa wrote: > > > > > for some reason I can't get single SMI count generated, is there a > > > > > setup/bench

Re: [PATCH V2 0/2] measure SMI cost (user)

2017-06-02 Thread Arnaldo Carvalho de Melo
Em Fri, Jun 02, 2017 at 03:45:11PM +, Liang, Kan escreveu: > > > On Mon, May 29, 2017 at 02:52:39PM +0200, Peter Zijlstra wrote: > > > > On Mon, May 29, 2017 at 02:46:37PM +0200, Jiri Olsa wrote: > > > > > for some reason I can't get single SMI count generated, is there a > > > > > setup/bench

RE: [PATCH V2 0/2] measure SMI cost (user)

2017-06-02 Thread Liang, Kan
> > > > On Mon, May 29, 2017 at 02:52:39PM +0200, Peter Zijlstra wrote: > > > On Mon, May 29, 2017 at 02:46:37PM +0200, Jiri Olsa wrote: > > > > > > > for some reason I can't get single SMI count generated, is there a > > > > setup/bench that would provoke that? > > > > > > Not having SMIs is a

RE: [PATCH V2 0/2] measure SMI cost (user)

2017-06-02 Thread Liang, Kan
> > > > On Mon, May 29, 2017 at 02:52:39PM +0200, Peter Zijlstra wrote: > > > On Mon, May 29, 2017 at 02:46:37PM +0200, Jiri Olsa wrote: > > > > > > > for some reason I can't get single SMI count generated, is there a > > > > setup/bench that would provoke that? > > > > > > Not having SMIs is a

RE: [PATCH V2 0/2] measure SMI cost (user)

2017-05-29 Thread Liang, Kan
> > On Mon, May 29, 2017 at 02:52:39PM +0200, Peter Zijlstra wrote: > > On Mon, May 29, 2017 at 02:46:37PM +0200, Jiri Olsa wrote: > > > > > for some reason I can't get single SMI count generated, is there a > > > setup/bench that would provoke that? > > > > Not having SMIs is a good thing ;-) >

RE: [PATCH V2 0/2] measure SMI cost (user)

2017-05-29 Thread Liang, Kan
> > On Mon, May 29, 2017 at 02:52:39PM +0200, Peter Zijlstra wrote: > > On Mon, May 29, 2017 at 02:46:37PM +0200, Jiri Olsa wrote: > > > > > for some reason I can't get single SMI count generated, is there a > > > setup/bench that would provoke that? > > > > Not having SMIs is a good thing ;-) >

Re: [PATCH V2 0/2] measure SMI cost (user)

2017-05-29 Thread Jiri Olsa
On Mon, May 29, 2017 at 02:52:39PM +0200, Peter Zijlstra wrote: > On Mon, May 29, 2017 at 02:46:37PM +0200, Jiri Olsa wrote: > > > for some reason I can't get single SMI count generated, > > is there a setup/bench that would provoke that? > > Not having SMIs is a good thing ;-) > > Not sure we

Re: [PATCH V2 0/2] measure SMI cost (user)

2017-05-29 Thread Jiri Olsa
On Mon, May 29, 2017 at 02:52:39PM +0200, Peter Zijlstra wrote: > On Mon, May 29, 2017 at 02:46:37PM +0200, Jiri Olsa wrote: > > > for some reason I can't get single SMI count generated, > > is there a setup/bench that would provoke that? > > Not having SMIs is a good thing ;-) > > Not sure we

Re: [PATCH V2 0/2] measure SMI cost (user)

2017-05-29 Thread Peter Zijlstra
On Mon, May 29, 2017 at 02:46:37PM +0200, Jiri Olsa wrote: > for some reason I can't get single SMI count generated, > is there a setup/bench that would provoke that? Not having SMIs is a good thing ;-) Not sure we can tickle them in a reliable way.

Re: [PATCH V2 0/2] measure SMI cost (user)

2017-05-29 Thread Peter Zijlstra
On Mon, May 29, 2017 at 02:46:37PM +0200, Jiri Olsa wrote: > for some reason I can't get single SMI count generated, > is there a setup/bench that would provoke that? Not having SMIs is a good thing ;-) Not sure we can tickle them in a reliable way.

Re: [PATCH V2 0/2] measure SMI cost (user)

2017-05-29 Thread Jiri Olsa
On Fri, May 26, 2017 at 12:05:36PM -0700, kan.li...@intel.com wrote: > From: Kan Liang > > Currently, there is no way to measure the time cost in System management > mode (SMM) by perf. > > Intel perfmon supports FREEZE_WHILE_SMM bit in IA32_DEBUGCTL. Once it sets, > the

Re: [PATCH V2 0/2] measure SMI cost (user)

2017-05-29 Thread Jiri Olsa
On Fri, May 26, 2017 at 12:05:36PM -0700, kan.li...@intel.com wrote: > From: Kan Liang > > Currently, there is no way to measure the time cost in System management > mode (SMM) by perf. > > Intel perfmon supports FREEZE_WHILE_SMM bit in IA32_DEBUGCTL. Once it sets, > the PMU core counters will