Home
last modified time | relevance | path

Searched refs:dent (Results 1 – 8 of 8) sorted by relevance

/tools/perf/util/
Dtrace-event-info.c175 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 …]
Dpmu.c427 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()
Dmachine.c1005 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/
Dbuiltin-buildid-cache.c73 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()
Dbuiltin-script.c1514 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/
Ddso-data.c177 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/
Devent-plugin.c350 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/
Dhists.c2260 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()