Home
last modified time | relevance | path

Searched refs:statbuf (Results 1 – 13 of 13) sorted by relevance

/tools/testing/selftests/splice/
A Dsplice_read.c32 struct stat statbuf; in main() local
34 if (fstat(fd, &statbuf) < 0) { in main()
39 if (statbuf.st_size > INT_MAX) { in main()
44 size = statbuf.st_size; in main()
/tools/power/cpupower/utils/helpers/
A Dsysfs.c55 struct stat statbuf; in sysfs_is_cpu_online() local
59 if (stat(path, &statbuf) != 0) in sysfs_is_cpu_online()
67 if (stat(path, &statbuf) != 0) in sysfs_is_cpu_online()
108 struct stat statbuf; in sysfs_idlestate_file_exists() local
113 if (stat(path, &statbuf) != 0) in sysfs_idlestate_file_exists()
357 struct stat statbuf; in sysfs_get_idlestate_count() local
362 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/power/cpupower/lib/
A Dcpuidle.c34 struct stat statbuf; in cpuidle_state_file_exists() local
39 if (stat(path, &statbuf) != 0) in cpuidle_state_file_exists()
295 struct stat statbuf; in cpuidle_state_count() local
300 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 Dcpupower.c83 struct stat statbuf; in cpupower_is_cpu_online() local
87 if (stat(path, &statbuf) != 0) in cpupower_is_cpu_online()
95 if (stat(path, &statbuf) != 0) in cpupower_is_cpu_online()
A Dpowercap.c97 struct stat statbuf; in powercap_get_driver() local
99 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) { in powercap_get_driver()
/tools/testing/selftests/bpf/prog_tests/
A Dpinning.c37 struct stat statbuf = {}; in test_pinning() local
66 err = stat(pinpath, &statbuf); in test_pinning()
71 err = stat(nopinpath, &statbuf); in test_pinning()
77 err = stat(nopinpath2, &statbuf); in test_pinning()
152 err = stat(custpinpath, &statbuf); in test_pinning()
197 err = stat(nopinpath2, &statbuf); in test_pinning()
203 err = stat(pinpath, &statbuf); in test_pinning()
221 err = stat(custpinpath, &statbuf); in test_pinning()
266 err = stat(custpinpath, &statbuf); in test_pinning()
A Dlink_pinning.c15 struct stat statbuf = {}; in test_link_pinning_subtest() local
36 err = stat(link_pin_path, &statbuf); in test_link_pinning_subtest()
/tools/perf/util/
A Dutil.c163 struct stat statbuf; in rm_rf_depth_pat() local
166 ret = lstat(path, &statbuf); in rm_rf_depth_pat()
171 if (!(statbuf.st_mode & S_IFDIR)) in rm_rf_depth_pat()
193 ret = lstat(namebuf, &statbuf); in rm_rf_depth_pat()
199 if (S_ISDIR(statbuf.st_mode)) in rm_rf_depth_pat()
/tools/testing/selftests/resctrl/
A Dresctrlfs.c819 struct stat statbuf; in resctrl_resource_exists() local
831 if (stat(res_path, &statbuf)) in resctrl_resource_exists()
877 struct stat statbuf; in resource_info_file_exists() local
885 if (stat(res_path, &statbuf)) in resource_info_file_exists()
971 struct stat statbuf; in snc_kernel_support() local
987 if (!stat(node_path, &statbuf)) in snc_kernel_support()
/tools/power/cpupower/utils/
A Dcpupower.c179 struct stat statbuf; in main() local
220 stat(pathname, &statbuf) != 0) { in main()
/tools/testing/selftests/kvm/lib/
A Dtest_util.c137 struct stat statbuf; in test_sysfs_path() local
140 ret = stat(path, &statbuf); in test_sysfs_path()
/tools/perf/bench/
A Dnuma.c552 struct stat statbuf; in is_cpu_online() local
556 if (stat(buf, &statbuf) != 0) in is_cpu_online()
568 if (stat(buf, &statbuf) != 0) in is_cpu_online()
/tools/testing/selftests/landlock/
A Dfs_test.c2023 struct stat statbuf; in copy_file() local
2035 ASSERT_EQ(0, fstat(src_fd, &statbuf)); in copy_file()
2036 ASSERT_EQ(statbuf.st_size, in copy_file()
2037 sendfile(dst_fd, src_fd, 0, statbuf.st_size)); in copy_file()
5404 struct stat statbuf; in FIXTURE_SETUP() local
5416 if (stat(dir_path, &statbuf)) { in FIXTURE_SETUP()
5428 if (stat(variant->file_path, &statbuf)) { in FIXTURE_SETUP()

Completed in 25 milliseconds