Skip to contentSkip to conversation

perf/urgent fixes

GIT PULL New Arnaldo Carvalho de Melo 2 participants 6 messages Jan 26, 2016 – Jan 30, 2016

Subsystems (2)
lore
Share & tools
lore

Arnaldo Carvalho de Melo

author maintainer
#0 lore raw

Hi Ingo,

Please consider pulling,

- Arnaldo

The following changes since commit 45c815f06b80031659c63d7b93e580015d6024dd:

perf: Synchronously free aux pages in case of allocation failure (2016-01-21 18:54:27 +0100)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-urgent-for-mingo

for you to fetch changes up to 3f416f22d1e21709a631189ba169f76fd267b374:

perf stat: Do not clean event's private stats (2016-01-26 11:15:11 -0300)

----------------------------------------------------------------
perf/urgent fixes:

User visible:

- 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)

----------------------------------------------------------------
Jiri Olsa (2):
perf hists: Fix HISTC_MEM_DCACHELINE width setting perf stat: Do not clean event's private stats

Markus Trippelsdorf (2):
perf tests: Remove wrong semicolon in while loop in CQM test perf annotate browser: Fix behaviour of Shift-Tab with nothing focussed

 tools/perf/arch/x86/tests/intel-cqm.c | 2 +-
 tools/perf/ui/browsers/annotate.c     | 4 ++--
 tools/perf/util/hist.c                | 2 ++
 tools/perf/util/stat.c                | 1 -
 4 files changed, 5 insertions(+), 4 deletions(-)
author maintainer
#1 lore raw

PATCH 1/4 perf tests: Remove wrong semicolon in while loop in CQM test

From: Markus Trippelsdorf <[email protected]>

The while loop was spinning. Fix by removing a semicolon.

The issue was pointed out by gcc-6's -Wmisleading-indentation.

---
 tools/perf/arch/x86/tests/intel-cqm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/perf/arch/x86/tests/intel-cqm.c +1 -1
index 3e89ba825f6b..7f064eb37158 100644
@@ -17,7 +17,7 @@ static pid_t spawn(void)
 	if (pid)
 		return pid;
 
-	while(1);
+	while(1)
 		sleep(5);
 	return 0;
 }
Signature · 1 line
2.5.0
author maintainer
#2 lore raw

PATCH 2/4 perf annotate browser: Fix behaviour of Shift-Tab with nothing focussed

In reply to Arnaldo Carvalho de Melo

From: Markus Trippelsdorf <[email protected]>

The issue was pointed out by gcc-6's -Wmisleading-indentation.

---
 tools/perf/ui/browsers/annotate.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
tools/perf/ui/browsers/annotate.c +2 -2
index d4d7cc27252f..718bd46d47fa 100644
@@ -755,11 +755,11 @@ static int annotate_browser__run(struct annotate_browser *browser,
 				nd = browser->curr_hot;
 			break;
 		case K_UNTAB:
-			if (nd != NULL)
+			if (nd != NULL) {
 				nd = rb_next(nd);
 				if (nd == NULL)
 					nd = rb_first(&browser->entries);
-			else
+			} else
 				nd = browser->curr_hot;
 			break;
 		case K_F1:
Signature · 1 line
2.5.0
author maintainer
#3 lore raw

PATCH 3/4 perf hists: Fix HISTC_MEM_DCACHELINE width setting

In reply to Arnaldo Carvalho de Melo

From: Jiri Olsa <[email protected]>

Set correct width for unresolved mem_dcacheline addr.

Cc David Ahern <[email protected]>
Cc Don Zickus <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Peter Zijlstra <[email protected]>
Fixes 9b32ba71ba90 ("perf tools: Add dcacheline sort")
---
 tools/perf/util/hist.c | 2 ++
 1 file changed, 2 insertions(+)
tools/perf/util/hist.c +2 -0
index c226303e3da0..68a7612019dc 100644
@@ -131,6 +131,8 @@ void hists__calc_col_len(struct hists *hists, struct hist_entry *h)
 			symlen = unresolved_col_width + 4 + 2;
 			hists__new_col_len(hists, HISTC_MEM_DADDR_SYMBOL,
 					   symlen);
+			hists__new_col_len(hists, HISTC_MEM_DCACHELINE,
+					   symlen);
 		}
 
 		if (h->mem_info->iaddr.sym) {
Signature · 1 line
2.5.0
author maintainer
#4 lore raw

PATCH 4/4 perf stat: Do not clean event's private stats

In reply to Arnaldo Carvalho de Melo

From: Jiri Olsa <[email protected]>

Mel reported stddev reporting was broken due to following commit:

106a94a0f8c2 ("perf stat: Introduce read_counters function")

This commit merged interval and overall counters reading into single read_counters function.

The old interval code cleaned the stddev data for some reason (it's never displayed in interval mode) and the mentioned commit kept on cleaning the stddev data in merged function, which resulted in the stddev not being displayed.

Removing the wrong stddev data cleanup init_stats call.

Reported-and-Tested-by Mel Gorman <[email protected]>
Cc David Ahern <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Peter Zijlstra <[email protected]>
Fixes 106a94a0f8c2 ("perf stat: Introduce read_counters function")
---
 tools/perf/util/stat.c | 1 -
 1 file changed, 1 deletion(-)
tools/perf/util/stat.c +0 -1
index 2f901d15e063..2b58edccd56f 100644
@@ -310,7 +310,6 @@ int perf_stat_process_counter(struct perf_stat_config *config,
 	int i, ret;
 
 	aggr->val = aggr->ena = aggr->run = 0;
-	init_stats(ps->res_stats);
 
 	if (counter->per_pkg)
 		zero_per_pkg(counter);
Signature · 1 line
2.5.0
#5 lore raw
In reply to Arnaldo Carvalho de Melo
Quoted 46 lines · Arnaldo Carvalho de Melo

Hi Ingo,

Please consider pulling,

- Arnaldo

The following changes since commit 45c815f06b80031659c63d7b93e580015d6024dd:

perf: Synchronously free aux pages in case of allocation failure (2016-01-21 18:54:27 +0100)

are available in the git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-urgent-for-mingo

for you to fetch changes up to 3f416f22d1e21709a631189ba169f76fd267b374:

perf stat: Do not clean event's private stats (2016-01-26 11:15:11 -0300)

----------------------------------------------------------------
perf/urgent fixes:

User visible:

- 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)

----------------------------------------------------------------
Jiri Olsa (2):
perf hists: Fix HISTC_MEM_DCACHELINE width setting perf stat: Do not clean event's private stats

Markus Trippelsdorf (2):
perf tests: Remove wrong semicolon in while loop in CQM test perf annotate browser: Fix behaviour of Shift-Tab with nothing focussed

Quoted 5 lines
 tools/perf/arch/x86/tests/intel-cqm.c | 2 +-
 tools/perf/ui/browsers/annotate.c     | 4 ++--
 tools/perf/util/hist.c                | 2 ++
 tools/perf/util/stat.c                | 1 -
 4 files changed, 5 insertions(+), 4 deletions(-)

Pulled, thanks a lot Arnaldo!

Ingo