Lines Matching refs:freqs
45 struct freq_info *freqs;
115 new_cpus[i].freqs = malloc(sizeof(struct freq_info) * new_cpus[i].freq_count);
116 if (!new_cpus[i].freqs) die("Could not allocate struct freq_info\n");
117 old_cpus[i].freqs = malloc(sizeof(struct freq_info) * old_cpus[i].freq_count);
118 if (!old_cpus[i].freqs) die("Could not allocate struct freq_info\n");
127 new_total_cpu.freqs = malloc(sizeof(struct freq_info) * new_total_cpu.freq_count);
128 if (!new_total_cpu.freqs) die("Could not allocate struct freq_info\n");
129 old_total_cpu.freqs = malloc(sizeof(struct freq_info) * old_total_cpu.freq_count);
130 if (!old_total_cpu.freqs) die("Could not allocate struct freq_info\n");
153 free(new_total_cpu.freqs);
154 free(old_total_cpu.freqs);
157 free(new_cpus[i].freqs);
158 free(old_cpus[i].freqs);
245 new_total_cpu.freqs[i].time = 0;
271 fscanf(file, "%u %lu\n", &new_cpus[cpu].freqs[i].freq,
272 &new_cpus[cpu].freqs[i].time);
274 new_total_cpu.freqs[i].freq = new_cpus[cpu].freqs[i].freq;
275 new_total_cpu.freqs[i].time += new_cpus[cpu].freqs[i].time;
355 delta_time = new_cpu->freqs[i].time - old_cpu->freqs[i].time;
357 printf("%ukHz %ld", new_cpu->freqs[i].freq, delta_time);
367 printf(",%u,%ld", new_cpu->freqs[i].freq,
368 new_cpu->freqs[i].time - old_cpu->freqs[i].time);
386 if (new_cpus[i].freqs[j].time - old_cpus[i].freqs[j].time !=
387 new_cpus[0].freqs[j].time - old_cpus[0].freqs[j].time) {
410 if (new_cpus[i].freqs[j].freq != new_cpus[0].freqs[j].freq) {