Searched refs:pmu_name (Results 1 - 25 of 33) sorted by relevance

12

/linux-master/tools/perf/arch/x86/util/
H A Devsel.c24 const char *pmu_name = evsel->pmu_name ? evsel->pmu_name : "cpu"; local
35 perf_pmus__have_event(pmu_name, "slots"))
66 evsel->pmu_name ? evsel->pmu_name : "cpu",
111 !(evsel->pmu_name && !strncmp(evsel->pmu_name, "ibs", 3)))
H A Devlist.c47 evsel->pmu_name = strdup(pmu->name);
/linux-master/tools/perf/util/
H A Dcputopo.h50 char *pmu_name; member in struct:hybrid_topology_node
H A Dprint-events.h15 const char *pmu_name,
H A Denv.h43 char *pmu_name; member in struct:hybrid_node
54 char *pmu_name; member in struct:pmu_caps
191 char *perf_env__find_pmu_cap(struct perf_env *env, const char *pmu_name,
194 bool perf_env__has_pmu_mapping(struct perf_env *env, const char *pmu_name);
H A Dpmu.h193 const char *pmu_name; member in struct:pmu_event_info
226 bool pmu__name_match(const struct perf_pmu *pmu, const char *pmu_name);
268 const char *pmu_name, const char *filename);
270 int perf_pmu__pathname_fd(int dirfd, const char *pmu_name, const char *filename, int flags);
H A Dpmu.c60 * @pmu_name: The name copied from the json struct pmu_event. This can
63 char *pmu_name; member in struct:perf_pmu_alias
70 * <sysfs>/bus/event_source/devices/<pmu_name>/events/<name>.per-pkg or
76 * <sysfs>/bus/event_source/devices/<pmu_name>/events/<name>.snapshot
407 zfree(&newalias->pmu_name);
507 const char *long_desc = NULL, *topic = NULL, *unit = NULL, *pmu_name = NULL; local
521 pmu_name = pe->pmu;
547 alias->pmu_name = pmu_name ? strdup(pmu_name)
699 char pmu_name[PATH_MAX]; local
793 perf_pmu__match_ignoring_suffix(const char *pmu_name, const char *tok) argument
825 pmu_uncore_alias_match(const char *pmu_name, const char *name) argument
1752 pmu__name_match(const struct perf_pmu *pmu, const char *pmu_name) argument
2055 perf_pmu__pathname_scnprintf(char *buf, size_t size, const char *pmu_name, const char *filename) argument
2067 perf_pmu__pathname_fd(int dirfd, const char *pmu_name, const char *filename, int flags) argument
[all...]
H A Dpmus.c359 const char *pmu_name; member in struct:sevent
387 ret = strcmp(as->pmu_name ?: "", bs->pmu_name ?: "");
403 return strcmp(a->pmu_name, b->pmu_name) == 0;
432 COPY_STR(pmu_name);
481 aliases[j].pmu_name,
498 zfree(&aliases[j].pmu_name);
H A Denv.c234 zfree(&env->hybrid_nodes[i].pmu_name);
243 zfree(&env->pmu_caps[i].pmu_name);
562 bool perf_env__has_pmu_mapping(struct perf_env *env, const char *pmu_name) argument
571 if (strcmp(pmu_mapping, pmu_name) == 0)
580 char *perf_env__find_pmu_cap(struct perf_env *env, const char *pmu_name, argument
588 if (!pmu_name || !cap)
599 if (!strcmp(pmu_name, "cpu")) {
610 if (strcmp(env->pmu_caps[i].pmu_name, pmu_name))
H A Dcputopo.c444 node->pmu_name = strdup(pmu->name);
445 if (!node->pmu_name)
466 zfree(&node->pmu_name);
501 zfree(&tp->nodes[i].pmu_name);
H A Dstat-shadow.c580 if (!need_full_name || !strcmp(last_pmu, evsel->pmu_name)) {
587 scnprintf(full_name, sizeof(full_name), "%s (%s)", name, evsel->pmu_name);
594 last_pmu = evsel->pmu_name;
H A Dstat-display.c876 !counter->pmu_name || !strncmp(evsel__name(counter), counter->pmu_name,
877 strlen(counter->pmu_name)))
883 "%s%s", counter->pmu_name, config) > 0) {
890 counter->pmu_name, counter->name);
893 counter->name, counter->pmu_name);
H A Dstat.c556 return !!strcmp(evsel_a->pmu_name, evsel_b->pmu_name);
H A Devsel.c295 evsel->pmu_name = NULL;
392 if (orig->pmu_name) {
393 evsel->pmu_name = strdup(orig->pmu_name);
394 if (evsel->pmu_name == NULL)
1481 zfree(&evsel->pmu_name);
H A Dheader.c959 ret = do_write_string(ff, n->pmu_name);
1819 fprintf(fp, "# %s cpu list : %s\n", n->pmu_name, n->cpus);
2116 static void __print_pmu_caps(FILE *fp, int nr_caps, char **caps, char *pmu_name) argument
2122 fprintf(fp, "# %s pmu capabilities: not available\n", pmu_name);
2126 fprintf(fp, "# %s pmu capabilities: ", pmu_name);
2148 pmu_caps->pmu_name);
3095 n->pmu_name = do_read_string(ff);
3096 if (!n->pmu_name)
3110 free(nodes[i].pmu_name);
3376 pmu_caps[i].pmu_name
[all...]
/linux-master/tools/perf/tests/
H A Dpmu-events.c367 char const *pmu_name)
374 pmu_name, alias->name, event->name);
380 pmu_name, alias->desc, event->desc);
386 pmu_name, alias->long_desc,
393 pmu_name, alias->topic, event->topic);
399 pmu_name, alias->str, test_event->alias_str);
405 pmu_name, alias->str, test_event->alias_long_desc);
409 if (!is_same(alias->pmu_name, test_event->event.pmu) &&
410 !is_same(alias->pmu_name, "default_core")) {
411 pr_debug("testing aliases PMU %s: mismatched pmu_name,
365 compare_alias_to_test_event(struct pmu_event_info *alias, struct perf_pmu_test_event const *test_event, char const *pmu_name) argument
540 __test_core_pmu_event_aliases(const char *pmu_name, int *count) argument
598 const char *pmu_name = pmu->name; local
[all...]
/linux-master/tools/testing/selftests/powerpc/pmu/sampling_tests/
H A Dmisc.c508 * First check for presence of pmu_name from
515 char pmu_name[256]; local
517 memset(pmu_name, 0, sizeof(pmu_name));
518 if (read_sysfs_file("bus/event_source/devices/cpu/caps/pmu_name",
519 pmu_name, sizeof(pmu_name)) < 0)
522 if (!strcmp(pmu_name, "ISAv3"))
/linux-master/tools/perf/
H A Dbuiltin-list.c102 static void default_print_event(void *ps, const char *pmu_name, const char *topic, argument
116 if (print_state->pmu_glob && pmu_name && !strglobmatch(pmu_name, print_state->pmu_glob))
156 if (pmu_name && strcmp(pmu_name, "default_core")) {
161 desc, pmu_name);
343 static void json_print_event(void *ps, const char *pmu_name, const char *topic, argument
358 if (pmu_name) {
359 fix_escape_fprintf(fp, &buf, "\t\"Unit\": \"%S\"", pmu_name);
/linux-master/arch/x86/xen/
H A Dsmp_pv.c119 char *callfunc_name, *pmu_name; local
134 pmu_name = kasprintf(GFP_KERNEL, "pmu%d", cpu);
135 per_cpu(xen_pmu_irq, cpu).name = pmu_name;
139 pmu_name, NULL);
/linux-master/arch/sparc/kernel/
H A Dcpu.c37 const char *pmu_name; member in struct:cpu_info
58 { .psr_vers = ver, .name = _name, .pmu_name = _pmu_name }
290 sparc_pmu_type = cpu->pmu_name;
/linux-master/tools/perf/pmu-events/
H A Djevents.py510 pmu_name = event.pmu.replace(',', '_')
512 f'static const struct compact_pmu_event {_pending_events_tblname}_{pmu_name}[] = {{\n')
515 pmus.add((event.pmu, pmu_name))
526 pmu_name = f"{pmu}\\000"
530 .pmu_name = {{ {_bcs.offsets[pmu_name]} /* {pmu_name} */ }},
565 pmu_name = metric.pmu.replace(',', '_')
567 f'static const struct compact_pmu_event {_pending_metrics_tblname}_{pmu_name}[] = {{\n')
570 pmus.add((metric.pmu, pmu_name))
[all...]
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_pmu.c491 char pmu_name[PMU_NAME_SIZE]; local
545 snprintf(pmu_name, PMU_NAME_SIZE, "%s_%d", pmu_entry->pmu_file_prefix,
548 ret = perf_pmu_register(&pmu_entry->pmu, pmu_name, -1);
/linux-master/drivers/hwtracing/ptt/
H A Dhisi_ptt.c1204 char *pmu_name; local
1241 pmu_name = devm_kasprintf(&hisi_ptt->pdev->dev, GFP_KERNEL, "hisi_ptt%u_%u",
1243 if (!pmu_name)
1246 ret = perf_pmu_register(&hisi_ptt->hisi_ptt_pmu, pmu_name, -1);
/linux-master/arch/x86/events/intel/
H A Duncore.c866 void uncore_get_alias_name(char *pmu_name, struct intel_uncore_pmu *pmu) argument
871 sprintf(pmu_name, "uncore_type_%u", type->type_id);
873 sprintf(pmu_name, "uncore_type_%u_%d",
H A Duncore.h583 void uncore_get_alias_name(char *pmu_name, struct intel_uncore_pmu *pmu);

Completed in 410 milliseconds

12