Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ !
Damdgpu_pmu.c410 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/ !
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-6.6.21/drivers/gpu/drm/i915/ !
Di915_pmu.c1008 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()
Di915_pmu.h154 void *pmu_attr; member
/linux-6.6.21/drivers/nvdimm/ !
Dnd_perf.c111 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/ !
Darm_pmuv3.c161 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()
Dmarvell_cn10k_tad_pmu.c162 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()
Darm_smmuv3_pmu.c557 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()
Dcxl_pmu.c336 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()
Dapple_m1_cpu_pmu.c146 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()
Dfsl_imx9_ddr_perf.c124 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()
Dmarvell_cn10k_ddr_pmu.c141 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()
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()
Dfsl_imx8_ddr_perf.c222 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()
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()
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-6.6.21/arch/x86/events/ !
Dcore.c1826 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/ !
Dmeson_ddr_pmu_core.c213 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/ !
Dperf_event.c650 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/ !
Darm_cspmu.c186 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/ !
Dhisi_pcie_pmu.c115 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/ !
Dcore-book3s.c2206 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/ !
Dpt.c148 struct perf_pmu_events_attr *pmu_attr = in pt_timing_attr_show() local
151 switch (pmu_attr->id) { in pt_timing_attr_show()
Dcore.c5704 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/ !
Dcore.c13765 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()