/Linux-v6.6/tools/perf/arch/x86/util/ |
D | mem-events.c | 55 const char *perf_mem_events__name(int i, const char *pmu_name) in perf_mem_events__name() argument 63 if (mem_loads_name__init && !pmu_name) in perf_mem_events__name() 66 if (!pmu_name) { in perf_mem_events__name() 68 pmu_name = "cpu"; in perf_mem_events__name() 71 if (perf_pmus__have_event(pmu_name, "mem-loads-aux")) { in perf_mem_events__name() 73 MEM_LOADS_AUX_NAME, pmu_name, pmu_name, in perf_mem_events__name() 77 e->name, pmu_name, in perf_mem_events__name() 84 if (!pmu_name) in perf_mem_events__name() 85 pmu_name = "cpu"; in perf_mem_events__name() 88 e->name, pmu_name); in perf_mem_events__name()
|
D | evsel.c | 24 const char *pmu_name = evsel->pmu_name ? evsel->pmu_name : "cpu"; in evsel__sys_has_perf_metrics() local 35 perf_pmus__have_event(pmu_name, "slots")) in evsel__sys_has_perf_metrics() 66 evsel->pmu_name ? evsel->pmu_name : "cpu", in arch_evsel__hw_name() 111 !(evsel->pmu_name && !strncmp(evsel->pmu_name, "ibs", 3))) in arch_evsel__open_strerror()
|
D | evlist.c | 47 evsel->pmu_name = strdup(pmu->name); in ___evlist__add_default_attrs()
|
/Linux-v6.6/tools/perf/tests/ |
D | pmu-events.c | 352 char const *pmu_name) in compare_alias_to_test_event() argument 359 pmu_name, alias->name, event->name); in compare_alias_to_test_event() 365 pmu_name, alias->desc, event->desc); in compare_alias_to_test_event() 371 pmu_name, alias->long_desc, in compare_alias_to_test_event() 378 pmu_name, alias->topic, event->topic); in compare_alias_to_test_event() 384 pmu_name, alias->str, test_event->alias_str); in compare_alias_to_test_event() 390 pmu_name, alias->str, test_event->alias_long_desc); in compare_alias_to_test_event() 394 if (!is_same(alias->pmu_name, test_event->event.pmu) && in compare_alias_to_test_event() 395 !is_same(alias->pmu_name, "default_core")) { in compare_alias_to_test_event() 397 pmu_name, alias->pmu_name, test_event->event.pmu); in compare_alias_to_test_event() [all …]
|
/Linux-v6.6/tools/perf/util/ |
D | pmu.c | 62 char *pmu_name; member 406 zfree(&newalias->pmu_name); in perf_pmu_free_alias() 506 const char *long_desc = NULL, *topic = NULL, *unit = NULL, *pmu_name = NULL; in perf_pmu__new_alias() local 520 pmu_name = pe->pmu; in perf_pmu__new_alias() 546 alias->pmu_name = pmu_name ? strdup(pmu_name) : NULL; in perf_pmu__new_alias() 696 char pmu_name[PATH_MAX]; in pmu_cpumask() local 697 struct perf_pmu pmu = {.name = pmu_name}; in pmu_cpumask() 700 strlcpy(pmu_name, name, sizeof(pmu_name)); in pmu_cpumask() 795 static bool perf_pmu__match_ignoring_suffix(const char *pmu_name, const char *tok) in perf_pmu__match_ignoring_suffix() argument 799 if (strncmp(pmu_name, tok, strlen(tok))) in perf_pmu__match_ignoring_suffix() [all …]
|
D | pmu.h | 185 const char *pmu_name; member 217 bool pmu__name_match(const struct perf_pmu *pmu, const char *pmu_name); 260 const char *pmu_name, const char *filename); 262 int perf_pmu__pathname_fd(int dirfd, const char *pmu_name, const char *filename, int flags);
|
D | pmus.c | 354 const char *pmu_name; member 382 ret = strcmp(as->pmu_name ?: "", bs->pmu_name ?: ""); in cmp_sevent() 398 return strcmp(a->pmu_name, b->pmu_name) == 0; in pmu_alias_is_duplicate() 427 COPY_STR(pmu_name); in perf_pmus__print_pmu_events__callback() 476 aliases[j].pmu_name, in perf_pmus__print_pmu_events() 493 zfree(&aliases[j].pmu_name); in perf_pmus__print_pmu_events()
|
D | env.h | 42 char *pmu_name; member 50 char *pmu_name; member 175 char *perf_env__find_pmu_cap(struct perf_env *env, const char *pmu_name,
|
D | env.c | 218 zfree(&env->hybrid_nodes[i].pmu_name); in perf_env__exit() 227 zfree(&env->pmu_caps[i].pmu_name); in perf_env__exit() 534 char *perf_env__find_pmu_cap(struct perf_env *env, const char *pmu_name, in perf_env__find_pmu_cap() argument 542 if (!pmu_name || !cap) in perf_env__find_pmu_cap() 553 if (!strcmp(pmu_name, "cpu")) { in perf_env__find_pmu_cap() 564 if (strcmp(env->pmu_caps[i].pmu_name, pmu_name)) in perf_env__find_pmu_cap()
|
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()
|
D | cputopo.h | 50 char *pmu_name; member
|
D | print-events.h | 15 const char *pmu_name,
|
D | mem-events.h | 41 const char *perf_mem_events__name(int i, const char *pmu_name);
|
D | stat-shadow.c | 561 if (!need_full_name || !strcmp(last_pmu, evsel->pmu_name)) { in perf_stat__print_metricgroup_header() 568 scnprintf(full_name, sizeof(full_name), "%s (%s)", name, evsel->pmu_name); in perf_stat__print_metricgroup_header() 575 last_pmu = evsel->pmu_name; in perf_stat__print_metricgroup_header()
|
D | stat-display.c | 865 !counter->pmu_name || !strncmp(evsel__name(counter), counter->pmu_name, in uniquify_event_name() 866 strlen(counter->pmu_name))) in uniquify_event_name() 872 "%s%s", counter->pmu_name, config) > 0) { in uniquify_event_name() 879 counter->pmu_name, counter->name); in uniquify_event_name() 882 counter->name, counter->pmu_name); in uniquify_event_name()
|
D | header.c | 959 ret = do_write_string(ff, n->pmu_name); in write_hybrid_topology() 1817 fprintf(fp, "# %s cpu list : %s\n", n->pmu_name, n->cpus); in print_hybrid_topology() 2114 static void __print_pmu_caps(FILE *fp, int nr_caps, char **caps, char *pmu_name) in __print_pmu_caps() argument 2120 fprintf(fp, "# %s pmu capabilities: not available\n", pmu_name); in __print_pmu_caps() 2124 fprintf(fp, "# %s pmu capabilities: ", pmu_name); in __print_pmu_caps() 2146 pmu_caps->pmu_name); in print_pmu_caps() 3082 n->pmu_name = do_read_string(ff); in process_hybrid_topology() 3083 if (!n->pmu_name) in process_hybrid_topology() 3097 free(nodes[i].pmu_name); in process_hybrid_topology() 3351 pmu_caps[i].pmu_name = do_read_string(ff); in process_pmu_caps() [all …]
|
/Linux-v6.6/Documentation/ABI/testing/ |
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-v6.6/tools/testing/selftests/powerpc/pmu/sampling_tests/ |
D | misc.c | 515 char pmu_name[256]; in check_for_generic_compat_pmu() local 517 memset(pmu_name, 0, sizeof(pmu_name)); in check_for_generic_compat_pmu() 519 pmu_name, sizeof(pmu_name)) < 0) in check_for_generic_compat_pmu() 522 if (!strcmp(pmu_name, "ISAv3")) in check_for_generic_compat_pmu()
|
/Linux-v6.6/tools/perf/ |
D | builtin-list.c | 98 static void default_print_event(void *ps, const char *pmu_name, const char *topic, in default_print_event() argument 111 if (print_state->pmu_glob && pmu_name && !strglobmatch(pmu_name, print_state->pmu_glob)) in default_print_event() 151 if (pmu_name && strcmp(pmu_name, "default_core")) { in default_print_event() 156 desc, pmu_name); in default_print_event() 324 static void json_print_event(void *ps, const char *pmu_name, const char *topic, in json_print_event() argument 338 if (pmu_name) { in json_print_event() 339 fix_escape_printf(&buf, "\t\"Unit\": \"%S\"", pmu_name); in json_print_event()
|
/Linux-v6.6/tools/perf/pmu-events/ |
D | jevents.py | 478 pmu_name = event.pmu.replace(',', '_') 483 pmus.add((event.pmu, pmu_name)) 494 pmu_name = f"{pmu}\\000" 533 pmu_name = metric.pmu.replace(',', '_') 538 pmus.add((metric.pmu, pmu_name)) 549 pmu_name = f"{pmu}\\000" 591 pmu_name = f"{event.pmu}\\000" 593 _bcs.add(pmu_name, metric=False) 596 _bcs.add(pmu_name, metric=True)
|
/Linux-v6.6/arch/x86/xen/ |
D | smp_pv.c | 119 char *callfunc_name, *pmu_name; in xen_smp_intr_init_pv() local 134 pmu_name = kasprintf(GFP_KERNEL, "pmu%d", cpu); in xen_smp_intr_init_pv() 135 per_cpu(xen_pmu_irq, cpu).name = pmu_name; in xen_smp_intr_init_pv() 139 pmu_name, NULL); in xen_smp_intr_init_pv()
|
/Linux-v6.6/arch/sparc/kernel/ |
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-v6.6/tools/perf/arch/powerpc/util/ |
D | mem-events.c | 6 const char *perf_mem_events__name(int i, const char *pmu_name __maybe_unused) in perf_mem_events__name()
|
/Linux-v6.6/tools/perf/arch/arm64/util/ |
D | mem-events.c | 23 const char *perf_mem_events__name(int i, const char *pmu_name __maybe_unused) in perf_mem_events__name()
|
/Linux-v6.6/drivers/gpu/drm/amd/amdgpu/ |
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()
|