Home
last modified time | relevance | path

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

/tools/power/x86/turbostat/
Dturbostat.c453 struct msr_sum_array *per_cpu_msr_sum; variable
3401 if (!per_cpu_msr_sum) in get_msr_sum()
3411 msr_last = per_cpu_msr_sum[cpu].entries[idx].last; in get_msr_sum()
3413 *msr = msr_last + per_cpu_msr_sum[cpu].entries[idx].sum; in get_msr_sum()
3444 msr_last = per_cpu_msr_sum[cpu].entries[i].last; in update_msr_sum()
3445 per_cpu_msr_sum[cpu].entries[i].last = msr_cur & 0xffffffff; in update_msr_sum()
3448 per_cpu_msr_sum[cpu].entries[i].sum += msr_last; in update_msr_sum()
3465 per_cpu_msr_sum = calloc(topo.max_cpu_num + 1, sizeof(struct msr_sum_array)); in msr_sum_record()
3466 if (!per_cpu_msr_sum) { in msr_sum_record()
3503 free(per_cpu_msr_sum); in msr_sum_record()