|
@@ -808,20 +808,6 @@ static inline int amd_pmu_init(void)
|
|
|
|
|
|
#ifdef CONFIG_CPU_SUP_INTEL
|
|
|
|
|
|
-static inline bool intel_pmu_needs_lbr_smpl(struct perf_event *event)
|
|
|
-{
|
|
|
- /* user explicitly requested branch sampling */
|
|
|
- if (has_branch_stack(event))
|
|
|
- return true;
|
|
|
-
|
|
|
- /* implicit branch sampling to correct PEBS skid */
|
|
|
- if (x86_pmu.intel_cap.pebs_trap && event->attr.precise_ip > 1 &&
|
|
|
- x86_pmu.intel_cap.pebs_format < 2)
|
|
|
- return true;
|
|
|
-
|
|
|
- return false;
|
|
|
-}
|
|
|
-
|
|
|
static inline bool intel_pmu_has_bts(struct perf_event *event)
|
|
|
{
|
|
|
if (event->attr.config == PERF_COUNT_HW_BRANCH_INSTRUCTIONS &&
|