Home
last modified time | relevance | path

Searched refs:per_cpu_msr_sum (Results 1 – 1 of 1) sorted by relevance

/linux/tools/power/x86/turbostat/
H A Dturbostat.c1724 struct msr_sum_array *per_cpu_msr_sum; variable
6021 if (!per_cpu_msr_sum) in get_msr_sum()
6031 msr_last = per_cpu_msr_sum[cpu].entries[idx].last; in get_msr_sum()
6033 *msr = msr_last + per_cpu_msr_sum[cpu].entries[idx].sum; in get_msr_sum()
6066 msr_last = per_cpu_msr_sum[cpu].entries[i].last; in update_msr_sum()
6067 per_cpu_msr_sum[cpu].entries[i].last = msr_cur & 0xffffffff; in update_msr_sum()
6070 per_cpu_msr_sum[cpu].entries[i].sum += msr_last; in update_msr_sum()
6087 per_cpu_msr_sum = calloc(topo.max_cpu_num + 1, sizeof(struct msr_sum_array)); in msr_sum_record()
6088 if (!per_cpu_msr_sum) { in msr_sum_record()
6125 free(per_cpu_msr_sum); in msr_sum_record()