Lines Matching refs:cpu_count
53 static int cpu_count, delay, iterations; variable
107 cpu_count = get_cpu_count(); in main()
108 if (cpu_count < 1) die("Unexpected cpu count\n"); in main()
110 old_cpus = malloc(sizeof(struct cpu_info) * cpu_count); in main()
112 new_cpus = malloc(sizeof(struct cpu_info) * cpu_count); in main()
115 for (i = 0; i < cpu_count; i++) { in main()
160 for (i = 0; i < cpu_count; i++) { in main()
180 int cpu_count = get_cpu_count_from_file("/sys/devices/system/cpu/present"); in get_cpu_count() local
181 if (cpu_count != get_cpu_count_from_file("/sys/devices/system/cpu/online")) { in get_cpu_count()
184 return cpu_count; in get_cpu_count()
193 int cpu_count; in get_cpu_count_from_file() local
204 if (1 == sscanf(line, "0-%d\n", &cpu_count)) { in get_cpu_count_from_file()
205 return cpu_count + 1; in get_cpu_count_from_file()
253 for (i = 0; i < cpu_count; i++) { in read_stats()
310 for (i = 0; i < cpu_count; i++) { in print_stats()
394 for (i = 1; i < cpu_count; i++) { in should_print_freq_stats()
415 for (i = 1; i < cpu_count; i++) { in should_aggregate_freq_stats()