Lines Matching refs:pt_pmu
32 static struct pt_pmu pt_pmu; variable
87 return intel_pt_validate_cap(pt_pmu.caps, cap); in intel_pt_validate_hw_cap()
153 return sprintf(page, "%lu\n", pt_pmu.max_nonturbo_ratio); in pt_timing_attr_show()
156 pt_pmu.tsc_art_num, in pt_timing_attr_show()
157 pt_pmu.tsc_art_den); in pt_timing_attr_show()
197 pt_pmu.max_nonturbo_ratio = (reg & 0xff00) >> 8; in pt_pmu_hw_init()
209 pt_pmu.tsc_art_num = ebx; in pt_pmu_hw_init()
210 pt_pmu.tsc_art_den = eax; in pt_pmu_hw_init()
220 pt_pmu.branch_en_always_on = true; in pt_pmu_hw_init()
234 pt_pmu.vmx = true; in pt_pmu_hw_init()
239 &pt_pmu.caps[CPUID_EAX + i*PT_CPUID_REGS_NUM], in pt_pmu_hw_init()
240 &pt_pmu.caps[CPUID_EBX + i*PT_CPUID_REGS_NUM], in pt_pmu_hw_init()
241 &pt_pmu.caps[CPUID_ECX + i*PT_CPUID_REGS_NUM], in pt_pmu_hw_init()
242 &pt_pmu.caps[CPUID_EDX + i*PT_CPUID_REGS_NUM]); in pt_pmu_hw_init()
397 if (pt_pmu.branch_en_always_on && in pt_event_valid()
1537 if (pt_pmu.vmx) in intel_pt_handle_vmx()
1726 if (event->attr.type != pt_pmu.pmu.type) in pt_event_init()
1755 return event->pmu == &pt_pmu.pmu; in is_intel_pt_event()
1794 pt_pmu.pmu.capabilities = PERF_PMU_CAP_AUX_NO_SG; in pt_init()
1796 pt_pmu.pmu.capabilities |= PERF_PMU_CAP_EXCLUSIVE | PERF_PMU_CAP_ITRACE; in pt_init()
1797 pt_pmu.pmu.attr_groups = pt_attr_groups; in pt_init()
1798 pt_pmu.pmu.task_ctx_nr = perf_sw_context; in pt_init()
1799 pt_pmu.pmu.event_init = pt_event_init; in pt_init()
1800 pt_pmu.pmu.add = pt_event_add; in pt_init()
1801 pt_pmu.pmu.del = pt_event_del; in pt_init()
1802 pt_pmu.pmu.start = pt_event_start; in pt_init()
1803 pt_pmu.pmu.stop = pt_event_stop; in pt_init()
1804 pt_pmu.pmu.snapshot_aux = pt_event_snapshot_aux; in pt_init()
1805 pt_pmu.pmu.read = pt_event_read; in pt_init()
1806 pt_pmu.pmu.setup_aux = pt_buffer_setup_aux; in pt_init()
1807 pt_pmu.pmu.free_aux = pt_buffer_free_aux; in pt_init()
1808 pt_pmu.pmu.addr_filters_sync = pt_event_addr_filters_sync; in pt_init()
1809 pt_pmu.pmu.addr_filters_validate = pt_event_addr_filters_validate; in pt_init()
1810 pt_pmu.pmu.nr_addr_filters = in pt_init()
1813 ret = perf_pmu_register(&pt_pmu.pmu, "intel_pt", -1); in pt_init()