Searched refs:statbuf (Results 1 – 5 of 5) sorted by relevance
/tools/power/cpupower/utils/helpers/ |
D | sysfs.c | 56 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/ |
D | cpuidle.c | 35 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()
|
D | cpupower.c | 55 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/ |
D | cpupower.c | 175 struct stat statbuf; in main() local 206 stat("/dev/cpu/0/msr", &statbuf) != 0) { in main()
|
/tools/perf/util/ |
D | util.c | 100 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()
|