/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ ! |
D | amdgpu_pmu.c | 410 struct amdgpu_pmu_event_attribute *pmu_attr, in amdgpu_pmu_create_event_attrs_by_type() argument 418 pmu_attr += s_offset; in amdgpu_pmu_create_event_attrs_by_type() 421 attr_group->attrs[i] = &pmu_attr->attr.attr; in amdgpu_pmu_create_event_attrs_by_type() 422 sysfs_attr_init(&pmu_attr->attr.attr); in amdgpu_pmu_create_event_attrs_by_type() 423 pmu_attr->attr.attr.name = events[i].name; in amdgpu_pmu_create_event_attrs_by_type() 424 pmu_attr->attr.attr.mode = 0444; in amdgpu_pmu_create_event_attrs_by_type() 425 pmu_attr->attr.show = amdgpu_pmu_event_show; in amdgpu_pmu_create_event_attrs_by_type() 426 pmu_attr->event_str = events[i].config; in amdgpu_pmu_create_event_attrs_by_type() 427 pmu_attr->type = type; in amdgpu_pmu_create_event_attrs_by_type() 428 pmu_attr++; in amdgpu_pmu_create_event_attrs_by_type() [all …]
|
/linux-6.6.21/arch/s390/kernel/ ! |
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-6.6.21/drivers/gpu/drm/i915/ ! |
D | i915_pmu.c | 1008 struct perf_pmu_events_attr *pmu_attr = NULL, *pmu_iter; in create_event_attributes() local 1038 pmu_attr = kcalloc(count, sizeof(*pmu_attr), GFP_KERNEL); in create_event_attributes() 1039 if (!pmu_attr) in create_event_attributes() 1048 pmu_iter = pmu_attr; in create_event_attributes() 1120 pmu->pmu_attr = pmu_attr; in create_event_attributes() 1131 kfree(pmu_attr); in create_event_attributes() 1145 kfree(pmu->pmu_attr); in free_event_attributes() 1149 pmu->pmu_attr = NULL; in free_event_attributes()
|
D | i915_pmu.h | 154 void *pmu_attr; member
|
/linux-6.6.21/drivers/nvdimm/ ! |
D | nd_perf.c | 111 struct perf_pmu_events_attr *pmu_attr; in nvdimm_events_sysfs_show() local 113 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); in nvdimm_events_sysfs_show() 115 return sprintf(page, "event=0x%02llx\n", pmu_attr->id); in nvdimm_events_sysfs_show()
|
/linux-6.6.21/drivers/perf/ ! |
D | arm_pmuv3.c | 161 struct perf_pmu_events_attr *pmu_attr; in armv8pmu_events_sysfs_show() local 163 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); in armv8pmu_events_sysfs_show() 165 return sprintf(page, "event=0x%04llx\n", pmu_attr->id); in armv8pmu_events_sysfs_show() 276 struct perf_pmu_events_attr *pmu_attr; in armv8pmu_event_attr_is_visible() local 278 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr.attr); in armv8pmu_event_attr_is_visible() 280 if (pmu_attr->id < ARMV8_PMUV3_MAX_COMMON_EVENTS && in armv8pmu_event_attr_is_visible() 281 test_bit(pmu_attr->id, cpu_pmu->pmceid_bitmap)) in armv8pmu_event_attr_is_visible() 284 if (pmu_attr->id >= ARMV8_PMUV3_EXT_COMMON_EVENT_BASE) { in armv8pmu_event_attr_is_visible() 285 u64 id = pmu_attr->id - ARMV8_PMUV3_EXT_COMMON_EVENT_BASE; in armv8pmu_event_attr_is_visible()
|
D | marvell_cn10k_tad_pmu.c | 162 struct perf_pmu_events_attr *pmu_attr; in tad_pmu_event_show() local 164 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); in tad_pmu_event_show() 165 return sysfs_emit(page, "event=0x%02llx\n", pmu_attr->id); in tad_pmu_event_show()
|
D | arm_smmuv3_pmu.c | 557 struct perf_pmu_events_attr *pmu_attr; in smmu_pmu_event_show() local 559 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); in smmu_pmu_event_show() 561 return sysfs_emit(page, "event=0x%02llx\n", pmu_attr->id); in smmu_pmu_event_show() 584 struct perf_pmu_events_attr *pmu_attr; in smmu_pmu_event_is_visible() local 586 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr.attr); in smmu_pmu_event_is_visible() 588 if (test_bit(pmu_attr->id, smmu_pmu->supported_events)) in smmu_pmu_event_is_visible()
|
D | cxl_pmu.c | 336 struct perf_pmu_events_attr *pmu_attr = in cxl_pmu_event_sysfs_show() local 339 return sysfs_emit(buf, "config=%#llx\n", pmu_attr->id); in cxl_pmu_event_sysfs_show() 476 struct perf_pmu_events_attr *pmu_attr = in cxl_pmu_event_is_visible() local 480 int vid = FIELD_GET(CXL_PMU_ATTR_CONFIG_VID_MSK, pmu_attr->id); in cxl_pmu_event_is_visible() 481 int gid = FIELD_GET(CXL_PMU_ATTR_CONFIG_GID_MSK, pmu_attr->id); in cxl_pmu_event_is_visible() 482 int msk = FIELD_GET(CXL_PMU_ATTR_CONFIG_MASK_MSK, pmu_attr->id); in cxl_pmu_event_is_visible()
|
D | apple_m1_cpu_pmu.c | 146 struct perf_pmu_events_attr *pmu_attr; in m1_pmu_events_sysfs_show() local 148 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); in m1_pmu_events_sysfs_show() 150 return sprintf(page, "event=0x%04llx\n", pmu_attr->id); in m1_pmu_events_sysfs_show()
|
D | fsl_imx9_ddr_perf.c | 124 struct perf_pmu_events_attr *pmu_attr; in ddr_pmu_event_show() local 126 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); in ddr_pmu_event_show() 127 return sysfs_emit(page, "event=0x%02llx\n", pmu_attr->id); in ddr_pmu_event_show()
|
D | marvell_cn10k_ddr_pmu.c | 141 struct perf_pmu_events_attr *pmu_attr; in cn10k_ddr_pmu_event_show() local 143 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); in cn10k_ddr_pmu_event_show() 144 return sysfs_emit(page, "event=0x%02llx\n", pmu_attr->id); in cn10k_ddr_pmu_event_show()
|
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()
|
D | fsl_imx8_ddr_perf.c | 222 struct perf_pmu_events_attr *pmu_attr; in ddr_pmu_event_show() local 224 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); in ddr_pmu_event_show() 225 return sysfs_emit(page, "event=0x%02llx\n", pmu_attr->id); in ddr_pmu_event_show()
|
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()
|
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-6.6.21/arch/x86/events/ ! |
D | core.c | 1826 struct perf_pmu_events_attr *pmu_attr = in events_sysfs_show() local 1830 if (pmu_attr->id < x86_pmu.max_events) in events_sysfs_show() 1831 config = x86_pmu.event_map(pmu_attr->id); in events_sysfs_show() 1834 if (pmu_attr->event_str) in events_sysfs_show() 1835 return sprintf(page, "%s\n", pmu_attr->event_str); in events_sysfs_show() 1844 struct perf_pmu_events_ht_attr *pmu_attr = in events_ht_sysfs_show() local 1860 pmu_attr->event_str_ht : in events_ht_sysfs_show() 1861 pmu_attr->event_str_noht); in events_ht_sysfs_show() 1868 struct perf_pmu_events_hybrid_attr *pmu_attr = in events_hybrid_sysfs_show() local 1874 if (hweight64(pmu_attr->pmu_type) == 1) in events_hybrid_sysfs_show() [all …]
|
/linux-6.6.21/drivers/perf/amlogic/ ! |
D | meson_ddr_pmu_core.c | 213 struct perf_pmu_events_attr *pmu_attr; in pmu_event_show() local 215 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); in pmu_event_show() 216 return sysfs_emit(page, "event=0x%02llx\n", pmu_attr->id); in pmu_event_show()
|
/linux-6.6.21/arch/arc/kernel/ ! |
D | perf_event.c | 650 struct perf_pmu_events_attr *pmu_attr; in arc_pmu_events_sysfs_show() local 652 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); in arc_pmu_events_sysfs_show() 653 return sprintf(page, "event=0x%04llx\n", pmu_attr->id); in arc_pmu_events_sysfs_show()
|
/linux-6.6.21/drivers/perf/arm_cspmu/ ! |
D | arm_cspmu.c | 186 struct perf_pmu_events_attr *pmu_attr; in arm_cspmu_sysfs_event_show() local 188 pmu_attr = container_of(attr, typeof(*pmu_attr), attr); in arm_cspmu_sysfs_event_show() 189 return sysfs_emit(buf, "event=0x%llx\n", pmu_attr->id); in arm_cspmu_sysfs_event_show()
|
/linux-6.6.21/drivers/perf/hisilicon/ ! |
D | hisi_pcie_pmu.c | 115 struct perf_pmu_events_attr *pmu_attr = in hisi_pcie_event_sysfs_show() local 118 return sysfs_emit(buf, "config=0x%llx\n", pmu_attr->id); in hisi_pcie_event_sysfs_show()
|
/linux-6.6.21/arch/powerpc/perf/ ! |
D | core-book3s.c | 2206 struct perf_pmu_events_attr *pmu_attr; in power_events_sysfs_show() local 2208 pmu_attr = container_of(attr, struct perf_pmu_events_attr, attr); in power_events_sysfs_show() 2210 return sprintf(page, "event=0x%02llx\n", pmu_attr->id); in power_events_sysfs_show()
|
/linux-6.6.21/arch/x86/events/intel/ ! |
D | pt.c | 148 struct perf_pmu_events_attr *pmu_attr = in pt_timing_attr_show() local 151 switch (pmu_attr->id) { in pt_timing_attr_show()
|
D | core.c | 5704 struct perf_pmu_events_hybrid_attr *pmu_attr = in is_attr_for_this_pmu() local 5707 return pmu->cpu_type & pmu_attr->pmu_type; in is_attr_for_this_pmu() 5740 struct perf_pmu_format_hybrid_attr *pmu_attr = in hybrid_format_is_visible() local 5744 return (cpu >= 0) && (pmu->cpu_type & pmu_attr->pmu_type) ? attr->mode : 0; in hybrid_format_is_visible()
|
/linux-6.6.21/kernel/events/ ! |
D | core.c | 13765 struct perf_pmu_events_attr *pmu_attr = in perf_event_sysfs_show() local 13768 if (pmu_attr->event_str) in perf_event_sysfs_show() 13769 return sprintf(page, "%s\n", pmu_attr->event_str); in perf_event_sysfs_show()
|