• Home
  • Raw
  • Download

Lines Matching refs:cpuc

274 	struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events);  in intel_pmu_disable_bts()  local
277 if (!cpuc->ds) in intel_pmu_disable_bts()
291 struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events); in intel_pmu_drain_bts_buffer() local
292 struct debug_store *ds = cpuc->ds; in intel_pmu_drain_bts_buffer()
298 struct perf_event *event = cpuc->events[X86_PMC_IDX_FIXED_BTS]; in intel_pmu_drain_bts_buffer()
437 struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events); in intel_pmu_pebs_enable() local
442 cpuc->pebs_enabled |= 1ULL << hwc->idx; in intel_pmu_pebs_enable()
447 struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events); in intel_pmu_pebs_disable() local
450 cpuc->pebs_enabled &= ~(1ULL << hwc->idx); in intel_pmu_pebs_disable()
451 if (cpuc->enabled) in intel_pmu_pebs_disable()
452 wrmsrl(MSR_IA32_PEBS_ENABLE, cpuc->pebs_enabled); in intel_pmu_pebs_disable()
459 struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events); in intel_pmu_pebs_enable_all() local
461 if (cpuc->pebs_enabled) in intel_pmu_pebs_enable_all()
462 wrmsrl(MSR_IA32_PEBS_ENABLE, cpuc->pebs_enabled); in intel_pmu_pebs_enable_all()
467 struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events); in intel_pmu_pebs_disable_all() local
469 if (cpuc->pebs_enabled) in intel_pmu_pebs_disable_all()
475 struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events); in intel_pmu_pebs_fixup_ip() local
476 unsigned long from = cpuc->lbr_entries[0].from; in intel_pmu_pebs_fixup_ip()
477 unsigned long old_to, to = cpuc->lbr_entries[0].to; in intel_pmu_pebs_fixup_ip()
490 if (!cpuc->lbr_stack.nr || !from || !to) in intel_pmu_pebs_fixup_ip()
559 struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events); in __intel_pmu_pebs_event() local
591 data.br_stack = &cpuc->lbr_stack; in __intel_pmu_pebs_event()
599 struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events); in intel_pmu_drain_pebs_core() local
600 struct debug_store *ds = cpuc->ds; in intel_pmu_drain_pebs_core()
601 struct perf_event *event = cpuc->events[0]; /* PMC0 only */ in intel_pmu_drain_pebs_core()
616 if (!test_bit(0, cpuc->active_mask)) in intel_pmu_drain_pebs_core()
640 struct cpu_hw_events *cpuc = &__get_cpu_var(cpu_hw_events); in intel_pmu_drain_pebs_nhm() local
641 struct debug_store *ds = cpuc->ds; in intel_pmu_drain_pebs_nhm()
667 event = cpuc->events[bit]; in intel_pmu_drain_pebs_nhm()
668 if (!test_bit(bit, cpuc->active_mask)) in intel_pmu_drain_pebs_nhm()