Lines Matching refs:pmu_name

71 	char *pmu_name;  member
366 static bool perf_pmu__parse_event_source_bool(const char *pmu_name, const char *event_name, in perf_pmu__parse_event_source_bool() argument
377 scnprintf(path + len, sizeof(path) - len, "%s/events/%s.%s", pmu_name, event_name, suffix); in perf_pmu__parse_event_source_bool()
414 zfree(&newalias->pmu_name); in perf_pmu_free_alias()
535 const char *long_desc = NULL, *topic = NULL, *unit = NULL, *pmu_name = NULL; in perf_pmu__new_alias() local
550 pmu_name = pe->pmu; in perf_pmu__new_alias()
576 alias->pmu_name = pmu_name ? strdup(pmu_name) : NULL; in perf_pmu__new_alias()
758 char pmu_name[PATH_MAX]; in pmu_cpumask() local
759 struct perf_pmu pmu = {.name = pmu_name}; in pmu_cpumask()
762 strlcpy(pmu_name, name, sizeof(pmu_name)); in pmu_cpumask()
869 static bool perf_pmu__match_ignoring_suffix(const char *pmu_name, const char *tok) in perf_pmu__match_ignoring_suffix() argument
874 if (strncmp(pmu_name, tok, strlen(tok))) in perf_pmu__match_ignoring_suffix()
877 suffix = p = pmu_name + strlen(tok); in perf_pmu__match_ignoring_suffix()
909 static bool pmu_uncore_alias_match(const char *pmu_name, const char *name) in pmu_uncore_alias_match() argument
914 if (strchr(pmu_name, ',') == NULL) in pmu_uncore_alias_match()
915 return perf_pmu__match_ignoring_suffix(name, pmu_name); in pmu_uncore_alias_match()
917 str = strdup(pmu_name); in pmu_uncore_alias_match()
925 if (strncmp(pmu_name, tok, strlen(tok))) { in pmu_uncore_alias_match()
1870 info.pmu_name = event->pmu_name ?: pmu->name; in perf_pmu__for_each_event()
1871 pmu_name_len = pmu_deduped_name_len(pmu, info.pmu_name, in perf_pmu__for_each_event()
1897 "%.*s/%s/", (int)pmu_name_len, info.pmu_name, sb.buf) + 1; in perf_pmu__for_each_event()
1915 info.pmu_name = pmu->name; in perf_pmu__for_each_event()
1924 bool pmu__name_match(const struct perf_pmu *pmu, const char *pmu_name) in pmu__name_match() argument
1926 return !strcmp(pmu->name, pmu_name) || in pmu__name_match()
1927 (pmu->is_uncore && pmu_uncore_alias_match(pmu_name, pmu->name)) || in pmu__name_match()
1932 (pmu->is_core && !strcmp(pmu_name, "default_core")); in pmu__name_match()
2239 const char *pmu_name, const char *filename) in perf_pmu__pathname_scnprintf() argument
2244 if (!len || (len + strlen(pmu_name) + strlen(filename) + 1) >= size) in perf_pmu__pathname_scnprintf()
2247 return scnprintf(buf + len, size - len, "%s/%s", pmu_name, filename); in perf_pmu__pathname_scnprintf()
2250 int perf_pmu__pathname_fd(int dirfd, const char *pmu_name, const char *filename, int flags) in perf_pmu__pathname_fd() argument
2254 scnprintf(path, sizeof(path), "%s/%s", pmu_name, filename); in perf_pmu__pathname_fd()