Lines Matching refs:pmu_attr
1830 struct perf_pmu_events_attr *pmu_attr = in events_sysfs_show() local
1834 if (pmu_attr->id < x86_pmu.max_events) in events_sysfs_show()
1835 config = x86_pmu.event_map(pmu_attr->id); in events_sysfs_show()
1838 if (pmu_attr->event_str) in events_sysfs_show()
1839 return sprintf(page, "%s\n", pmu_attr->event_str); in events_sysfs_show()
1848 struct perf_pmu_events_ht_attr *pmu_attr = in events_ht_sysfs_show() local
1864 pmu_attr->event_str_ht : in events_ht_sysfs_show()
1865 pmu_attr->event_str_noht); in events_ht_sysfs_show()
1872 struct perf_pmu_events_hybrid_attr *pmu_attr = in events_hybrid_sysfs_show() local
1878 if (hweight64(pmu_attr->pmu_type) == 1) in events_hybrid_sysfs_show()
1879 return sprintf(page, "%s", pmu_attr->event_str); in events_hybrid_sysfs_show()
1892 str = pmu_attr->event_str; in events_hybrid_sysfs_show()
1894 if (!(x86_pmu.hybrid_pmu[i].cpu_type & pmu_attr->pmu_type)) in events_hybrid_sysfs_show()
1945 struct perf_pmu_events_attr *pmu_attr; in is_visible() local
1950 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr.attr); in is_visible()
1952 return pmu_attr->event_str || x86_pmu.event_map(idx) ? attr->mode : 0; in is_visible()