Searched refs:proc_stat_fd (Results 1 – 2 of 2) sorted by relevance
52 static int proc_stat_fd = -1; variable63 proc_stat_fd, in cpu_util_init()67 if (proc_stat_fd < 0) { in cpu_util_init()68 proc_stat_fd = open (PROC_STAT_FILE_NAME, O_RDONLY, NULL); in cpu_util_init()69 if (proc_stat_fd < 0) { in cpu_util_init()98 close(proc_stat_fd); in cpu_util_terminate()99 proc_stat_fd = -1; in cpu_util_terminate()114 if (proc_stat_fd < 0) { in calibrate_idle_rate()115 proc_stat_fd = open (PROC_STAT_FILE_NAME, O_RDONLY, NULL); in calibrate_idle_rate()116 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()