Lines Matching refs:dent
174 struct dirent *dent; in copy_event_system() local
188 while ((dent = readdir(dir))) { in copy_event_system()
189 if (dent->d_type != DT_DIR || in copy_event_system()
190 strcmp(dent->d_name, ".") == 0 || in copy_event_system()
191 strcmp(dent->d_name, "..") == 0 || in copy_event_system()
192 !name_in_tp_list(dent->d_name, tps)) in copy_event_system()
194 format = malloc(strlen(sys) + strlen(dent->d_name) + 10); in copy_event_system()
199 sprintf(format, "%s/%s/format", sys, dent->d_name); in copy_event_system()
214 while ((dent = readdir(dir))) { in copy_event_system()
215 if (dent->d_type != DT_DIR || in copy_event_system()
216 strcmp(dent->d_name, ".") == 0 || in copy_event_system()
217 strcmp(dent->d_name, "..") == 0 || in copy_event_system()
218 !name_in_tp_list(dent->d_name, tps)) in copy_event_system()
220 format = malloc(strlen(sys) + strlen(dent->d_name) + 10); in copy_event_system()
225 sprintf(format, "%s/%s/format", sys, dent->d_name); in copy_event_system()
274 struct dirent *dent; in record_event_files() local
296 while ((dent = readdir(dir))) { in record_event_files()
297 if (dent->d_type != DT_DIR || in record_event_files()
298 strcmp(dent->d_name, ".") == 0 || in record_event_files()
299 strcmp(dent->d_name, "..") == 0 || in record_event_files()
300 strcmp(dent->d_name, "ftrace") == 0 || in record_event_files()
301 !system_in_tp_list(dent->d_name, tps)) in record_event_files()
313 while ((dent = readdir(dir))) { in record_event_files()
314 if (dent->d_type != DT_DIR || in record_event_files()
315 strcmp(dent->d_name, ".") == 0 || in record_event_files()
316 strcmp(dent->d_name, "..") == 0 || in record_event_files()
317 strcmp(dent->d_name, "ftrace") == 0 || in record_event_files()
318 !system_in_tp_list(dent->d_name, tps)) in record_event_files()
320 sys = malloc(strlen(path) + strlen(dent->d_name) + 2); in record_event_files()
325 sprintf(sys, "%s/%s", path, dent->d_name); in record_event_files()
328 ssize_t size = strlen(dent->d_name) + 1; in record_event_files()
330 if (write(output_fd, dent->d_name, size) != size || in record_event_files()