Home | History | Annotate | Download | only in procstatlog

Lines Matching defs:stats

49 // /proc/binder/stats - per line: "/proc/binder/stats:BC_REPLY"
54 // /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
105 struct data *stats, int stats_count) {
143 struct data *data = &stats[num++];
160 static int read_proc_yaffs(struct data *stats, int stats_count) {
193 struct data *data = &stats[num++];
285 struct data *stats = malloc((stats_count + 1) * sizeof(struct data));
286 struct data *next = stats;
295 struct data *end = stats + stats_count;
296 next += read_proc_yaffs(next, stats + stats_count - next);
299 next += read_lines("/proc/binder/stats", ':', "\nproc ", 0, next, end - next);
302 "/sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state",
305 assert(next < stats + stats_count);
308 qsort(stats, next - stats, sizeof(struct data), compare_data);
309 return stats;
312 // Print stats which have changed from one sorted array to the next.
354 static void free_stats(struct data *stats) {
356 for (i = 0; stats[i].name != NULL; ++i) {
357 free(stats[i].name);
358 free(stats[i].value);
360 free(stats);