/linux/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_pmu.c | 392 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 D | perf_event.c | 219 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 D | i915_pmu.c | 918 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 D | i915_pmu.h | 146 void *pmu_attr; member
|
/linux/arch/x86/events/ |
A D | core.c | 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() 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 D | perf_event.c | 160 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 D | arm_smmuv3_pmu.c | 507 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 D | qcom_l3_pmu.c | 643 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 D | fsl_imx8_ddr_perf.c | 219 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 D | qcom_l2_pmu.c | 676 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 D | xgene_pmu.c | 281 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 D | perf_event.c | 488 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 D | core-book3s.c | 2114 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 D | pt.c | 140 struct perf_pmu_events_attr *pmu_attr = in pt_timing_attr_show() local 143 switch (pmu_attr->id) { in pt_timing_attr_show()
|
A D | core.c | 5357 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 D | core.c | 13394 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()
|