Home
last modified time | relevance | path

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

/tools/power/cpupower/utils/helpers/
Dsysfs.c56 struct stat statbuf; in sysfs_is_cpu_online() local
60 if (stat(path, &statbuf) != 0) in sysfs_is_cpu_online()
68 if (stat(path, &statbuf) != 0) in sysfs_is_cpu_online()
109 struct stat statbuf; in sysfs_idlestate_file_exists() local
114 if (stat(path, &statbuf) != 0) in sysfs_idlestate_file_exists()
358 struct stat statbuf; in sysfs_get_idlestate_count() local
363 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count()
367 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in sysfs_get_idlestate_count()
370 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in sysfs_get_idlestate_count()
/tools/power/cpupower/lib/
Dcpuidle.c35 struct stat statbuf; in cpuidle_state_file_exists() local
40 if (stat(path, &statbuf) != 0) in cpuidle_state_file_exists()
288 struct stat statbuf; in cpuidle_state_count() local
293 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count()
297 if (stat(file, &statbuf) != 0 || !S_ISDIR(statbuf.st_mode)) in cpuidle_state_count()
300 while (stat(file, &statbuf) == 0 && S_ISDIR(statbuf.st_mode)) { in cpuidle_state_count()
Dcpupower.c55 struct stat statbuf; in cpupower_is_cpu_online() local
59 if (stat(path, &statbuf) != 0) in cpupower_is_cpu_online()
67 if (stat(path, &statbuf) != 0) in cpupower_is_cpu_online()
/tools/power/cpupower/utils/
Dcpupower.c175 struct stat statbuf; in main() local
206 stat("/dev/cpu/0/msr", &statbuf) != 0) { in main()
/tools/perf/util/
Dutil.c100 struct stat statbuf; in rm_rf() local
109 ret = lstat(namebuf, &statbuf); in rm_rf()
115 if (S_ISDIR(statbuf.st_mode)) in rm_rf()