Lines Matching refs:pt_pmu
32 static struct pt_pmu pt_pmu;
85 return intel_pt_validate_cap(pt_pmu.caps, cap);
147 return sprintf(page, "%lu\n", pt_pmu.max_nonturbo_ratio);
150 pt_pmu.tsc_art_num,
151 pt_pmu.tsc_art_den);
191 pt_pmu.max_nonturbo_ratio = (reg & 0xff00) >> 8;
203 pt_pmu.tsc_art_num = ebx;
204 pt_pmu.tsc_art_den = eax;
214 pt_pmu.branch_en_always_on = true;
228 pt_pmu.vmx = true;
233 &pt_pmu.caps[CPUID_EAX + i*PT_CPUID_REGS_NUM],
234 &pt_pmu.caps[CPUID_EBX + i*PT_CPUID_REGS_NUM],
235 &pt_pmu.caps[CPUID_ECX + i*PT_CPUID_REGS_NUM],
236 &pt_pmu.caps[CPUID_EDX + i*PT_CPUID_REGS_NUM]);
381 if (pt_pmu.branch_en_always_on &&
1517 if (pt_pmu.vmx)
1707 if (event->attr.type != pt_pmu.pmu.type)
1736 return event->pmu == &pt_pmu.pmu;
1775 pt_pmu.pmu.capabilities = PERF_PMU_CAP_AUX_NO_SG;
1777 pt_pmu.pmu.capabilities |= PERF_PMU_CAP_EXCLUSIVE | PERF_PMU_CAP_ITRACE;
1778 pt_pmu.pmu.attr_groups = pt_attr_groups;
1779 pt_pmu.pmu.task_ctx_nr = perf_sw_context;
1780 pt_pmu.pmu.event_init = pt_event_init;
1781 pt_pmu.pmu.add = pt_event_add;
1782 pt_pmu.pmu.del = pt_event_del;
1783 pt_pmu.pmu.start = pt_event_start;
1784 pt_pmu.pmu.stop = pt_event_stop;
1785 pt_pmu.pmu.snapshot_aux = pt_event_snapshot_aux;
1786 pt_pmu.pmu.read = pt_event_read;
1787 pt_pmu.pmu.setup_aux = pt_buffer_setup_aux;
1788 pt_pmu.pmu.free_aux = pt_buffer_free_aux;
1789 pt_pmu.pmu.addr_filters_sync = pt_event_addr_filters_sync;
1790 pt_pmu.pmu.addr_filters_validate = pt_event_addr_filters_validate;
1791 pt_pmu.pmu.nr_addr_filters =
1794 ret = perf_pmu_register(&pt_pmu.pmu, "intel_pt", -1);