Home
last modified time | relevance | path

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

12

/linux/tools/perf/pmu-events/
H A Dempty-pmu-events.c18 struct compact_pmu_event pmu_name; member
2613 .pmu_name = { 0 /* default_core\000 */ },
2618 .pmu_name = { 123512 /* software\000 */ },
2623 .pmu_name = { 125067 /* tool\000 */ },
2652 .pmu_name = { 0 /* default_core\000 */ },
2687 .pmu_name = { 0 /* default_core\000 */ },
2692 .pmu_name = { 126978 /* hisi_sccl,ddrc\000 */ },
2697 .pmu_name = { 127341 /* hisi_sccl,l3c\000 */ },
2702 .pmu_name = { 127063 /* uncore_cbox\000 */ },
2707 .pmu_name = { 127527 /* uncore_imc\000 */ },
[all …]
H A Djevents.py543 pmu_name = event.pmu.replace(',', '_')
548 pmus.add((event.pmu, pmu_name))
560 pmu_name = f"{pmu}\\000"
599 pmu_name = metric.pmu.replace(',', '_')
604 pmus.add((metric.pmu, pmu_name))
615 pmu_name = f"{pmu}\\000"
657 pmu_name = f"{event.pmu}\\000"
659 _bcs.add(pmu_name, metric=False)
662 _bcs.add(pmu_name, metric=True)
/linux/tools/perf/tests/
H A Dpmu-events.c37 const char *pmu_name; member
327 char const *pmu_name) in compare_alias_to_test_event() argument
334 pmu_name, alias->name, event->name); in compare_alias_to_test_event()
340 pmu_name, alias->desc, event->desc); in compare_alias_to_test_event()
346 pmu_name, alias->long_desc, in compare_alias_to_test_event()
353 pmu_name, alias->topic, event->topic); in compare_alias_to_test_event()
359 pmu_name, alias->str, test_event->event.event); in compare_alias_to_test_event()
365 pmu_name, alias->str, test_event->alias_long_desc); in compare_alias_to_test_event()
369 if (!is_same(alias->pmu_name, test_event->event.pmu) && in compare_alias_to_test_event()
370 !is_same(alias->pmu_name, "default_core")) { in compare_alias_to_test_event()
[all …]
/linux/tools/perf/util/
H A Dpmu.c81 char *pmu_name; member
391 static bool perf_pmu__parse_event_source_bool(const char *pmu_name, const char *event_name, in perf_pmu__parse_event_source_bool() argument
402 scnprintf(path + len, sizeof(path) - len, "%s/events/%s.%s", pmu_name, event_name, suffix); in perf_pmu__parse_event_source_bool()
442 zfree(&alias->pmu_name); in perf_pmu_free_alias()
589 const char *long_desc = NULL, *topic = NULL, *unit = NULL, *pmu_name = NULL; in perf_pmu__new_alias() local
604 pmu_name = pe->pmu; in perf_pmu__new_alias()
655 alias->pmu_name = pmu_name ? strdup(pmu_name) : NULL; in perf_pmu__new_alias()
834 static struct perf_cpu_map *pmu_cpumask(int dirfd, const char *pmu_name, bool is_core) in pmu_cpumask() argument
851 io.fd = perf_pmu__pathname_fd(dirfd, pmu_name, *template, O_RDONLY); in pmu_cpumask()
938 static bool perf_pmu__match_wildcard(const char *pmu_name, const char *tok) in perf_pmu__match_wildcard() argument
[all …]
H A Denv.c256 zfree(&env->hybrid_nodes[i].pmu_name); in perf_env__exit()
265 zfree(&env->pmu_caps[i].pmu_name); in perf_env__exit()
522 pmu_caps[i].pmu_name = strdup(pmu->name); in perf_env__read_core_pmu_caps()
523 if (!pmu_caps[i].pmu_name) { in perf_env__read_core_pmu_caps()
539 zfree(&pmu_caps[i].pmu_name); in perf_env__read_core_pmu_caps()
703 bool perf_env__has_pmu_mapping(struct perf_env *env, const char *pmu_name) in perf_env__has_pmu_mapping() argument
712 if (strcmp(pmu_mapping, pmu_name) == 0) in perf_env__has_pmu_mapping()
721 char *perf_env__find_pmu_cap(struct perf_env *env, const char *pmu_name, in perf_env__find_pmu_cap() argument
729 if (!pmu_name || !cap) in perf_env__find_pmu_cap()
740 if (!strcmp(pmu_name, "cpu")) { in perf_env__find_pmu_cap()
[all …]
H A Denv.h43 char *pmu_name; member
54 char *pmu_name; member
194 char *perf_env__find_pmu_cap(struct perf_env *env, const char *pmu_name,
197 bool perf_env__has_pmu_mapping(struct perf_env *env, const char *pmu_name);
H A Dprint-events.h15 const char *pmu_name, u32 pmu_type,
29 const char *pmu_name);
H A Dpmus.c521 const char *pmu_name; member
550 ret = strcmp(as->pmu_name ?: "", bs->pmu_name ?: ""); in cmp_sevent()
566 return strcmp(a->pmu_name, b->pmu_name) == 0; in pmu_alias_is_duplicate()
596 COPY_STR(pmu_name); in perf_pmus__print_pmu_events__callback()
647 aliases[j].pmu_name, in perf_pmus__print_pmu_events()
665 zfree(&aliases[j].pmu_name); in perf_pmus__print_pmu_events()
H A Dpmu.h230 const char *pmu_name; member
310 const char *pmu_name, const char *filename);
312 int perf_pmu__pathname_fd(int dirfd, const char *pmu_name, const char *filename, int flags);
H A Dcputopo.c444 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 Dprint-events.c201 const char *pmu_name; member
284 me->pmu_name = pm->pmu; in metricgroup__add_to_mep_groups_callback()
316 me->pmu_name); in metricgroup__print()
H A Dcputopo.h50 char *pmu_name; member
H A Dheader.c982 ret = do_write_string(ff, n->pmu_name); in write_hybrid_topology()
1791 fprintf(fp, "# %s cpu list : %s\n", n->pmu_name, n->cpus); in print_hybrid_topology()
2094 static void __print_pmu_caps(FILE *fp, int nr_caps, char **caps, char *pmu_name) in __print_pmu_caps() argument
2100 fprintf(fp, "# %s pmu capabilities: not available\n", pmu_name); in __print_pmu_caps()
2104 fprintf(fp, "# %s pmu capabilities: ", pmu_name); in __print_pmu_caps()
2127 pmu_caps->pmu_name); in print_pmu_caps()
3074 n->pmu_name = do_read_string(ff); in process_hybrid_topology()
3075 if (!n->pmu_name) in process_hybrid_topology()
3089 free(nodes[i].pmu_name); in process_hybrid_topology()
3364 pmu_caps[i].pmu_name = do_read_string(ff); in process_pmu_caps()
[all …]
H A Dtp_pmu.c117 .pmu_name = args->pmu->name, in for_each_event_cb()
H A Devsel.c4195 const char *name, *pmu_name, *config; in evsel__uniquify_counter() local
4212 pmu_name = counter->pmu->name; in evsel__uniquify_counter()
4215 len = pmu_name_len_no_suffix(pmu_name); in evsel__uniquify_counter()
4217 if (!strncmp(name, pmu_name, len)) { in evsel__uniquify_counter()
4225 ret = asprintf(&new_name, "%s/%s", pmu_name, config + 1); in evsel__uniquify_counter()
4230 ret = asprintf(&new_name, "%s/%.*s/%s", pmu_name, len, name, config + 2); in evsel__uniquify_counter()
4233 ret = asprintf(&new_name, "%s/%.*s,%s", pmu_name, len, name, config + 1); in evsel__uniquify_counter()
4241 ret = asprintf(&new_name, "%s/%.*s/%s", pmu_name, len, name, config + 1); in evsel__uniquify_counter()
4244 ret = asprintf(&new_name, "%s/%s/", pmu_name, name); in evsel__uniquify_counter()
/linux/tools/perf/
H A Dbuiltin-list.c119 const char *pmu_name, u32 pmu_type, in default_print_event() argument
133 if (print_state->pmu_glob && (!pmu_name || !strglobmatch(pmu_name, print_state->pmu_glob))) in default_print_event()
179 if (pmu_name && strcmp(pmu_name, "default_core")) { in default_print_event()
184 desc, pmu_name); in default_print_event()
207 const char *pmu_name __maybe_unused) in default_print_metric()
364 const char *pmu_name, u32 pmu_type __maybe_unused, in json_print_event() argument
380 (!pmu_name || !strglobmatch(pmu_name, print_state->common.pmu_glob))) in json_print_event()
396 if (pmu_name) { in json_print_event()
397 fix_escape_fprintf(fp, &buf, "\t\"Unit\": \"%S\"", pmu_name); in json_print_event()
462 const char *pmu_name) in json_print_metric() argument
[all …]
/linux/tools/testing/selftests/powerpc/pmu/sampling_tests/
H A Dmisc.c524 * First check for presence of pmu_name from in check_for_generic_compat_pmu()
531 char pmu_name[256]; in check_for_compat_mode()
533 memset(pmu_name, 0, sizeof(pmu_name)); in check_for_compat_mode()
534 if (read_sysfs_file("bus/event_source/devices/cpu/caps/pmu_name", in check_for_compat_mode()
535 pmu_name, sizeof(pmu_name)) < 0) in check_for_compat_mode()
538 if (!strcmp(pmu_name, "ISAv3"))
515 char pmu_name[256]; check_for_generic_compat_pmu() local
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-event_source-devices-caps8 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/arch/x86/xen/
H A Dsmp_pv.c116 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/arch/sparc/kernel/
H A Dcpu.c37 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/tools/perf/python/
H A Dilist.py445 pmu_name = pmu.name().lower()
446 pmu_node = pmus.add(pmu_name)
455 data=PmuEvent(pmu_name, e))
457 pmu_node.add_leaf(e, data=PmuEvent(pmu_name, e))
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_pmu.c491 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/tools/perf/Documentation/
H A Dperf.data-file-format.txt220 struct perf_header_string pmu_name;
400 cpu pmu capabilities: branches=32, max_precise=3, pmu_name=icelake
422 char pmu_name[];
446 char pmu_name[];
/linux/arch/x86/events/intel/
H A Duncore.c867 void uncore_get_alias_name(char *pmu_name, struct intel_uncore_pmu *pmu) in uncore_get_alias_name() argument
872 sprintf(pmu_name, "uncore_type_%u", type->type_id); in uncore_get_alias_name()
874 sprintf(pmu_name, "uncore_type_%u_%d", in uncore_get_alias_name()
H A Duncore.h586 void uncore_get_alias_name(char *pmu_name, struct intel_uncore_pmu *pmu);

12