Re: [PATCH] perf x86: Change SandyBridge and IvyBrige instructions event to be precise

2013-02-20 Thread Andi Kleen
> I don't think it buys you much. People read too much into what > PEBS gives you. I can show you examples where PEBS > is worse than no PEBS. Nothing is perfect in sampling, but the precise instructions event is definitely better in a range of situations. It avoids a lot of shadow effects. I thi

Re: [PATCH] perf x86: Change SandyBridge and IvyBrige instructions event to be precise

2013-02-20 Thread Jiri Olsa
On Wed, Feb 20, 2013 at 12:55:59PM -0800, Andi Kleen wrote: > Jiri Olsa writes: > > > Changing the default 'instructions' HW event for SandyBridge and > > IvyBrige to use the available precise 'instructions' event. > > > > The precise event is defined in Intel SDM as: > > > > INST_RETIRED.ALL - P

Re: [PATCH] perf x86: Change SandyBridge and IvyBrige instructions event to be precise

2013-02-20 Thread Jiri Olsa
On Wed, Feb 20, 2013 at 10:01:20PM +0100, Stephane Eranian wrote: > On Wed, Feb 20, 2013 at 9:55 PM, Andi Kleen wrote: > > Jiri Olsa writes: > > > >> Changing the default 'instructions' HW event for SandyBridge and > >> IvyBrige to use the available precise 'instructions' event. > >> > >> The pre

Re: [PATCH] perf x86: Change SandyBridge and IvyBrige instructions event to be precise

2013-02-20 Thread Stephane Eranian
On Wed, Feb 20, 2013 at 9:55 PM, Andi Kleen wrote: > Jiri Olsa writes: > >> Changing the default 'instructions' HW event for SandyBridge and >> IvyBrige to use the available precise 'instructions' event. >> >> The precise event is defined in Intel SDM as: >> >> INST_RETIRED.ALL - Precise instruct

Re: [PATCH] perf x86: Change SandyBridge and IvyBrige instructions event to be precise

2013-02-20 Thread Andi Kleen
Jiri Olsa writes: > Changing the default 'instructions' HW event for SandyBridge and > IvyBrige to use the available precise 'instructions' event. > > The precise event is defined in Intel SDM as: > > INST_RETIRED.ALL - Precise instruction retired event with HW to > reduce effect of PEBS shadow i

[PATCH] perf x86: Change SandyBridge and IvyBrige instructions event to be precise

2013-02-20 Thread Jiri Olsa
Changing the default 'instructions' HW event for SandyBridge and IvyBrige to use the available precise 'instructions' event. The precise event is defined in Intel SDM as: INST_RETIRED.ALL - Precise instruction retired event with HW to reduce effect of PEBS shadow in IP distribution for both Sand