Lines Matching refs:pt_pmu

38 static struct pt_pmu pt_pmu;  variable
81 u32 c = pt_pmu.caps[cd->leaf * PT_CPUID_REGS_NUM + cd->reg]; in pt_cap_get()
145 return sprintf(page, "%lu\n", pt_pmu.max_nonturbo_ratio); in pt_timing_attr_show()
148 pt_pmu.tsc_art_num, in pt_timing_attr_show()
149 pt_pmu.tsc_art_den); in pt_timing_attr_show()
189 pt_pmu.max_nonturbo_ratio = (reg & 0xff00) >> 8; in pt_pmu_hw_init()
201 pt_pmu.tsc_art_num = ebx; in pt_pmu_hw_init()
202 pt_pmu.tsc_art_den = eax; in pt_pmu_hw_init()
212 pt_pmu.branch_en_always_on = true; in pt_pmu_hw_init()
226 pt_pmu.vmx = true; in pt_pmu_hw_init()
233 &pt_pmu.caps[CPUID_EAX + i*PT_CPUID_REGS_NUM], in pt_pmu_hw_init()
234 &pt_pmu.caps[CPUID_EBX + i*PT_CPUID_REGS_NUM], in pt_pmu_hw_init()
235 &pt_pmu.caps[CPUID_ECX + i*PT_CPUID_REGS_NUM], in pt_pmu_hw_init()
236 &pt_pmu.caps[CPUID_EDX + i*PT_CPUID_REGS_NUM]); in pt_pmu_hw_init()
381 if (pt_pmu.branch_en_always_on && in pt_event_valid()
1308 if (pt_pmu.vmx) in intel_pt_handle_vmx()
1453 if (event->attr.type != pt_pmu.pmu.type) in pt_event_init()
1516 pt_pmu.pmu.capabilities = in pt_init()
1519 pt_pmu.pmu.capabilities |= PERF_PMU_CAP_EXCLUSIVE | PERF_PMU_CAP_ITRACE; in pt_init()
1520 pt_pmu.pmu.attr_groups = pt_attr_groups; in pt_init()
1521 pt_pmu.pmu.task_ctx_nr = perf_sw_context; in pt_init()
1522 pt_pmu.pmu.event_init = pt_event_init; in pt_init()
1523 pt_pmu.pmu.add = pt_event_add; in pt_init()
1524 pt_pmu.pmu.del = pt_event_del; in pt_init()
1525 pt_pmu.pmu.start = pt_event_start; in pt_init()
1526 pt_pmu.pmu.stop = pt_event_stop; in pt_init()
1527 pt_pmu.pmu.read = pt_event_read; in pt_init()
1528 pt_pmu.pmu.setup_aux = pt_buffer_setup_aux; in pt_init()
1529 pt_pmu.pmu.free_aux = pt_buffer_free_aux; in pt_init()
1530 pt_pmu.pmu.addr_filters_sync = pt_event_addr_filters_sync; in pt_init()
1531 pt_pmu.pmu.addr_filters_validate = pt_event_addr_filters_validate; in pt_init()
1532 pt_pmu.pmu.nr_addr_filters = in pt_init()
1535 ret = perf_pmu_register(&pt_pmu.pmu, "intel_pt", -1); in pt_init()