/linux-6.3-rc2/tools/perf/util/ |
A D | pmu-hybrid.c | 24 char pmu_name[PATH_MAX]; in perf_pmu__hybrid_mounted() local 25 struct perf_pmu pmu = {.name = pmu_name}; in perf_pmu__hybrid_mounted() 30 strlcpy(pmu_name, name, sizeof(pmu_name)); in perf_pmu__hybrid_mounted() 56 char *pmu_name = NULL; in perf_pmu__hybrid_type_to_pmu() local 58 if (asprintf(&pmu_name, "cpu_%s", type) < 0) in perf_pmu__hybrid_type_to_pmu() 61 if (perf_pmu__is_hybrid(pmu_name)) in perf_pmu__hybrid_type_to_pmu() 62 return pmu_name; in perf_pmu__hybrid_type_to_pmu() 67 if (perf_pmu__hybrid_mounted(pmu_name)) in perf_pmu__hybrid_type_to_pmu() 68 return pmu_name; in perf_pmu__hybrid_type_to_pmu() 70 free(pmu_name); in perf_pmu__hybrid_type_to_pmu()
|
A D | topdown.c | 8 const char *pmu_name) in topdown_filter_events() argument 14 bool is_hybrid = perf_pmu__is_hybrid(pmu_name); in topdown_filter_events() 17 if (pmu_have_event(pmu_name, attr[i])) { in topdown_filter_events() 19 len += strlen(attr[i]) + strlen(pmu_name) + 3; in topdown_filter_events() 42 sprintf(s, "%s/%s/", pmu_name, attr[i]); in topdown_filter_events()
|
A D | evlist-hybrid.c | 37 evsel->pmu_name = strdup(pmu->name); in evlist__add_default_hybrid() 52 if (prev && strcmp(prev->pmu_name, pos->pmu_name)) in group_hybrid_conflict() 81 if (evsel->pmu_name && in evlist__has_hybrid() 82 perf_pmu__is_hybrid(evsel->pmu_name)) { in evlist__has_hybrid() 116 pmu = perf_pmu__find_hybrid_pmu(evsel->pmu_name); in evlist__fix_hybrid_cpus()
|
A D | pmu.c | 298 zfree(&newalias->pmu_name); in perf_pmu_free_alias() 313 if (newalias->pmu_name && a->pmu_name && in perf_pmu_merge_alias() 314 !strcasecmp(newalias->pmu_name, a->pmu_name)) { in perf_pmu_merge_alias() 342 pmu_name = (char *)pe->pmu; in __perf_pmu__new_alias() 406 alias->pmu_name = pmu_name ? strdup(pmu_name) : NULL; in __perf_pmu__new_alias() 576 char pmu_name[PATH_MAX]; in pmu_cpumask() local 580 strlcpy(pmu_name, name, sizeof(pmu_name)); in pmu_cpumask() 671 if (strncmp(pmu_name, tok, strlen(tok))) in perf_pmu__valid_suffix() 674 p = pmu_name + strlen(tok); in perf_pmu__valid_suffix() 697 str = strdup(pmu_name); in pmu_uncore_alias_match() [all …]
|
A D | pmu.h | 189 char *pmu_name; member 198 int perf_pmu__config_terms(const char *pmu_name, struct list_head *formats, 235 bool pmu_uncore_alias_match(const char *pmu_name, const char *name); 258 const char *pmu_name, const char *filename);
|
A 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,
|
A D | parse-events-hybrid.c | 66 evsel->pmu_name = strdup(pmu->name); in create_event_hybrid() 67 if (!evsel->pmu_name) in create_event_hybrid() 127 evsel->pmu_name = strdup(pmu->name); in create_raw_event_hybrid()
|
A D | env.c | 217 zfree(&env->hybrid_nodes[i].pmu_name); in perf_env__exit() 226 zfree(&env->pmu_caps[i].pmu_name); in perf_env__exit() 535 char *perf_env__find_pmu_cap(struct perf_env *env, const char *pmu_name, in perf_env__find_pmu_cap() argument 543 if (!pmu_name || !cap) in perf_env__find_pmu_cap() 554 if (!strcmp(pmu_name, "cpu")) { in perf_env__find_pmu_cap() 565 if (strcmp(env->pmu_caps[i].pmu_name, pmu_name)) in perf_env__find_pmu_cap()
|
A D | parse-events.y | 378 char pmu_name[128]; variable 379 snprintf(pmu_name, sizeof(pmu_name), "%s-%s-%s", $1, $3, $5); 383 if (parse_events_multi_pmu_add(_parse_state, pmu_name, NULL, &list) < 0) 391 char pmu_name[128]; variable 393 snprintf(pmu_name, sizeof(pmu_name), "%s-%s", $1, $3); 396 if (parse_events_multi_pmu_add(_parse_state, pmu_name, NULL, &list) < 0)
|
A D | cputopo.c | 429 node->pmu_name = strdup(pmu->name); in load_hybrid_node() 430 if (!node->pmu_name) in load_hybrid_node() 451 zfree(&node->pmu_name); in load_hybrid_node() 487 zfree(&tp->nodes[i].pmu_name); in hybrid_topology__delete()
|
A D | topdown.h | 12 const char *pmu_name);
|
A D | cputopo.h | 50 char *pmu_name; member
|
A D | print-events.h | 14 const char *pmu_name,
|
/linux-6.3-rc2/tools/perf/arch/x86/util/ |
A D | mem-events.c | 69 char *perf_mem_events__name(int i, char *pmu_name) in perf_mem_events__name() argument 77 if (mem_loads_name__init && !pmu_name) in perf_mem_events__name() 80 if (!pmu_name) { in perf_mem_events__name() 82 pmu_name = (char *)"cpu"; in perf_mem_events__name() 85 if (pmu_have_event(pmu_name, "mem-loads-aux")) { in perf_mem_events__name() 87 MEM_LOADS_AUX_NAME, pmu_name, pmu_name, in perf_mem_events__name() 91 e->name, pmu_name, in perf_mem_events__name() 98 if (!pmu_name) in perf_mem_events__name() 99 pmu_name = (char *)"cpu"; in perf_mem_events__name() 102 e->name, pmu_name); in perf_mem_events__name()
|
A D | topdown.c | 87 const char *pmu_name; in arch_get_topdown_pmu_name() local 98 pmu_name = evlist->hybrid_pmu_name; in arch_get_topdown_pmu_name() 100 return pmu_name; in arch_get_topdown_pmu_name() 106 const char *pmu_name; in topdown_parse_events() local 111 pmu_name = arch_get_topdown_pmu_name(evlist, false); in topdown_parse_events() 113 if (pmu_have_event(pmu_name, "topdown-heavy-ops")) { in topdown_parse_events() 114 if (!strcmp(pmu_name, "cpu_core")) in topdown_parse_events() 119 if (!strcmp(pmu_name, "cpu_core")) in topdown_parse_events()
|
A D | evsel.c | 42 const char *pmu_name = evsel->pmu_name ? evsel->pmu_name : "cpu"; in evsel__sys_has_perf_metrics() local 53 pmu_have_event(pmu_name, "slots")) in evsel__sys_has_perf_metrics() 85 evsel->pmu_name ? evsel->pmu_name : "cpu", in arch_evsel__hw_name()
|
A D | evlist.c | 43 evsel->pmu_name = strdup(pmu->name); in ___evlist__add_default_attrs() 80 if (evsel->pmu_name && !strncmp(evsel->pmu_name, "cpu", 3) && evsel->name) { in arch_evlist__leader()
|
/linux-6.3-rc2/tools/perf/tests/ |
A D | pmu-events.c | 351 char const *pmu_name) in compare_alias_to_test_event() argument 358 pmu_name, alias->name, event->name); in compare_alias_to_test_event() 364 pmu_name, alias->desc, event->desc); in compare_alias_to_test_event() 370 pmu_name, alias->long_desc, in compare_alias_to_test_event() 396 pmu_name, alias->pmu_name, test_event->event.pmu); in compare_alias_to_test_event() 534 pmu->name = pmu_name; in __test_core_pmu_event_aliases() 545 pmu_name, event->name); in __test_core_pmu_event_aliases() 557 pmu_name, alias->name); in __test_core_pmu_event_aliases() 573 const char *pmu_name = pmu->name; in __test_uncore_pmu_event_aliases() local 610 pmu_name)) { in __test_uncore_pmu_event_aliases() [all …]
|
/linux-6.3-rc2/Documentation/ABI/testing/ |
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.3-rc2/tools/testing/selftests/powerpc/pmu/sampling_tests/ |
A 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-6.3-rc2/tools/perf/ |
A D | builtin-list.c | 97 static void default_print_event(void *ps, const char *pmu_name, const char *topic, in default_print_event() argument 110 if (print_state->pmu_glob && pmu_name && !strglobmatch(pmu_name, print_state->pmu_glob)) in default_print_event() 301 static void json_print_event(void *ps, const char *pmu_name, const char *topic, in json_print_event() argument 315 if (pmu_name) { in json_print_event() 316 fix_escape_printf(&buf, "\t\"Unit\": \"%S\"", pmu_name); in json_print_event()
|
/linux-6.3-rc2/arch/x86/xen/ |
A D | smp_pv.c | 118 char *callfunc_name, *pmu_name; in xen_smp_intr_init_pv() local 133 pmu_name = kasprintf(GFP_KERNEL, "pmu%d", cpu); in xen_smp_intr_init_pv() 134 per_cpu(xen_pmu_irq, cpu).name = pmu_name; in xen_smp_intr_init_pv() 138 pmu_name, NULL); in xen_smp_intr_init_pv()
|
/linux-6.3-rc2/tools/perf/arch/powerpc/util/ |
A D | mem-events.c | 6 char *perf_mem_events__name(int i, char *pmu_name __maybe_unused) in perf_mem_events__name()
|
/linux-6.3-rc2/arch/sparc/kernel/ |
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.3-rc2/tools/perf/arch/arm64/util/ |
A D | mem-events.c | 23 char *perf_mem_events__name(int i, char *pmu_name __maybe_unused) in perf_mem_events__name()
|