Re: [PATCH 2/4] perf/x86: add support for PERF_SAMPLE_BRANCH_CALL

2015-10-13 Thread Stephane Eranian
On Tue, Oct 13, 2015 at 6:40 AM, Ingo Molnar wrote: > > > * Stephane Eranian wrote: > > > This patch enables the suport for the PERF_SAMPLE_BRANCH_CALL > > for Intel x86 processors. When the processor support LBR filtering > > this the selection is done in hardware. Otherwise, the filter is > > a

Re: [PATCH 2/4] perf/x86: add support for PERF_SAMPLE_BRANCH_CALL

2015-10-13 Thread Andi Kleen
> I'm wondering how frequent zero-length calls are. If they still occur in > typical > user-space, would it make sense to also have a separate branch sampling type > for > zero length calls? Apparently not too old icc compiled 32bit PIC binaries still contain it. For gcc it was fixed for much

Re: [PATCH 2/4] perf/x86: add support for PERF_SAMPLE_BRANCH_CALL

2015-10-13 Thread Ingo Molnar
* Stephane Eranian wrote: > This patch enables the suport for the PERF_SAMPLE_BRANCH_CALL > for Intel x86 processors. When the processor support LBR filtering > this the selection is done in hardware. Otherwise, the filter is > applied by software. Note that we chose to include zero length calls

[PATCH 2/4] perf/x86: add support for PERF_SAMPLE_BRANCH_CALL

2015-10-13 Thread Stephane Eranian
This patch enables the suport for the PERF_SAMPLE_BRANCH_CALL for Intel x86 processors. When the processor support LBR filtering this the selection is done in hardware. Otherwise, the filter is applied by software. Note that we chose to include zero length calls because they also represent calls.