Home
last modified time | relevance | path

Searched refs:st_mode (Results 1 – 25 of 42) sorted by relevance

12

/tools/perf/util/
Dpath.c80 return S_ISREG(st.st_mode); in is_regular_file()
93 return S_ISDIR(st.st_mode); in is_directory()
Dutil.c162 if (!(statbuf.st_mode & S_IFDIR)) in rm_rf_depth_pat()
190 if (S_ISDIR(statbuf.st_mode)) in rm_rf_depth_pat()
Ddata.c106 if (!S_ISREG(st.st_mode) || strncmp(dent->d_name, "data.", 5)) in perf_data__open_dir()
172 if (!fstat(fd, &st) && S_ISFIFO(st.st_mode)) in check_pipe()
239 return (st.st_mode & S_IFMT) == S_IFDIR; in is_dir()
/tools/testing/selftests/memfd/
Dfuse_mnt.c32 st->st_mode = S_IFDIR | 0755; in memfd_getattr()
35 st->st_mode = S_IFREG | 0444; in memfd_getattr()
/tools/power/acpi/os_specific/service_layers/
Dosunixdir.c131 if ((S_ISDIR(temp_stat.st_mode) in acpi_os_get_next_filename()
134 || ((!S_ISDIR(temp_stat.st_mode) in acpi_os_get_next_filename()
/tools/power/cpupower/lib/
Dcpuidle.c292 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count()
296 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count()
299 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in cpuidle_state_count()
/tools/power/cpupower/utils/helpers/
Dsysfs.c362 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count()
366 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count()
369 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in sysfs_get_idlestate_count()
/tools/testing/selftests/ia64/
Daliasing-test.c100 if (r == 0 && S_ISDIR(buf.st_mode)) { in scan_tree()
189 if (r == 0 && S_ISDIR(buf.st_mode)) { in scan_rom()
/tools/io_uring/
Dio_uring-cp.c53 if (S_ISREG(st.st_mode)) { in get_file_size()
56 } else if (S_ISBLK(st.st_mode)) { in get_file_size()
Dio_uring-bench.c228 if (S_ISBLK(st.st_mode)) { in get_file_size()
236 } else if (S_ISREG(st.st_mode)) { in get_file_size()
/tools/include/nolibc/
Dtypes.h120 mode_t st_mode; /* protection */ member
Darch-arm.h34 unsigned short st_mode; member
Darch-i386.h28 unsigned short st_mode; member
Darch-aarch64.h28 unsigned int st_mode; member
Darch-mips.h29 unsigned int st_mode; member
Darch-riscv.h25 unsigned int st_mode; /* File mode. */ member
Darch-x86_64.h29 unsigned int st_mode; member
/tools/lib/subcmd/
Dhelp.c153 !S_ISREG(st.st_mode)) in is_executable()
156 return st.st_mode & S_IXUSR; in is_executable()
/tools/testing/selftests/proc/
Dfd-001-lookup.c41 assert(S_ISLNK(st.st_mode)); in test_lookup_pass()
/tools/perf/
Dperf.c326 if (S_ISFIFO(st.st_mode) || S_ISSOCK(st.st_mode)) in run_builtin()
Dbuiltin-help.c394 || !S_ISREG(st.st_mode)) { in get_html_page_path()
/tools/usb/usbip/src/
Dusbip_attach.c55 if (!(s.st_mode & S_IFDIR)) in record_connection()
/tools/vm/
Dpage-types.c1055 if (S_ISREG(st->st_mode)) in walk_tree()
1076 if (S_ISREG(st.st_mode)) { in walk_page_cache()
1078 } else if (S_ISDIR(st.st_mode)) { in walk_page_cache()
1107 if (!S_ISDIR(st.st_mode)) in parse_cgroup()
/tools/thermal/tmon/
Dtmon.c153 if (S_ISLNK(logstat.st_mode)) { in prepare_logging()
/tools/bpf/
Dbpf_jit_disasm.c140 if (ret < 0 || !S_ISREG(fi.st_mode)) in get_flog_buff()

12