]> Git Repo - linux.git/commit
perf: Simplify the branch stack check
authorYan, Zheng <[email protected]>
Wed, 5 Nov 2014 02:56:06 +0000 (21:56 -0500)
committerIngo Molnar <[email protected]>
Wed, 18 Feb 2015 16:16:11 +0000 (17:16 +0100)
commita46a23000198d929391aa9dac8de68734efa2703
tree667ff791575984b15e3e6c430668125141497758
parent76cb2c617f12a4dd53c0e899972813b805ad6cc2
perf: Simplify the branch stack check

Use event->attr.branch_sample_type to replace
intel_pmu_needs_lbr_smpl() for avoiding duplicated code that
implicitly enables the LBR.

Currently, branch stack can be enabled by user explicitly requesting
branch sampling or implicit branch sampling to correct PEBS skid.

For user explicitly requested branch sampling, the branch_sample_type
is explicitly set by user. For PEBS case, the branch_sample_type is also
implicitly set to PERF_SAMPLE_BRANCH_ANY in x86_pmu_hw_config.

Signed-off-by: Yan, Zheng <[email protected]>
Signed-off-by: Kan Liang <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/kernel/cpu/perf_event_intel.c
include/linux/perf_event.h
kernel/events/core.c
This page took 0.062135 seconds and 4 git commands to generate.