stat-display.c (d400bd3abf2cc68df2df32047d3533faf690f404) | stat-display.c (af663bd01beaff8d9514199fcc1b239902a77de5) |
---|---|
1#include <stdio.h> 2#include <inttypes.h> 3#include <linux/string.h> 4#include <linux/time64.h> 5#include <math.h> 6#include "color.h" 7#include "evlist.h" 8#include "evsel.h" --- 102 unchanged lines hidden (view full) --- 111 config->csv_output ? 0 : -5, 112 evsel__cpus(evsel)->map[id], 113 config->csv_sep); 114 } 115 break; 116 case AGGR_THREAD: 117 fprintf(config->output, "%*s-%*d%s", 118 config->csv_output ? 0 : 16, | 1#include <stdio.h> 2#include <inttypes.h> 3#include <linux/string.h> 4#include <linux/time64.h> 5#include <math.h> 6#include "color.h" 7#include "evlist.h" 8#include "evsel.h" --- 102 unchanged lines hidden (view full) --- 111 config->csv_output ? 0 : -5, 112 evsel__cpus(evsel)->map[id], 113 config->csv_sep); 114 } 115 break; 116 case AGGR_THREAD: 117 fprintf(config->output, "%*s-%*d%s", 118 config->csv_output ? 0 : 16, |
119 perf_thread_map__comm(evsel->threads, id), | 119 perf_thread_map__comm(evsel->core.threads, id), |
120 config->csv_output ? 0 : -8, | 120 config->csv_output ? 0 : -8, |
121 thread_map__pid(evsel->threads, id), | 121 thread_map__pid(evsel->core.threads, id), |
122 config->csv_sep); 123 break; 124 case AGGR_GLOBAL: 125 case AGGR_UNSET: 126 default: 127 break; 128 } 129} --- 609 unchanged lines hidden (view full) --- 739 return buf; 740} 741 742static void print_aggr_thread(struct perf_stat_config *config, 743 struct target *_target, 744 struct evsel *counter, char *prefix) 745{ 746 FILE *output = config->output; | 122 config->csv_sep); 123 break; 124 case AGGR_GLOBAL: 125 case AGGR_UNSET: 126 default: 127 break; 128 } 129} --- 609 unchanged lines hidden (view full) --- 739 return buf; 740} 741 742static void print_aggr_thread(struct perf_stat_config *config, 743 struct target *_target, 744 struct evsel *counter, char *prefix) 745{ 746 FILE *output = config->output; |
747 int nthreads = thread_map__nr(counter->threads); | 747 int nthreads = thread_map__nr(counter->core.threads); |
748 int ncpus = cpu_map__nr(counter->core.cpus); 749 int thread, sorted_threads, id; 750 struct perf_aggr_thread_value *buf; 751 752 buf = sort_aggr_thread(counter, nthreads, ncpus, &sorted_threads, _target); 753 if (!buf) { 754 perror("cannot sort aggr thread"); 755 return; --- 470 unchanged lines hidden --- | 748 int ncpus = cpu_map__nr(counter->core.cpus); 749 int thread, sorted_threads, id; 750 struct perf_aggr_thread_value *buf; 751 752 buf = sort_aggr_thread(counter, nthreads, ncpus, &sorted_threads, _target); 753 if (!buf) { 754 perror("cannot sort aggr thread"); 755 return; --- 470 unchanged lines hidden --- |