Home
last modified time | relevance | path

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

/external/netperf/src/
Dnetcpu_procstat.c70 static int proc_stat_fd = -1; variable
81 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 …]
/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()