Lines Matching refs:dirfd

184 int perf_pmu__format_parse(struct perf_pmu *pmu, int dirfd, bool eager_load)  in perf_pmu__format_parse()  argument
190 format_dir = fdopendir(dirfd); in perf_pmu__format_parse()
209 int fd = openat(dirfd, name, O_RDONLY); in perf_pmu__format_parse()
234 static int pmu_format(struct perf_pmu *pmu, int dirfd, const char *name) in pmu_format() argument
238 fd = perf_pmu__pathname_fd(dirfd, name, "format", O_DIRECTORY); in pmu_format()
687 static struct perf_cpu_map *pmu_cpumask(int dirfd, const char *name, bool is_core) in pmu_cpumask() argument
702 file = perf_pmu__open_file_at(&pmu, dirfd, *template); in pmu_cpumask()
715 static bool pmu_is_uncore(int dirfd, const char *name) in pmu_is_uncore() argument
719 fd = perf_pmu__pathname_fd(dirfd, name, "cpumask", O_PATH); in pmu_is_uncore()
956 static int pmu_max_precise(int dirfd, struct perf_pmu *pmu) in pmu_max_precise() argument
960 perf_pmu__scan_file_at(pmu, dirfd, "caps/max_precise", "%d", &max_precise); in pmu_max_precise()
964 struct perf_pmu *perf_pmu__lookup(struct list_head *pmus, int dirfd, const char *lookup_name) in perf_pmu__lookup() argument
983 if (perf_pmu__scan_file_at(pmu, dirfd, "type", "%u", &type) != 1) in perf_pmu__lookup()
995 if (pmu_format(pmu, dirfd, name)) { in perf_pmu__lookup()
1000 pmu->cpus = pmu_cpumask(dirfd, name, pmu->is_core); in perf_pmu__lookup()
1010 pmu->is_uncore = pmu_is_uncore(dirfd, name); in perf_pmu__lookup()
1013 pmu->max_precise = pmu_max_precise(dirfd, pmu); in perf_pmu__lookup()
1763 FILE *perf_pmu__open_file_at(struct perf_pmu *pmu, int dirfd, const char *name) in perf_pmu__open_file_at() argument
1767 fd = perf_pmu__pathname_fd(dirfd, pmu->name, name, O_RDONLY); in perf_pmu__open_file_at()
1791 int perf_pmu__scan_file_at(struct perf_pmu *pmu, int dirfd, const char *name, in perf_pmu__scan_file_at() argument
1799 file = perf_pmu__open_file_at(pmu, dirfd, name); in perf_pmu__scan_file_at()
1884 caps_fd = dirfd(caps_dir); in perf_pmu__caps_parse()
2030 int perf_pmu__pathname_fd(int dirfd, const char *pmu_name, const char *filename, int flags) in perf_pmu__pathname_fd() argument
2035 return openat(dirfd, path, flags); in perf_pmu__pathname_fd()