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