Lines Matching refs:cpu
107 static int (*aggr_get_id)(struct cpu_map *m, int cpu);
345 int cpu; in read_counter() local
347 for (cpu = 0; cpu < perf_evsel__nr_cpus(counter); cpu++) { in read_counter()
348 if (__perf_evsel__read_on_cpu(counter, cpu, 0, scale) < 0) in read_counter()
351 count = counter->counts->cpu[cpu].values; in read_counter()
628 static void nsec_printout(int cpu, int nr, struct perf_evsel *evsel, double avg) in nsec_printout() argument
633 aggr_printout(evsel, cpu, nr); in nsec_printout()
677 static void print_stalled_cycles_frontend(int cpu, in print_stalled_cycles_frontend() argument
684 total = avg_stats(&runtime_cycles_stats[cpu]); in print_stalled_cycles_frontend()
696 static void print_stalled_cycles_backend(int cpu, in print_stalled_cycles_backend() argument
703 total = avg_stats(&runtime_cycles_stats[cpu]); in print_stalled_cycles_backend()
715 static void print_branch_misses(int cpu, in print_branch_misses() argument
722 total = avg_stats(&runtime_branches_stats[cpu]); in print_branch_misses()
734 static void print_l1_dcache_misses(int cpu, in print_l1_dcache_misses() argument
741 total = avg_stats(&runtime_l1_dcache_stats[cpu]); in print_l1_dcache_misses()
753 static void print_l1_icache_misses(int cpu, in print_l1_icache_misses() argument
760 total = avg_stats(&runtime_l1_icache_stats[cpu]); in print_l1_icache_misses()
772 static void print_dtlb_cache_misses(int cpu, in print_dtlb_cache_misses() argument
779 total = avg_stats(&runtime_dtlb_cache_stats[cpu]); in print_dtlb_cache_misses()
791 static void print_itlb_cache_misses(int cpu, in print_itlb_cache_misses() argument
798 total = avg_stats(&runtime_itlb_cache_stats[cpu]); in print_itlb_cache_misses()
810 static void print_ll_cache_misses(int cpu, in print_ll_cache_misses() argument
817 total = avg_stats(&runtime_ll_cache_stats[cpu]); in print_ll_cache_misses()
829 static void abs_printout(int cpu, int nr, struct perf_evsel *evsel, double avg) in abs_printout() argument
841 aggr_printout(evsel, cpu, nr); in abs_printout()
844 cpu = 0; in abs_printout()
855 total = avg_stats(&runtime_cycles_stats[cpu]); in abs_printout()
861 total = avg_stats(&runtime_stalled_cycles_front_stats[cpu]); in abs_printout()
862 total = max(total, avg_stats(&runtime_stalled_cycles_back_stats[cpu])); in abs_printout()
870 runtime_branches_stats[cpu].n != 0) { in abs_printout()
871 print_branch_misses(cpu, evsel, avg); in abs_printout()
877 runtime_l1_dcache_stats[cpu].n != 0) { in abs_printout()
878 print_l1_dcache_misses(cpu, evsel, avg); in abs_printout()
884 runtime_l1_icache_stats[cpu].n != 0) { in abs_printout()
885 print_l1_icache_misses(cpu, evsel, avg); in abs_printout()
891 runtime_dtlb_cache_stats[cpu].n != 0) { in abs_printout()
892 print_dtlb_cache_misses(cpu, evsel, avg); in abs_printout()
898 runtime_itlb_cache_stats[cpu].n != 0) { in abs_printout()
899 print_itlb_cache_misses(cpu, evsel, avg); in abs_printout()
905 runtime_ll_cache_stats[cpu].n != 0) { in abs_printout()
906 print_ll_cache_misses(cpu, evsel, avg); in abs_printout()
908 runtime_cacherefs_stats[cpu].n != 0) { in abs_printout()
909 total = avg_stats(&runtime_cacherefs_stats[cpu]); in abs_printout()
917 print_stalled_cycles_frontend(cpu, evsel, avg); in abs_printout()
919 print_stalled_cycles_backend(cpu, evsel, avg); in abs_printout()
921 total = avg_stats(&runtime_nsecs_stats[cpu]); in abs_printout()
927 } else if (runtime_nsecs_stats[cpu].n != 0) { in abs_printout()
930 total = avg_stats(&runtime_nsecs_stats[cpu]); in abs_printout()
948 int cpu, cpu2, s, s2, id, nr; in print_aggr() local
959 for (cpu = 0; cpu < perf_evsel__nr_cpus(counter); cpu++) { in print_aggr()
960 cpu2 = perf_evsel__cpus(counter)->map[cpu]; in print_aggr()
964 val += counter->counts->cpu[cpu].val; in print_aggr()
965 ena += counter->counts->cpu[cpu].ena; in print_aggr()
966 run += counter->counts->cpu[cpu].run; in print_aggr()
1065 int cpu; in print_counter() local
1067 for (cpu = 0; cpu < perf_evsel__nr_cpus(counter); cpu++) { in print_counter()
1068 val = counter->counts->cpu[cpu].val; in print_counter()
1069 ena = counter->counts->cpu[cpu].ena; in print_counter()
1070 run = counter->counts->cpu[cpu].run; in print_counter()
1078 perf_evsel__cpus(counter)->map[cpu], csv_sep, in print_counter()
1094 nsec_printout(cpu, 0, counter, val); in print_counter()
1096 abs_printout(cpu, 0, counter, val); in print_counter()