Re: [PATCH V4 04/16] perf, x86: Basic Haswell LBR call stack support

2014-07-02 Thread Peter Zijlstra
On Mon, Jun 30, 2014 at 04:50:41PM +0800, Yan, Zheng wrote: > @@ -438,8 +451,11 @@ static int intel_pmu_setup_hw_lbr_filter(struct > perf_event *event) > reg = &event->hw.branch_reg; > reg->idx = EXTRA_REG_LBR; > > - /* LBR_SELECT operates in suppress mode so invert mask */ > -

[PATCH V4 04/16] perf, x86: Basic Haswell LBR call stack support

2014-06-30 Thread Yan, Zheng
Haswell has a new feature that utilizes the existing LBR facility to record call chains. To enable this feature, bits (JCC, NEAR_IND_JMP, NEAR_REL_JMP, FAR_BRANCH, EN_CALLSTACK) in LBR_SELECT must be set to 1, bits (NEAR_REL_CALL, NEAR-IND_CALL, NEAR_RET) must be cleared. Due to a hardware bug of H

[PATCH v4 04/16] perf, x86: Basic Haswell LBR call stack support

2014-03-16 Thread Yan, Zheng
Haswell has a new feature that utilizes the existing LBR facility to record call chains. To enable this feature, bits (JCC, NEAR_IND_JMP, NEAR_REL_JMP, FAR_BRANCH, EN_CALLSTACK) in LBR_SELECT must be set to 1, bits (NEAR_REL_CALL, NEAR-IND_CALL, NEAR_RET) must be cleared. Due to a hardware bug of H