Lines Matching refs:cpuc
478 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_disable_bts() local
481 if (!cpuc->ds) in intel_pmu_disable_bts()
495 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_drain_bts_buffer() local
496 struct debug_store *ds = cpuc->ds; in intel_pmu_drain_bts_buffer()
502 struct perf_event *event = cpuc->events[INTEL_PMC_IDX_FIXED_BTS]; in intel_pmu_drain_bts_buffer()
689 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_pebs_enable() local
694 cpuc->pebs_enabled |= 1ULL << hwc->idx; in intel_pmu_pebs_enable()
697 cpuc->pebs_enabled |= 1ULL << (hwc->idx + 32); in intel_pmu_pebs_enable()
699 cpuc->pebs_enabled |= 1ULL << 63; in intel_pmu_pebs_enable()
704 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_pebs_disable() local
707 cpuc->pebs_enabled &= ~(1ULL << hwc->idx); in intel_pmu_pebs_disable()
710 cpuc->pebs_enabled &= ~(1ULL << (hwc->idx + 32)); in intel_pmu_pebs_disable()
712 cpuc->pebs_enabled &= ~(1ULL << 63); in intel_pmu_pebs_disable()
714 if (cpuc->enabled) in intel_pmu_pebs_disable()
715 wrmsrl(MSR_IA32_PEBS_ENABLE, cpuc->pebs_enabled); in intel_pmu_pebs_disable()
722 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_pebs_enable_all() local
724 if (cpuc->pebs_enabled) in intel_pmu_pebs_enable_all()
725 wrmsrl(MSR_IA32_PEBS_ENABLE, cpuc->pebs_enabled); in intel_pmu_pebs_enable_all()
730 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_pebs_disable_all() local
732 if (cpuc->pebs_enabled) in intel_pmu_pebs_disable_all()
738 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_pebs_fixup_ip() local
739 unsigned long from = cpuc->lbr_entries[0].from; in intel_pmu_pebs_fixup_ip()
740 unsigned long old_to, to = cpuc->lbr_entries[0].to; in intel_pmu_pebs_fixup_ip()
755 if (!cpuc->lbr_stack.nr || !from || !to) in intel_pmu_pebs_fixup_ip()
860 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in __intel_pmu_pebs_event() local
962 data.br_stack = &cpuc->lbr_stack; in __intel_pmu_pebs_event()
970 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_drain_pebs_core() local
971 struct debug_store *ds = cpuc->ds; in intel_pmu_drain_pebs_core()
972 struct perf_event *event = cpuc->events[0]; /* PMC0 only */ in intel_pmu_drain_pebs_core()
987 if (!test_bit(0, cpuc->active_mask)) in intel_pmu_drain_pebs_core()
1011 struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); in intel_pmu_drain_pebs_nhm() local
1012 struct debug_store *ds = cpuc->ds; in intel_pmu_drain_pebs_nhm()
1042 event = cpuc->events[bit]; in intel_pmu_drain_pebs_nhm()
1043 if (!test_bit(bit, cpuc->active_mask)) in intel_pmu_drain_pebs_nhm()