Searched refs:fopen_or_die (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/tools/power/x86/x86_energy_perf_policy/ |
H A D | x86_energy_perf_policy.c | 631 FILE *fopen_or_die(const char *path, const char *mode) in fopen_or_die() function 647 cpuinfo = fopen_or_die("/proc/cpuinfo", "ro"); in err_on_hypervisor() 1240 fp = fopen_or_die(pathname, "r"); in get_pkg_num() 1286 fp = fopen_or_die(proc_stat, "r"); in for_all_proc_cpus()
|
/openbmc/linux/tools/power/x86/turbostat/ |
H A D | turbostat.c | 1918 FILE *fopen_or_die(const char *path, const char *mode) in fopen_or_die() function 1938 fp = fopen_or_die(path, "r"); in snapshot_sysfs_counter() 3036 fp = fopen_or_die(proc_stat, "r"); in for_all_proc_cpus() 3076 filep = fopen_or_die(pathname, "r"); in set_max_cpu_num() 3121 fp = fopen_or_die("/proc/interrupts", "r"); in snapshot_proc_interrupts() 3184 fp = fopen_or_die("/sys/class/drm/card0/power/rc6_residency_ms", "r"); in snapshot_gfx_rc6_ms() 3209 fp = fopen_or_die("/sys/class/graphics/fb0/device/drm/card0/gt_cur_freq_mhz", "r"); in snapshot_gfx_mhz() 3236 fp = fopen_or_die("/sys/class/graphics/fb0/device/drm/card0/gt_act_freq_mhz", "r"); in snapshot_gfx_act_mhz() 3260 fp = fopen_or_die("/sys/devices/system/cpu/cpuidle/low_power_idle_cpu_residency_us", "r"); in snapshot_cpu_lpi_us() 3285 fp = fopen_or_die(sys_lpi_file, "r"); in snapshot_sys_lpi_us() [all …]
|