Home
last modified time | relevance | path

Searched refs:S_ISDIR (Results 1 – 20 of 20) sorted by relevance

/tools/perf/util/
A Dpath.c68 return S_ISDIR(st.st_mode); in is_directory()
78 return S_ISDIR(st.st_mode); in is_directory_at()
A Dutil.c199 if (S_ISDIR(statbuf.st_mode)) in rm_rf_depth_pat()
A Ds390-cpumsf.c1107 if (rc == -1 || !S_ISDIR(stbuf.st_mode)) { in s390_cpumsf__config()
/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/lib/api/
A Dio_dir.h97 if (S_ISDIR(st.st_mode)) { in io_dir__is_dir()
/tools/perf/trace/beauty/include/uapi/linux/
A Dstat.h23 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
/tools/include/uapi/linux/
A Dstat.h23 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) macro
/tools/include/nolibc/
A Dtypes.h39 #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR) macro
/tools/perf/tests/
A Dtests-scripts.c256 if (!S_ISDIR(st.st_mode)) in append_scripts_in_dir()
/tools/testing/selftests/alsa/
A Dconf.c166 if (S_ISDIR(sb.st_mode)) in sysfs_get()
/tools/mm/
A Dpage-types.c1091 } else if (S_ISDIR(st.st_mode)) { in walk_page_cache()
1120 if (!S_ISDIR(st.st_mode)) in parse_cgroup()
/tools/testing/selftests/bpf/progs/
A Dprofiler.inc.h35 #define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR) macro
771 if (S_ISDIR(mode) || S_ISCHR(mode) || S_ISBLK(mode) || S_ISFIFO(mode) || in kprobe_ret__do_filp_open()
/tools/iio/
A Diio_generic_buffer.c626 if (!S_ISDIR(st.st_mode)) { in main()
/tools/testing/selftests/mm/
A Dkhugepaged.c138 if (!S_ISDIR(path_stat.st_mode)) { in get_finfo()
/tools/power/x86/turbostat/
A Dturbostat.c9692 if (!S_ISDIR(st.st_mode)) in pmt_mmio_open()

Completed in 46 milliseconds