Lines Matching refs:dirfd

193 static int perf_pmu__format_parse(struct perf_pmu *pmu, int dirfd, bool eager_load)  in perf_pmu__format_parse()  argument
199 format_dir = fdopendir(dirfd); in perf_pmu__format_parse()
218 int fd = openat(dirfd, name, O_RDONLY); in perf_pmu__format_parse()
243 static int pmu_format(struct perf_pmu *pmu, int dirfd, const char *name, bool eager_load) in pmu_format() argument
247 fd = perf_pmu__pathname_fd(dirfd, name, "format", O_DIRECTORY); in pmu_format()
749 static struct perf_cpu_map *pmu_cpumask(int dirfd, const char *name, bool is_core) in pmu_cpumask() argument
764 file = perf_pmu__open_file_at(&pmu, dirfd, *template); in pmu_cpumask()
777 static bool pmu_is_uncore(int dirfd, const char *name) in pmu_is_uncore() argument
781 fd = perf_pmu__pathname_fd(dirfd, name, "cpumask", O_PATH); in pmu_is_uncore()
1044 static char *pmu_find_alias_name(struct perf_pmu *pmu, int dirfd) in pmu_find_alias_name() argument
1046 FILE *file = perf_pmu__open_file_at(pmu, dirfd, "alias"); in pmu_find_alias_name()
1067 static int pmu_max_precise(int dirfd, struct perf_pmu *pmu) in pmu_max_precise() argument
1071 perf_pmu__scan_file_at(pmu, dirfd, "caps/max_precise", "%d", &max_precise); in pmu_max_precise()
1082 struct perf_pmu *perf_pmu__lookup(struct list_head *pmus, int dirfd, const char *name, in perf_pmu__lookup() argument
1100 if (perf_pmu__scan_file_at(pmu, dirfd, "type", "%u", &type) != 1) in perf_pmu__lookup()
1112 if (pmu_format(pmu, dirfd, name, eager_load)) in perf_pmu__lookup()
1116 pmu->cpus = pmu_cpumask(dirfd, name, pmu->is_core); in perf_pmu__lookup()
1119 pmu->is_uncore = pmu_is_uncore(dirfd, name); in perf_pmu__lookup()
1122 pmu->max_precise = pmu_max_precise(dirfd, pmu); in perf_pmu__lookup()
1123 pmu->alias_name = pmu_find_alias_name(pmu, dirfd); in perf_pmu__lookup()
1137 pmu_aliases_parse_eager(pmu, dirfd); in perf_pmu__lookup()
1972 FILE *perf_pmu__open_file_at(const struct perf_pmu *pmu, int dirfd, const char *name) in perf_pmu__open_file_at() argument
1976 fd = perf_pmu__pathname_fd(dirfd, pmu->name, name, O_RDONLY); in perf_pmu__open_file_at()
2000 int perf_pmu__scan_file_at(const struct perf_pmu *pmu, int dirfd, const char *name, in perf_pmu__scan_file_at() argument
2008 file = perf_pmu__open_file_at(pmu, dirfd, name); in perf_pmu__scan_file_at()
2093 caps_fd = dirfd(caps_dir); in perf_pmu__caps_parse()
2250 int perf_pmu__pathname_fd(int dirfd, const char *pmu_name, const char *filename, int flags) in perf_pmu__pathname_fd() argument
2255 return openat(dirfd, path, flags); in perf_pmu__pathname_fd()