perf/x86: Hybrid PMU support for event constraints
[linux-2.6-microblaze.git] / arch / x86 / events / core.c
index e8cb892..f92d234 100644 (file)
@@ -1518,6 +1518,7 @@ void perf_event_print_debug(void)
        struct cpu_hw_events *cpuc = &per_cpu(cpu_hw_events, cpu);
        int num_counters = hybrid(cpuc->pmu, num_counters);
        int num_counters_fixed = hybrid(cpuc->pmu, num_counters_fixed);
+       struct event_constraint *pebs_constraints = hybrid(cpuc->pmu, pebs_constraints);
        unsigned long flags;
        int idx;
 
@@ -1537,7 +1538,7 @@ void perf_event_print_debug(void)
                pr_info("CPU#%d: status:     %016llx\n", cpu, status);
                pr_info("CPU#%d: overflow:   %016llx\n", cpu, overflow);
                pr_info("CPU#%d: fixed:      %016llx\n", cpu, fixed);
-               if (x86_pmu.pebs_constraints) {
+               if (pebs_constraints) {
                        rdmsrl(MSR_IA32_PEBS_ENABLE, pebs);
                        pr_info("CPU#%d: pebs:       %016llx\n", cpu, pebs);
                }