Lines Matching refs:pmu_attr
1831 struct perf_pmu_events_attr *pmu_attr = in events_sysfs_show() local
1835 if (pmu_attr->id < x86_pmu.max_events) in events_sysfs_show()
1836 config = x86_pmu.event_map(pmu_attr->id); in events_sysfs_show()
1839 if (pmu_attr->event_str) in events_sysfs_show()
1840 return sprintf(page, "%s", pmu_attr->event_str); in events_sysfs_show()
1849 struct perf_pmu_events_ht_attr *pmu_attr = in events_ht_sysfs_show() local
1865 pmu_attr->event_str_ht : in events_ht_sysfs_show()
1866 pmu_attr->event_str_noht); in events_ht_sysfs_show()
1873 struct perf_pmu_events_hybrid_attr *pmu_attr = in events_hybrid_sysfs_show() local
1879 if (hweight64(pmu_attr->pmu_type) == 1) in events_hybrid_sysfs_show()
1880 return sprintf(page, "%s", pmu_attr->event_str); in events_hybrid_sysfs_show()
1893 str = pmu_attr->event_str; in events_hybrid_sysfs_show()
1895 if (!(x86_pmu.hybrid_pmu[i].cpu_type & pmu_attr->pmu_type)) in events_hybrid_sysfs_show()
1946 struct perf_pmu_events_attr *pmu_attr; in is_visible() local
1951 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr.attr); in is_visible()
1953 return pmu_attr->event_str || x86_pmu.event_map(idx) ? attr->mode : 0; in is_visible()