[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tip-iqcdnkkqm6sew06x01fbijmy@git.kernel.org>
Date: Tue, 15 Sep 2015 00:02:11 -0700
From: tip-bot for Arnaldo Carvalho de Melo <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: namhyung@...nel.org, fweisbec@...il.com, wangnan0@...wei.com,
linux-kernel@...r.kernel.org, kan.liang@...el.com,
jolsa@...hat.com, adrian.hunter@...el.com, eranian@...gle.com,
acme@...hat.com, mingo@...nel.org, tglx@...utronix.de,
dsahern@...il.com, bp@...e.de, hpa@...or.com
Subject: [tip:perf/core] perf hists browser: Fixup the "cpu"
column width calculation
Commit-ID: a4978eca684a3b471f3da862f427e419283e93a3
Gitweb: http://git.kernel.org/tip/a4978eca684a3b471f3da862f427e419283e93a3
Author: Arnaldo Carvalho de Melo <acme@...hat.com>
AuthorDate: Wed, 9 Sep 2015 12:14:00 -0300
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Mon, 14 Sep 2015 12:50:22 -0300
perf hists browser: Fixup the "cpu" column width calculation
Since we were not setting it to at least 3 chars ('CPU'), it was being
reset to zero when recalculating the columns width when refreshing the
screen, in 'perf top'. Fix it.
Tested-by: Wang Nan <wangnan0@...wei.com>
Cc: Adrian Hunter <adrian.hunter@...el.com>
Cc: Borislav Petkov <bp@...e.de>
Cc: David Ahern <dsahern@...il.com>
Cc: Frederic Weisbecker <fweisbec@...il.com>
Cc: Jiri Olsa <jolsa@...hat.com>
Cc: Kan Liang <kan.liang@...el.com>
Cc: Namhyung Kim <namhyung@...nel.org>
Cc: Stephane Eranian <eranian@...gle.com>
Link: http://lkml.kernel.org/n/tip-iqcdnkkqm6sew06x01fbijmy@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/perf/util/hist.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c
index 08b6cd9..48d5906 100644
--- a/tools/perf/util/hist.c
+++ b/tools/perf/util/hist.c
@@ -144,6 +144,7 @@ void hists__calc_col_len(struct hists *hists, struct hist_entry *h)
hists__set_unres_dso_col_len(hists, HISTC_MEM_DADDR_DSO);
}
+ hists__new_col_len(hists, HISTC_CPU, 3);
hists__new_col_len(hists, HISTC_MEM_LOCKED, 6);
hists__new_col_len(hists, HISTC_MEM_TLB, 22);
hists__new_col_len(hists, HISTC_MEM_SNOOP, 12);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists