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 >

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 kan.li...@intel.com 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

[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 ---

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

2014-09-10 Thread kan . liang
From: Kan Liang kan.li...@intel.com 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

[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 ---

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

2014-09-09 Thread kan . liang
From: Kan Liang kan.li...@intel.com 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

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

2014-07-07 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 ---

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

2014-07-07 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 zheng.z@intel.com ---