Home
last modified time | relevance | path

Searched refs:pmu_attr (Results 1 – 16 of 16) sorted by relevance

/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_pmu.c392 struct amdgpu_pmu_event_attribute *pmu_attr, in amdgpu_pmu_create_event_attrs_by_type() argument
400 pmu_attr += s_offset; in amdgpu_pmu_create_event_attrs_by_type()
403 attr_group->attrs[i] = &pmu_attr->attr.attr; in amdgpu_pmu_create_event_attrs_by_type()
404 sysfs_attr_init(&pmu_attr->attr.attr); in amdgpu_pmu_create_event_attrs_by_type()
405 pmu_attr->attr.attr.name = events[i].name; in amdgpu_pmu_create_event_attrs_by_type()
406 pmu_attr->attr.attr.mode = 0444; in amdgpu_pmu_create_event_attrs_by_type()
407 pmu_attr->attr.show = amdgpu_pmu_event_show; in amdgpu_pmu_create_event_attrs_by_type()
408 pmu_attr->event_str = events[i].config; in amdgpu_pmu_create_event_attrs_by_type()
409 pmu_attr->type = type; in amdgpu_pmu_create_event_attrs_by_type()
410 pmu_attr++; in amdgpu_pmu_create_event_attrs_by_type()
[all …]
/linux/arch/s390/kernel/
A Dperf_event.c219 struct perf_pmu_events_attr *pmu_attr; in cpumf_events_sysfs_show() local
221 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); in cpumf_events_sysfs_show()
222 return sprintf(page, "event=0x%04llx\n", pmu_attr->id); in cpumf_events_sysfs_show()
/linux/drivers/gpu/drm/i915/
A Di915_pmu.c918 struct perf_pmu_events_attr *pmu_attr = NULL, *pmu_iter; in create_event_attributes() local
943 pmu_attr = kcalloc(count, sizeof(*pmu_attr), GFP_KERNEL); in create_event_attributes()
944 if (!pmu_attr) in create_event_attributes()
953 pmu_iter = pmu_attr; in create_event_attributes()
1012 pmu->pmu_attr = pmu_attr; in create_event_attributes()
1023 kfree(pmu_attr); in create_event_attributes()
1037 kfree(pmu->pmu_attr); in free_event_attributes()
1041 pmu->pmu_attr = NULL; in free_event_attributes()
A Di915_pmu.h146 void *pmu_attr; member
/linux/arch/x86/events/
A Dcore.c1831 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()
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()
1893 str = pmu_attr->event_str; in events_hybrid_sysfs_show()
[all …]
/linux/arch/arm64/kernel/
A Dperf_event.c160 struct perf_pmu_events_attr *pmu_attr; in armv8pmu_events_sysfs_show() local
162 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); in armv8pmu_events_sysfs_show()
164 return sprintf(page, "event=0x%04llx\n", pmu_attr->id); in armv8pmu_events_sysfs_show()
261 struct perf_pmu_events_attr *pmu_attr; in armv8pmu_event_attr_is_visible() local
263 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr.attr); in armv8pmu_event_attr_is_visible()
265 if (pmu_attr->id < ARMV8_PMUV3_MAX_COMMON_EVENTS && in armv8pmu_event_attr_is_visible()
266 test_bit(pmu_attr->id, cpu_pmu->pmceid_bitmap)) in armv8pmu_event_attr_is_visible()
269 if (pmu_attr->id >= ARMV8_PMUV3_EXT_COMMON_EVENT_BASE) { in armv8pmu_event_attr_is_visible()
270 u64 id = pmu_attr->id - ARMV8_PMUV3_EXT_COMMON_EVENT_BASE; in armv8pmu_event_attr_is_visible()
/linux/drivers/perf/
A Darm_smmuv3_pmu.c507 struct perf_pmu_events_attr *pmu_attr; in smmu_pmu_event_show() local
509 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); in smmu_pmu_event_show()
511 return sysfs_emit(page, "event=0x%02llx\n", pmu_attr->id); in smmu_pmu_event_show()
534 struct perf_pmu_events_attr *pmu_attr; in smmu_pmu_event_is_visible() local
536 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr.attr); in smmu_pmu_event_is_visible()
538 if (test_bit(pmu_attr->id, smmu_pmu->supported_events)) in smmu_pmu_event_is_visible()
A Dqcom_l3_pmu.c643 struct perf_pmu_events_attr *pmu_attr; in l3cache_pmu_event_show() local
645 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); in l3cache_pmu_event_show()
646 return sysfs_emit(page, "event=0x%02llx\n", pmu_attr->id); in l3cache_pmu_event_show()
A Dfsl_imx8_ddr_perf.c219 struct perf_pmu_events_attr *pmu_attr; in ddr_pmu_event_show() local
221 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); in ddr_pmu_event_show()
222 return sysfs_emit(page, "event=0x%02llx\n", pmu_attr->id); in ddr_pmu_event_show()
A Dqcom_l2_pmu.c676 struct perf_pmu_events_attr *pmu_attr; in l2cache_pmu_event_show() local
678 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); in l2cache_pmu_event_show()
679 return sysfs_emit(page, "event=0x%02llx\n", pmu_attr->id); in l2cache_pmu_event_show()
A Dxgene_pmu.c281 struct perf_pmu_events_attr *pmu_attr = in xgene_pmu_event_show() local
284 return sysfs_emit(buf, "config=0x%llx\n", pmu_attr->id); in xgene_pmu_event_show()
/linux/arch/arc/kernel/
A Dperf_event.c488 struct perf_pmu_events_attr *pmu_attr; in arc_pmu_events_sysfs_show() local
490 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); in arc_pmu_events_sysfs_show()
491 return sprintf(page, "event=0x%04llx\n", pmu_attr->id); in arc_pmu_events_sysfs_show()
/linux/arch/powerpc/perf/
A Dcore-book3s.c2114 struct perf_pmu_events_attr *pmu_attr; in power_events_sysfs_show() local
2116 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); in power_events_sysfs_show()
2118 return sprintf(page, "event=0x%02llx\n", pmu_attr->id); in power_events_sysfs_show()
/linux/arch/x86/events/intel/
A Dpt.c140 struct perf_pmu_events_attr *pmu_attr = in pt_timing_attr_show() local
143 switch (pmu_attr->id) { in pt_timing_attr_show()
A Dcore.c5357 struct perf_pmu_events_hybrid_attr *pmu_attr = in is_attr_for_this_pmu() local
5360 return pmu->cpu_type & pmu_attr->pmu_type; in is_attr_for_this_pmu()
5393 struct perf_pmu_format_hybrid_attr *pmu_attr = in hybrid_format_is_visible() local
5397 return (cpu >= 0) && (pmu->cpu_type & pmu_attr->pmu_type) ? attr->mode : 0; in hybrid_format_is_visible()
/linux/kernel/events/
A Dcore.c13394 struct perf_pmu_events_attr *pmu_attr = in perf_event_sysfs_show() local
13397 if (pmu_attr->event_str) in perf_event_sysfs_show()
13398 return sprintf(page, "%s\n", pmu_attr->event_str); in perf_event_sysfs_show()

Completed in 87 milliseconds