| /linux-6.15/tools/perf/pmu-events/ |
| H A D | empty-pmu-events.c | 18 struct compact_pmu_event pmu_name; member 97 .pmu_name = { 0 /* tool\000 */ }, 132 .pmu_name = { 1102 /* default_core\000 */ }, 142 .pmu_name = { 2152 /* hisi_sccl,l3c\000 */ }, 147 .pmu_name = { 1773 /* uncore_cbox\000 */ }, 152 .pmu_name = { 2365 /* uncore_imc\000 */ }, 184 .pmu_name = { 1102 /* default_core\000 */ }, 422 const char *pmu_name = &big_c_string[table_pmu->pmu_name.offset]; in pmu_events_table__for_each_event() local 443 const char *pmu_name = &big_c_string[table_pmu->pmu_name.offset]; in pmu_events_table__find_event() local 463 const char *pmu_name = &big_c_string[table_pmu->pmu_name.offset]; in pmu_events_table__num_events() local [all …]
|
| H A D | jevents.py | 522 pmu_name = event.pmu.replace(',', '_') 527 pmus.add((event.pmu, pmu_name)) 539 pmu_name = f"{pmu}\\000" 578 pmu_name = metric.pmu.replace(',', '_') 583 pmus.add((metric.pmu, pmu_name)) 594 pmu_name = f"{pmu}\\000" 636 pmu_name = f"{event.pmu}\\000" 638 _bcs.add(pmu_name, metric=False) 641 _bcs.add(pmu_name, metric=True)
|
| /linux-6.15/tools/perf/tests/ |
| H A D | pmu-events.c | 367 char const *pmu_name) in compare_alias_to_test_event() argument 374 pmu_name, alias->name, event->name); in compare_alias_to_test_event() 380 pmu_name, alias->desc, event->desc); in compare_alias_to_test_event() 386 pmu_name, alias->long_desc, in compare_alias_to_test_event() 412 pmu_name, alias->pmu_name, test_event->event.pmu); in compare_alias_to_test_event() 535 alias->pmu_name, alias->name); in test_core_pmu_event_aliases_cb() 560 pmu->name = strdup(pmu_name); in __test_core_pmu_event_aliases() 582 test_event.event.pmu = pmu_name; in __test_core_pmu_event_aliases() 598 const char *pmu_name = pmu->name; in __test_uncore_pmu_event_aliases() local 635 pmu_name, test_event.matching_pmu, pmu_name); in __test_uncore_pmu_event_aliases() [all …]
|
| /linux-6.15/tools/perf/util/ |
| H A D | pmu.c | 75 char *pmu_name; member 578 alias->pmu_name = pmu_name ? strdup(pmu_name) : NULL; in perf_pmu__new_alias() 905 pmu_name += 7; in perf_pmu__match_ignoring_suffix_uncore() 929 if (!pmu_name) in perf_pmu__match_wildcard_uncore() 934 pmu_name += 7; in perf_pmu__match_wildcard_uncore() 957 while (*pmu_name != '\0' && isdigit(*pmu_name)) in perf_pmu__match_wildcard_uncore() 958 pmu_name++; in perf_pmu__match_wildcard_uncore() 960 pmu_name++; in perf_pmu__match_wildcard_uncore() 1953 info.pmu_name = event->pmu_name ?: pmu->name; in perf_pmu__for_each_event() 2339 if (!pmu_name) in perf_pmu__wildcard_match() [all …]
|
| H A D | env.h | 43 char *pmu_name; member 54 char *pmu_name; member 189 char *perf_env__find_pmu_cap(struct perf_env *env, const char *pmu_name, 192 bool perf_env__has_pmu_mapping(struct perf_env *env, const char *pmu_name);
|
| H A D | env.c | 241 zfree(&env->hybrid_nodes[i].pmu_name); in perf_env__exit() 250 zfree(&env->pmu_caps[i].pmu_name); in perf_env__exit() 577 bool perf_env__has_pmu_mapping(struct perf_env *env, const char *pmu_name) in perf_env__has_pmu_mapping() argument 586 if (strcmp(pmu_mapping, pmu_name) == 0) in perf_env__has_pmu_mapping() 595 char *perf_env__find_pmu_cap(struct perf_env *env, const char *pmu_name, in perf_env__find_pmu_cap() argument 603 if (!pmu_name || !cap) in perf_env__find_pmu_cap() 614 if (!strcmp(pmu_name, "cpu")) { in perf_env__find_pmu_cap() 625 if (strcmp(env->pmu_caps[i].pmu_name, pmu_name)) in perf_env__find_pmu_cap()
|
| H A D | pmu.h | 210 const char *pmu_name; member 288 const char *pmu_name, const char *filename); 290 int perf_pmu__pathname_fd(int dirfd, const char *pmu_name, const char *filename, int flags);
|
| H A D | pmus.c | 422 const char *pmu_name; member 451 ret = strcmp(as->pmu_name ?: "", bs->pmu_name ?: ""); in cmp_sevent() 467 return strcmp(a->pmu_name, b->pmu_name) == 0; in pmu_alias_is_duplicate() 497 COPY_STR(pmu_name); in perf_pmus__print_pmu_events__callback() 548 aliases[j].pmu_name, in perf_pmus__print_pmu_events() 565 zfree(&aliases[j].pmu_name); in perf_pmus__print_pmu_events()
|
| H A D | cputopo.c | 444 node->pmu_name = strdup(pmu->name); in load_hybrid_node() 445 if (!node->pmu_name) in load_hybrid_node() 466 zfree(&node->pmu_name); in load_hybrid_node() 501 zfree(&tp->nodes[i].pmu_name); in hybrid_topology__delete()
|
| H A D | cputopo.h | 50 char *pmu_name; member
|
| H A D | print-events.h | 15 const char *pmu_name,
|
| H A D | stat-display.c | 934 const char *name, *pmu_name; in evsel__uniquify_counter() local 950 pmu_name = counter->pmu->name; in evsel__uniquify_counter() 952 if (!strncmp(name, pmu_name, strlen(pmu_name))) in evsel__uniquify_counter() 961 ret = asprintf(&new_name, "%s/%.*s/%s", pmu_name, len, name, config + 2); in evsel__uniquify_counter() 964 ret = asprintf(&new_name, "%s/%.*s,%s", pmu_name, len, name, config + 1); in evsel__uniquify_counter() 972 ret = asprintf(&new_name, "%s/%.*s/%s", pmu_name, len, name, config + 1); in evsel__uniquify_counter() 975 ret = asprintf(&new_name, "%s/%s/", pmu_name, name); in evsel__uniquify_counter()
|
| H A D | header.c | 981 ret = do_write_string(ff, n->pmu_name); in write_hybrid_topology() 1790 fprintf(fp, "# %s cpu list : %s\n", n->pmu_name, n->cpus); in print_hybrid_topology() 2097 fprintf(fp, "# %s pmu capabilities: ", pmu_name); in __print_pmu_caps() 2119 pmu_caps->pmu_name); in print_pmu_caps() 3068 n->pmu_name = do_read_string(ff); in process_hybrid_topology() 3069 if (!n->pmu_name) in process_hybrid_topology() 3083 free(nodes[i].pmu_name); in process_hybrid_topology() 3353 pmu_caps[i].pmu_name = do_read_string(ff); in process_pmu_caps() 3354 if (!pmu_caps[i].pmu_name) { in process_pmu_caps() 3360 pmu_caps[i].pmu_name); in process_pmu_caps() [all …]
|
| H A D | hwmon_pmu.c | 500 .pmu_name = pmu->name, in hwmon_pmu__for_each_event()
|
| /linux-6.15/tools/testing/selftests/powerpc/pmu/sampling_tests/ |
| H A D | misc.c | 531 char pmu_name[256]; in check_for_generic_compat_pmu() local 533 memset(pmu_name, 0, sizeof(pmu_name)); in check_for_generic_compat_pmu() 535 pmu_name, sizeof(pmu_name)) < 0) in check_for_generic_compat_pmu() 538 if (!strcmp(pmu_name, "ISAv3")) in check_for_generic_compat_pmu()
|
| /linux-6.15/Documentation/ABI/testing/ |
| H A D | sysfs-bus-event_source-devices-caps | 8 expose information specific to a PMU, say pmu_name, so that 13 like Intel is pmu_name, which exposes underlying CPU name known 18 /sys/bus/event_source/devices/cpu/caps/pmu_name:POWER9
|
| /linux-6.15/tools/perf/ |
| H A D | builtin-list.c | 116 static void default_print_event(void *ps, const char *topic, const char *pmu_name, in default_print_event() argument 130 if (print_state->pmu_glob && pmu_name && !strglobmatch(pmu_name, print_state->pmu_glob)) in default_print_event() 173 if (pmu_name && strcmp(pmu_name, "default_core")) { in default_print_event() 178 desc, pmu_name); in default_print_event() 356 static void json_print_event(void *ps, const char *topic, const char *pmu_name, in json_print_event() argument 371 if (pmu_name) { in json_print_event() 372 fix_escape_fprintf(fp, &buf, "\t\"Unit\": \"%S\"", pmu_name); in json_print_event()
|
| /linux-6.15/arch/x86/xen/ |
| H A D | smp_pv.c | 116 char *callfunc_name, *pmu_name; in xen_smp_intr_init_pv() local 131 pmu_name = kasprintf(GFP_KERNEL, "pmu%d", cpu); in xen_smp_intr_init_pv() 132 per_cpu(xen_pmu_irq, cpu).name = pmu_name; in xen_smp_intr_init_pv() 136 pmu_name, NULL); in xen_smp_intr_init_pv()
|
| /linux-6.15/arch/sparc/kernel/ |
| H A D | cpu.c | 37 const char *pmu_name; member 58 { .psr_vers = ver, .name = _name, .pmu_name = _pmu_name } 290 sparc_pmu_type = cpu->pmu_name; in set_cpu_and_fpu()
|
| /linux-6.15/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_pmu.c | 491 char pmu_name[PMU_NAME_SIZE]; in init_pmu_entry_by_type_and_add() local 545 snprintf(pmu_name, PMU_NAME_SIZE, "%s_%d", pmu_entry->pmu_file_prefix, in init_pmu_entry_by_type_and_add() 548 ret = perf_pmu_register(&pmu_entry->pmu, pmu_name, -1); in init_pmu_entry_by_type_and_add()
|
| /linux-6.15/tools/perf/Documentation/ |
| H A D | perf.data-file-format.txt | 220 struct perf_header_string pmu_name; 390 cpu pmu capabilities: branches=32, max_precise=3, pmu_name=icelake 412 char pmu_name[]; 436 char pmu_name[];
|
| /linux-6.15/drivers/hwtracing/ptt/ |
| H A D | hisi_ptt.c | 1204 char *pmu_name; in hisi_ptt_register_pmu() local 1242 pmu_name = devm_kasprintf(&hisi_ptt->pdev->dev, GFP_KERNEL, "hisi_ptt%u_%u", in hisi_ptt_register_pmu() 1244 if (!pmu_name) in hisi_ptt_register_pmu() 1247 ret = perf_pmu_register(&hisi_ptt->hisi_ptt_pmu, pmu_name, -1); in hisi_ptt_register_pmu()
|
| /linux-6.15/arch/x86/events/intel/ |
| H A D | uncore.c | 874 void uncore_get_alias_name(char *pmu_name, struct intel_uncore_pmu *pmu) in uncore_get_alias_name() argument 879 sprintf(pmu_name, "uncore_type_%u", type->type_id); in uncore_get_alias_name() 881 sprintf(pmu_name, "uncore_type_%u_%d", in uncore_get_alias_name()
|
| H A D | uncore.h | 586 void uncore_get_alias_name(char *pmu_name, struct intel_uncore_pmu *pmu);
|
| H A D | uncore_snbep.c | 5951 char pmu_name[UNCORE_PMU_NAME_LEN]; in alias_show() local 5953 uncore_get_alias_name(pmu_name, pmu); in alias_show() 5954 return sysfs_emit(buf, "%s\n", pmu_name); in alias_show()
|