Lines Matching refs:pmu_name

76 	char *pmu_name;  member
380 static bool perf_pmu__parse_event_source_bool(const char *pmu_name, const char *event_name, in perf_pmu__parse_event_source_bool() argument
391 scnprintf(path + len, sizeof(path) - len, "%s/events/%s.%s", pmu_name, event_name, suffix); in perf_pmu__parse_event_source_bool()
431 zfree(&alias->pmu_name); in perf_pmu_free_alias()
571 const char *long_desc = NULL, *topic = NULL, *unit = NULL, *pmu_name = NULL; in perf_pmu__new_alias() local
586 pmu_name = pe->pmu; in perf_pmu__new_alias()
629 alias->pmu_name = pmu_name ? strdup(pmu_name) : NULL; in perf_pmu__new_alias()
800 static struct perf_cpu_map *pmu_cpumask(int dirfd, const char *pmu_name, bool is_core) in pmu_cpumask() argument
817 io.fd = perf_pmu__pathname_fd(dirfd, pmu_name, *template, O_RDONLY); in pmu_cpumask()
904 static bool perf_pmu__match_wildcard(const char *pmu_name, const char *tok) in perf_pmu__match_wildcard() argument
911 if (strncmp(pmu_name, tok, tok_len)) in perf_pmu__match_wildcard()
914 suffix = p = pmu_name + tok_len; in perf_pmu__match_wildcard()
947 static bool perf_pmu__match_ignoring_suffix_uncore(const char *pmu_name, const char *tok) in perf_pmu__match_ignoring_suffix_uncore() argument
952 if (pmu_name == NULL) in perf_pmu__match_ignoring_suffix_uncore()
956 if (!strncmp(pmu_name, "uncore_", 7)) in perf_pmu__match_ignoring_suffix_uncore()
957 pmu_name += 7; in perf_pmu__match_ignoring_suffix_uncore()
961 pmu_name_len = pmu_name_len_no_suffix(pmu_name); in perf_pmu__match_ignoring_suffix_uncore()
966 return strncmp(pmu_name, tok, pmu_name_len) == 0; in perf_pmu__match_ignoring_suffix_uncore()
977 static bool perf_pmu__match_wildcard_uncore(const char *pmu_name, const char *to_match) in perf_pmu__match_wildcard_uncore() argument
981 if (!pmu_name) in perf_pmu__match_wildcard_uncore()
985 if (!strncmp(pmu_name, "uncore_", 7)) in perf_pmu__match_wildcard_uncore()
986 pmu_name += 7; in perf_pmu__match_wildcard_uncore()
991 return perf_pmu__match_wildcard(pmu_name, to_match); in perf_pmu__match_wildcard_uncore()
1002 if (strncmp(pmu_name, tok, tok_len)) { in perf_pmu__match_wildcard_uncore()
1008 pmu_name += tok_len; in perf_pmu__match_wildcard_uncore()
1009 while (*pmu_name != '\0' && isdigit(*pmu_name)) in perf_pmu__match_wildcard_uncore()
1010 pmu_name++; in perf_pmu__match_wildcard_uncore()
1011 if (*pmu_name == '_') in perf_pmu__match_wildcard_uncore()
1012 pmu_name++; in perf_pmu__match_wildcard_uncore()
1017 return *pmu_name == '\0'; in perf_pmu__match_wildcard_uncore()
1185 static __u32 wellknown_pmu_type(const char *pmu_name) in wellknown_pmu_type() argument
1188 const char *pmu_name; in wellknown_pmu_type() member
1205 if (!strcmp(wellknown_pmus[i].pmu_name, pmu_name)) in wellknown_pmu_type()
2093 info.pmu_name = event->pmu_name ?: pmu->name; in perf_pmu__for_each_event()
2094 pmu_name_len = pmu_deduped_name_len(pmu, info.pmu_name, in perf_pmu__for_each_event()
2120 "%.*s/%s/", (int)pmu_name_len, info.pmu_name, sb.buf) + 1; in perf_pmu__for_each_event()
2138 info.pmu_name = pmu->name; in perf_pmu__for_each_event()
2491 const char *pmu_name = names[i]; in perf_pmu__wildcard_match() local
2493 if (!pmu_name) in perf_pmu__wildcard_match()
2496 if (!strncmp(pmu_name, "uncore_", 7)) in perf_pmu__wildcard_match()
2497 pmu_name += 7; in perf_pmu__wildcard_match()
2499 if (perf_pmu__match_wildcard(pmu_name, wildcard_to_match) || in perf_pmu__wildcard_match()
2500 (need_fnmatch && !fnmatch(wildcard_to_match, pmu_name, 0))) in perf_pmu__wildcard_match()
2537 const char *pmu_name, const char *filename) in perf_pmu__pathname_scnprintf() argument
2542 if (!len || (len + strlen(pmu_name) + strlen(filename) + 1) >= size) in perf_pmu__pathname_scnprintf()
2545 return scnprintf(buf + len, size - len, "%s/%s", pmu_name, filename); in perf_pmu__pathname_scnprintf()
2548 int perf_pmu__pathname_fd(int dirfd, const char *pmu_name, const char *filename, int flags) in perf_pmu__pathname_fd() argument
2552 scnprintf(path, sizeof(path), "%s/%s", pmu_name, filename); in perf_pmu__pathname_fd()