Home
last modified time | relevance | path

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

12

/tools/perf/util/
A Dpath.c55 return S_ISREG(st.st_mode); in is_regular_file()
68 return S_ISDIR(st.st_mode); in is_directory()
78 return S_ISDIR(st.st_mode); in is_directory_at()
A Ddata.c123 if (!S_ISREG(st.st_mode) || strncmp(dent->d_name, "data.", 5)) in perf_data__open_dir()
169 if (!fstat(fd, &st) && S_ISFIFO(st.st_mode)) in check_pipe()
241 return (st.st_mode & S_IFMT) == S_IFDIR; in is_dir()
A Dutil.c171 if (!(statbuf.st_mode & S_IFDIR)) in rm_rf_depth_pat()
199 if (S_ISDIR(statbuf.st_mode)) in rm_rf_depth_pat()
/tools/testing/selftests/ublk/
A Dcommon.c40 if (S_ISREG(st.st_mode)) in backing_file_tgt_init()
42 else if (S_ISBLK(st.st_mode)) { in backing_file_tgt_init()
/tools/testing/selftests/drivers/sdsi/
A Dsdsi_test.py67 mode = os.stat(folder + "guid").st_mode & 0o777
69 mode = os.stat(folder + "registers").st_mode & 0o777
71 mode = os.stat(folder + "provision_akc").st_mode & 0o777
73 mode = os.stat(folder + "provision_cap").st_mode & 0o777
75 mode = os.stat(folder + "state_certificate").st_mode & 0o777
/tools/testing/selftests/memfd/
A 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/
A 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/
A Dcpuidle.c300 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count()
304 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count()
307 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in cpuidle_state_count()
A Dpowercap.c99 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) { in powercap_get_driver()
224 if (stat(dent->d_name, &st) != 0 || !S_ISDIR(st.st_mode)) in powercap_read_zone()
/tools/power/cpupower/utils/helpers/
A 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/
A 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/testing/selftests/powerpc/papr_attributes/
A Dattr_test.c71 FAIL_IF(!S_ISDIR(s.st_mode)); in verify_energy_info()
/tools/testing/selftests/fchmodat2/
A Dfchmodat2_test.c55 return (st.st_mode == expect_mode); in expect_mode()
/tools/lib/api/
A Dio_dir.h97 if (S_ISDIR(st.st_mode)) { in io_dir__is_dir()
/tools/perf/tests/
A Dtests-scripts.c53 if (lstat(path2, &st) == 0 && (st.st_mode & S_IFMT) == S_IFLNK) { in shell_tests__dir_fd()
256 if (!S_ISDIR(st.st_mode)) in append_scripts_in_dir()
/tools/include/nolibc/sys/
A Dstat.h56 buf->st_mode = statx.stx_mode; in fstatat()
/tools/testing/selftests/alsa/
A Dconf.c153 if (S_ISLNK(sb.st_mode)) { in sysfs_get()
166 if (S_ISDIR(sb.st_mode)) in sysfs_get()
168 if ((sb.st_mode & S_IRUSR) == 0) in sysfs_get()
/tools/testing/selftests/proc/
A Dfd-001-lookup.c41 assert(S_ISLNK(st.st_mode)); in test_lookup_pass()
/tools/lib/subcmd/
A Dhelp.c167 !S_ISREG(st.st_mode)) in is_executable()
170 return st.st_mode & S_IXUSR; in is_executable()
/tools/include/nolibc/
A Dtypes.h175 mode_t st_mode; /* protection */ member
/tools/perf/
A Dperf.c360 if (S_ISFIFO(st.st_mode) || S_ISSOCK(st.st_mode)) in run_builtin()
/tools/usb/usbip/src/
A Dusbip_attach.c55 if (!(s.st_mode & S_IFDIR)) in record_connection()
/tools/mm/
A Dpage-types.c1068 if (S_ISREG(st->st_mode)) in walk_tree()
1089 if (S_ISREG(st.st_mode)) { in walk_page_cache()
1091 } else if (S_ISDIR(st.st_mode)) { in walk_page_cache()
1120 if (!S_ISDIR(st.st_mode)) in parse_cgroup()
/tools/thermal/tmon/
A Dtmon.c153 if (S_ISLNK(logstat.st_mode)) { in prepare_logging()
/tools/objtool/
A Dbuiltin-check.c212 if (fchmod(dst_fd, stat.st_mode) == -1) { in copy_file()

Completed in 34 milliseconds

12