Home
last modified time | relevance | path

Searched refs:proc_stat_fd (Results 1 – 2 of 2) sorted by relevance

/external/netperf/
Dnetcpu_procstat.c52 static int proc_stat_fd = -1; variable
63 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 …]
/external/toybox/toys/pending/
Dbootchartd.c160 int proc_stat_fd = xcreate("proc_stat.log", in start_logging() local
192 dump_data_in_file("/proc/stat", proc_stat_fd); in start_logging()
202 xclose(proc_stat_fd); in start_logging()