Re: [PATCH V5 10/16] perf, core: simplify need branch stack check

2014-09-24 Thread Peter Zijlstra
On Wed, Sep 10, 2014 at 10:09:07AM -0400, kan.li...@intel.com wrote: > From: Kan Liang > > event->attr.branch_sample_type is non-zero no matter branch stack > is enabled explicitly or is enabled implicitly. we can use it to > replace intel_pmu_needs_lbr_smpl(). This avoids duplicating code > that

[PATCH V5 10/16] perf, core: simplify need branch stack check

2014-09-10 Thread kan . liang
From: Kan Liang event->attr.branch_sample_type is non-zero no matter branch stack is enabled explicitly or is enabled implicitly. we can use it to replace intel_pmu_needs_lbr_smpl(). This avoids duplicating code that implicitly enables the LBR. Signed-off-by: Yan, Zheng --- arch/x86/kernel/cpu

[PATCH V5 10/16] perf, core: simplify need branch stack check

2014-09-09 Thread kan . liang
From: Kan Liang event->attr.branch_sample_type is non-zero no matter branch stack is enabled explicitly or is enabled implicitly. we can use it to replace intel_pmu_needs_lbr_smpl(). This avoids duplicating code that implicitly enables the LBR. Signed-off-by: Yan, Zheng --- arch/x86/kernel/cpu

[PATCH v5 10/16] perf, core: simplify need branch stack check

2014-07-06 Thread Yan, Zheng
event->attr.branch_sample_type is non-zero no matter branch stack is enabled explicitly or is enabled implicitly. we can use it to replace intel_pmu_needs_lbr_smpl(). This avoids duplicating code that implicitly enables the LBR. Signed-off-by: Yan, Zheng --- arch/x86/kernel/cpu/perf_event_intel.