Searched refs:proc_stat_fd (Results 1 – 2 of 2) sorted by relevance
70 static int proc_stat_fd = -1; variable81 proc_stat_fd, in cpu_util_init()85 if (proc_stat_fd < 0) { in cpu_util_init()86 proc_stat_fd = open (PROC_STAT_FILE_NAME, O_RDONLY, NULL); in cpu_util_init()87 if (proc_stat_fd < 0) { in cpu_util_init()116 close(proc_stat_fd); in cpu_util_terminate()117 proc_stat_fd = -1; in cpu_util_terminate()132 if (proc_stat_fd < 0) { in calibrate_idle_rate()133 proc_stat_fd = open (PROC_STAT_FILE_NAME, O_RDONLY, NULL); in calibrate_idle_rate()134 if (proc_stat_fd < 0) { in calibrate_idle_rate()[all …]
160 int proc_stat_fd = xcreate("proc_stat.log", in start_logging() local192 dump_data_in_file("/proc/stat", proc_stat_fd); in start_logging()202 xclose(proc_stat_fd); in start_logging()