Skip to content

Commit 28fb8a5

Browse files
author
Ingo Molnar
committed
Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
Pull perf/urgent fixes from Arnaldo Carvalho de Melo: - Fix 'perf stat' stddev reporting due to mistakenly cleaning event private stats (Jiri Olsa) - Fix 'perf test CQM' endless loop detected by 'gcc6 -Wmisleading-indentation' (Markus Trippelsdorf) - Fix behaviour of Shift-Tab when nothing is focussed in the annotate TUI browser, detected with gcc6 -Wmisleading-indentation (Markus Trippelsdorf) - Fix mem data cacheline hists browser width setting for unresolved addresses (Jiri Olsa) Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Ingo Molnar <mingo@kernel.org>
2 parents 5fa7c8e + 3f416f2 commit 28fb8a5

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

tools/perf/arch/x86/tests/intel-cqm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ static pid_t spawn(void)
1717
if (pid)
1818
return pid;
1919

20-
while(1);
20+
while(1)
2121
sleep(5);
2222
return 0;
2323
}

tools/perf/ui/browsers/annotate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -755,11 +755,11 @@ static int annotate_browser__run(struct annotate_browser *browser,
755755
nd = browser->curr_hot;
756756
break;
757757
case K_UNTAB:
758-
if (nd != NULL)
758+
if (nd != NULL) {
759759
nd = rb_next(nd);
760760
if (nd == NULL)
761761
nd = rb_first(&browser->entries);
762-
else
762+
} else
763763
nd = browser->curr_hot;
764764
break;
765765
case K_F1:

tools/perf/util/hist.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ void hists__calc_col_len(struct hists *hists, struct hist_entry *h)
131131
symlen = unresolved_col_width + 4 + 2;
132132
hists__new_col_len(hists, HISTC_MEM_DADDR_SYMBOL,
133133
symlen);
134+
hists__new_col_len(hists, HISTC_MEM_DCACHELINE,
135+
symlen);
134136
}
135137

136138
if (h->mem_info->iaddr.sym) {

tools/perf/util/stat.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ int perf_stat_process_counter(struct perf_stat_config *config,
310310
int i, ret;
311311

312312
aggr->val = aggr->ena = aggr->run = 0;
313-
init_stats(ps->res_stats);
314313

315314
if (counter->per_pkg)
316315
zero_per_pkg(counter);

0 commit comments

Comments
 (0)