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

From: Peter Zijlstra
Date: Wed Jul 02 2014 - 06:57:52 EST


On Mon, Jun 30, 2014 at 04:50:47PM +0800, Yan, Zheng wrote:
> 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.

How so? I grep'ed for a minute but could not find what you're referring
to.

Attachment: pgpAgOHFxWH0i.pgp
Description: PGP signature