Home | History | Annotate | Download | only in cpustats

Lines Matching refs:cpu_count

52 static int cpu_count, delay, iterations;
106 cpu_count = get_cpu_count();
108 old_cpus = malloc(sizeof(struct cpu_info) * cpu_count);
110 new_cpus = malloc(sizeof(struct cpu_info) * cpu_count);
113 for (i = 0; i < cpu_count; i++) {
156 for (i = 0; i < cpu_count; i++) {
176 int cpu_count = get_cpu_count_from_file("/sys/devices/system/cpu/present");
177 if (cpu_count != get_cpu_count_from_file("/sys/devices/system/cpu/online")) {
180 return cpu_count;
189 int cpu_count;
200 if (1 == sscanf(line, "0-%d\n", &cpu_count)) {
201 return cpu_count + 1;
249 for (i = 0; i < cpu_count; i++) {
300 for (i = 0; i < cpu_count; i++) {
384 for (i = 1; i < cpu_count; i++) {
405 for (i = 1; i < cpu_count; i++) {