History

Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent

Pull perf/urgent fix from Arnaldo Carvalho de Melo: - Use index, not CPU id, to find core/pkg id in 'perf stat' (Kan Liang)

Ingo Molnar committed 11 years ago

Commit 4c09e0d2 parents 64291f7 601083c1 file · +2 −3Browse files

Unified · Split

tools/perf/builtin-stat.c+2−3
@@ -694,7 +694,7 @@ static void abs_printout(int id, int nr, struct perf_evsel *evsel, double avg) · 693 unmodified lines
694694 static void print_aggr(char *prefix)
695695 {
696696 struct perf_evsel *counter;
697− int cpu, cpu2, s, s2, id, nr;
697+ int cpu, s, s2, id, nr;
698698 double uval;
699699 u64 ena, run, val;
700700
@@ -707,8 +707,7 @@ static void print_aggr(char *prefix) · 6 unmodified lines
707707 val = ena = run = 0;
708708 nr = 0;
709709 for (cpu = 0; cpu < perf_evsel__nr_cpus(counter); cpu++) {
710− cpu2 = perf_evsel__cpus(counter)->map[cpu];
711− s2 = aggr_get_id(evsel_list->cpus, cpu2);
710+ s2 = aggr_get_id(perf_evsel__cpus(counter), cpu);
712711 if (s2 != id)
713712 continue;
714713 val += perf_counts(counter->counts, cpu, 0)->val;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t