Skip to contentSkip to conversation

perf hists: Handle verbose in hists__sort_list_width

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Aug 6, 2010 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  903cce6eb9117550755de9bf92f3b48367b7dfe0
Gitweb:     http://git.kernel.org/tip/903cce6eb9117550755de9bf92f3b48367b7dfe0
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Thu, 5 Aug 2010 19:15:48 -0300
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Thu, 5 Aug 2010 19:38:01 -0300

perf hists: Handle verbose in hists__sort_list_width

Otherwise entries will get chopped up on the window.

Cc: Frederic Weisbecker <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
LKML-Reference: <new-submission>

---
 tools/perf/util/hist.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
tools/perf/util/hist.c +3 -0
index e7263d4..62ec9b0 100644
@@ -876,6 +876,9 @@ unsigned int hists__sort_list_width(struct hists *self)
 		if (!se->elide)
 			ret += 2 + hists__col_len(self, se->se_width_idx);
 
+	if (verbose) /* Addr + origin */
+		ret += 3 + BITS_PER_LONG / 4;
+
 	return ret;
 }