Re: [PATCH 2/5] perf/x86: add PERF_SAMPLE_SKID_IP support for X86 PEBS

2017-06-15 Thread Stephane Eranian
Hi, On Thu, Jun 15, 2017 at 9:39 AM, Stephane Eranian wrote: > On Thu, Jun 15, 2017 at 8:40 AM, Liang, Kan wrote: >> >> >>> This patch adds support for SKID_IP to Intel x86 processors in PEBS mode. In >>> that case, the off-by-1 IP from PEBS is returned

Re: [PATCH 2/5] perf/x86: add PERF_SAMPLE_SKID_IP support for X86 PEBS

2017-06-15 Thread Stephane Eranian
Hi, On Thu, Jun 15, 2017 at 9:39 AM, Stephane Eranian wrote: > On Thu, Jun 15, 2017 at 8:40 AM, Liang, Kan wrote: >> >> >>> This patch adds support for SKID_IP to Intel x86 processors in PEBS mode. In >>> that case, the off-by-1 IP from PEBS is returned in the SKID_IP field. >> >> It looks we

RE: [PATCH 2/5] perf/x86: add PERF_SAMPLE_SKID_IP support for X86 PEBS

2017-06-15 Thread Liang, Kan
> On Thu, Jun 15, 2017 at 8:40 AM, Liang, Kan wrote: > > > > > >> This patch adds support for SKID_IP to Intel x86 processors in PEBS > >> mode. In that case, the off-by-1 IP from PEBS is returned in the SKID_IP > field. > > > > It looks we can only get different skid_ip and

RE: [PATCH 2/5] perf/x86: add PERF_SAMPLE_SKID_IP support for X86 PEBS

2017-06-15 Thread Liang, Kan
> On Thu, Jun 15, 2017 at 8:40 AM, Liang, Kan wrote: > > > > > >> This patch adds support for SKID_IP to Intel x86 processors in PEBS > >> mode. In that case, the off-by-1 IP from PEBS is returned in the SKID_IP > field. > > > > It looks we can only get different skid_ip and ip with :pp event >

Re: [PATCH 2/5] perf/x86: add PERF_SAMPLE_SKID_IP support for X86 PEBS

2017-06-15 Thread Stephane Eranian
On Thu, Jun 15, 2017 at 8:40 AM, Liang, Kan wrote: > > >> This patch adds support for SKID_IP to Intel x86 processors in PEBS mode. In >> that case, the off-by-1 IP from PEBS is returned in the SKID_IP field. > > It looks we can only get different skid_ip and ip with :pp

Re: [PATCH 2/5] perf/x86: add PERF_SAMPLE_SKID_IP support for X86 PEBS

2017-06-15 Thread Stephane Eranian
On Thu, Jun 15, 2017 at 8:40 AM, Liang, Kan wrote: > > >> This patch adds support for SKID_IP to Intel x86 processors in PEBS mode. In >> that case, the off-by-1 IP from PEBS is returned in the SKID_IP field. > > It looks we can only get different skid_ip and ip with :pp event > (attr.precise =

RE: [PATCH 2/5] perf/x86: add PERF_SAMPLE_SKID_IP support for X86 PEBS

2017-06-15 Thread Liang, Kan
> This patch adds support for SKID_IP to Intel x86 processors in PEBS mode. In > that case, the off-by-1 IP from PEBS is returned in the SKID_IP field. It looks we can only get different skid_ip and ip with :pp event (attr.precise = 2). With the :p event (attr.precise = 1), the skid_ip and ip

RE: [PATCH 2/5] perf/x86: add PERF_SAMPLE_SKID_IP support for X86 PEBS

2017-06-15 Thread Liang, Kan
> This patch adds support for SKID_IP to Intel x86 processors in PEBS mode. In > that case, the off-by-1 IP from PEBS is returned in the SKID_IP field. It looks we can only get different skid_ip and ip with :pp event (attr.precise = 2). With the :p event (attr.precise = 1), the skid_ip and ip