Lines Matching refs:freqs
46 struct freq_info *freqs;
116 new_cpus[i].freqs = malloc(sizeof(struct freq_info) * new_cpus[i].freq_count);
117 if (!new_cpus[i].freqs) die("Could not allocate struct freq_info\n");
118 old_cpus[i].freqs = malloc(sizeof(struct freq_info) * old_cpus[i].freq_count);
119 if (!old_cpus[i].freqs) die("Could not allocate struct freq_info\n");
128 new_total_cpu.freqs = malloc(sizeof(struct freq_info) * new_total_cpu.freq_count);
129 if (!new_total_cpu.freqs) die("Could not allocate struct freq_info\n");
130 old_total_cpu.freqs = malloc(sizeof(struct freq_info) * old_total_cpu.freq_count);
131 if (!old_total_cpu.freqs) die("Could not allocate struct freq_info\n");
154 free(new_total_cpu.freqs);
155 free(old_total_cpu.freqs);
158 free(new_cpus[i].freqs);
159 free(old_cpus[i].freqs);
246 new_total_cpu.freqs[i].time = 0;
272 fscanf(file, "%u %lu\n", &new_cpus[cpu].freqs[i].freq,
273 &new_cpus[cpu].freqs[i].time);
276 new_cpus[cpu].freqs[i].freq = old_cpus[cpu].freqs[i].freq;
277 new_cpus[cpu].freqs[i].time = old_cpus[cpu].freqs[i].time;
280 new_total_cpu.freqs[i].freq = new_cpus[cpu].freqs[i].freq;
281 new_total_cpu.freqs[i].time += new_cpus[cpu].freqs[i].time;
362 delta_time = new_cpu->freqs[i].time - old_cpu->freqs[i].time;
364 printf("%ukHz %ld", new_cpu->freqs[i].freq, delta_time);
374 printf(",%u,%ld", new_cpu->freqs[i].freq,
375 new_cpu->freqs[i].time - old_cpu->freqs[i].time);
393 if (new_cpus[i].freqs[j].time - old_cpus[i].freqs[j].time !=
394 new_cpus[0].freqs[j].time - old_cpus[0].freqs[j].time) {
417 if (new_cpus[i].freqs[j].freq != new_cpus[0].freqs[j].freq) {