Searched refs:dent (Results 1 – 8 of 8) sorted by relevance
/tools/perf/util/ |
D | trace-event-info.c | 175 struct dirent *dent; in copy_event_system() local 189 while ((dent = readdir(dir))) { in copy_event_system() 190 if (dent->d_type != DT_DIR || in copy_event_system() 191 strcmp(dent->d_name, ".") == 0 || in copy_event_system() 192 strcmp(dent->d_name, "..") == 0 || in copy_event_system() 193 !name_in_tp_list(dent->d_name, tps)) in copy_event_system() 195 if (asprintf(&format, "%s/%s/format", sys, dent->d_name) < 0) { in copy_event_system() 213 while ((dent = readdir(dir))) { in copy_event_system() 214 if (dent->d_type != DT_DIR || in copy_event_system() 215 strcmp(dent->d_name, ".") == 0 || in copy_event_system() [all …]
|
D | pmu.c | 427 struct dirent *dent; in pmu_read_sysfs() local 440 while ((dent = readdir(dir))) { in pmu_read_sysfs() 441 if (!strcmp(dent->d_name, ".") || !strcmp(dent->d_name, "..")) in pmu_read_sysfs() 444 perf_pmu__find(dent->d_name); in pmu_read_sysfs()
|
D | machine.c | 1005 struct dirent *dent; in map_groups__set_modules_path_dir() local 1014 while ((dent = readdir(dir)) != NULL) { in map_groups__set_modules_path_dir() 1019 snprintf(path, sizeof(path), "%s/%s", dir_name, dent->d_name); in map_groups__set_modules_path_dir() 1024 if (!strcmp(dent->d_name, ".") || in map_groups__set_modules_path_dir() 1025 !strcmp(dent->d_name, "..")) in map_groups__set_modules_path_dir() 1030 if (!strcmp(dent->d_name, "source") || in map_groups__set_modules_path_dir() 1031 !strcmp(dent->d_name, "build")) in map_groups__set_modules_path_dir() 1042 ret = kmod_path__parse_name(&m, dent->d_name); in map_groups__set_modules_path_dir()
|
/tools/perf/ |
D | builtin-buildid-cache.c | 73 struct dirent *dent; in build_id_cache__kcore_existing() local 84 dent = readdir(d); in build_id_cache__kcore_existing() 85 if (!dent) in build_id_cache__kcore_existing() 87 if (dent->d_type != DT_DIR) in build_id_cache__kcore_existing() 90 dent->d_name); in build_id_cache__kcore_existing() 92 to_dir, dent->d_name); in build_id_cache__kcore_existing()
|
D | builtin-script.c | 1514 static int is_directory(const char *base_path, const struct dirent *dent) in is_directory() argument 1519 sprintf(path, "%s/%s", base_path, dent->d_name); in is_directory()
|
/tools/perf/tests/ |
D | dso-data.c | 177 struct dirent *dent; in open_files_cnt() local 187 while ((dent = readdir(dir)) != NULL) { in open_files_cnt() 188 if (!strcmp(dent->d_name, ".") || in open_files_cnt() 189 !strcmp(dent->d_name, "..")) in open_files_cnt()
|
/tools/lib/traceevent/ |
D | event-plugin.c | 350 struct dirent *dent; in load_plugins_dir() local 366 while ((dent = readdir(dir))) { in load_plugins_dir() 367 const char *name = dent->d_name; in load_plugins_dir()
|
/tools/perf/ui/browsers/ |
D | hists.c | 2260 struct dirent *dent; in switch_data_file() local 2273 while ((dent = readdir(pwd_dir))) { in switch_data_file() 2276 char *name = dent->d_name; in switch_data_file() 2279 if (!(dent->d_type == DT_REG)) in switch_data_file()
|