Lines Matching refs:average
548 } average; variable
1117 …if ((t != &average.threads) && (cpu_subset && !CPU_ISSET_S(t->cpu_id, cpu_subset_size, cpu_subset)… in format_counters()
1137 if (t == &average.threads) { in format_counters()
1438 format_counters(&average.threads, &average.cores, &average.packages); in format_all_counters()
1724 average.threads.apic_id = t->apic_id; in sum_counters()
1726 average.threads.x2apic_id = t->x2apic_id; in sum_counters()
1729 if (average.threads.tv_begin.tv_sec == 0) in sum_counters()
1730 average.threads.tv_begin = t->tv_begin; in sum_counters()
1733 average.threads.tv_end = t->tv_end; in sum_counters()
1735 average.threads.tsc += t->tsc; in sum_counters()
1736 average.threads.aperf += t->aperf; in sum_counters()
1737 average.threads.mperf += t->mperf; in sum_counters()
1738 average.threads.c1 += t->c1; in sum_counters()
1740 average.threads.instr_count += t->instr_count; in sum_counters()
1742 average.threads.irq_count += t->irq_count; in sum_counters()
1743 average.threads.smi_count += t->smi_count; in sum_counters()
1748 average.threads.counter[i] += t->counter[i]; in sum_counters()
1755 average.cores.c3 += c->c3; in sum_counters()
1756 average.cores.c6 += c->c6; in sum_counters()
1757 average.cores.c7 += c->c7; in sum_counters()
1758 average.cores.mc6_us += c->mc6_us; in sum_counters()
1760 average.cores.core_temp_c = MAX(average.cores.core_temp_c, c->core_temp_c); in sum_counters()
1761 average.cores.core_throt_cnt = MAX(average.cores.core_throt_cnt, c->core_throt_cnt); in sum_counters()
1763 average.cores.core_energy += c->core_energy; in sum_counters()
1768 average.cores.counter[i] += c->counter[i]; in sum_counters()
1776 average.packages.pkg_wtd_core_c0 += p->pkg_wtd_core_c0; in sum_counters()
1778 average.packages.pkg_any_core_c0 += p->pkg_any_core_c0; in sum_counters()
1780 average.packages.pkg_any_gfxe_c0 += p->pkg_any_gfxe_c0; in sum_counters()
1782 average.packages.pkg_both_core_gfxe_c0 += p->pkg_both_core_gfxe_c0; in sum_counters()
1784 average.packages.pc2 += p->pc2; in sum_counters()
1786 average.packages.pc3 += p->pc3; in sum_counters()
1788 average.packages.pc6 += p->pc6; in sum_counters()
1790 average.packages.pc7 += p->pc7; in sum_counters()
1791 average.packages.pc8 += p->pc8; in sum_counters()
1792 average.packages.pc9 += p->pc9; in sum_counters()
1793 average.packages.pc10 += p->pc10; in sum_counters()
1795 average.packages.cpu_lpi = p->cpu_lpi; in sum_counters()
1796 average.packages.sys_lpi = p->sys_lpi; in sum_counters()
1798 average.packages.energy_pkg += p->energy_pkg; in sum_counters()
1799 average.packages.energy_dram += p->energy_dram; in sum_counters()
1800 average.packages.energy_cores += p->energy_cores; in sum_counters()
1801 average.packages.energy_gfx += p->energy_gfx; in sum_counters()
1803 average.packages.gfx_rc6_ms = p->gfx_rc6_ms; in sum_counters()
1804 average.packages.uncore_mhz = p->uncore_mhz; in sum_counters()
1805 average.packages.gfx_mhz = p->gfx_mhz; in sum_counters()
1806 average.packages.gfx_act_mhz = p->gfx_act_mhz; in sum_counters()
1808 average.packages.pkg_temp_c = MAX(average.packages.pkg_temp_c, p->pkg_temp_c); in sum_counters()
1810 average.packages.rapl_pkg_perf_status += p->rapl_pkg_perf_status; in sum_counters()
1811 average.packages.rapl_dram_perf_status += p->rapl_dram_perf_status; in sum_counters()
1816 average.packages.counter[i] += p->counter[i]; in sum_counters()
1830 clear_counters(&average.threads, &average.cores, &average.packages); in compute_average()
1835 average.threads.tv_delta = tv_delta; in compute_average()
1837 average.threads.tsc /= topo.num_cpus; in compute_average()
1838 average.threads.aperf /= topo.num_cpus; in compute_average()
1839 average.threads.mperf /= topo.num_cpus; in compute_average()
1840 average.threads.instr_count /= topo.num_cpus; in compute_average()
1841 average.threads.c1 /= topo.num_cpus; in compute_average()
1843 if (average.threads.irq_count > 9999999) in compute_average()
1846 average.cores.c3 /= topo.num_cores; in compute_average()
1847 average.cores.c6 /= topo.num_cores; in compute_average()
1848 average.cores.c7 /= topo.num_cores; in compute_average()
1849 average.cores.mc6_us /= topo.num_cores; in compute_average()
1852 average.packages.pkg_wtd_core_c0 /= topo.num_packages; in compute_average()
1854 average.packages.pkg_any_core_c0 /= topo.num_packages; in compute_average()
1856 average.packages.pkg_any_gfxe_c0 /= topo.num_packages; in compute_average()
1858 average.packages.pkg_both_core_gfxe_c0 /= topo.num_packages; in compute_average()
1860 average.packages.pc2 /= topo.num_packages; in compute_average()
1862 average.packages.pc3 /= topo.num_packages; in compute_average()
1864 average.packages.pc6 /= topo.num_packages; in compute_average()
1866 average.packages.pc7 /= topo.num_packages; in compute_average()
1868 average.packages.pc8 /= topo.num_packages; in compute_average()
1869 average.packages.pc9 /= topo.num_packages; in compute_average()
1870 average.packages.pc10 /= topo.num_packages; in compute_average()
1876 if (average.threads.counter[i] > 9999999) in compute_average()
1880 average.threads.counter[i] /= topo.num_cpus; in compute_average()
1886 if (average.cores.counter[i] > 9999999) in compute_average()
1889 average.cores.counter[i] /= topo.num_cores; in compute_average()
1895 if (average.packages.counter[i] > 9999999) in compute_average()
1898 average.packages.counter[i] /= topo.num_packages; in compute_average()