summaryrefslogtreecommitdiffstats
path: root/tools/perf/ui/browsers/hists.c
diff options
context:
space:
mode:
authorNamhyung Kim2012-09-12 08:35:06 +0200
committerArnaldo Carvalho de Melo2012-09-14 20:50:14 +0200
commit67d2591656df7a76d4cabca04f1cbe1c7d1c9b3a (patch)
treebc48e2d2f48bfd60c02a3eeb90463d17bb5fb92b /tools/perf/ui/browsers/hists.c
parentperf hists browser: Fix output for 100.00% (diff)
downloadkernel-qcow2-linux-67d2591656df7a76d4cabca04f1cbe1c7d1c9b3a.tar.gz
kernel-qcow2-linux-67d2591656df7a76d4cabca04f1cbe1c7d1c9b3a.tar.xz
kernel-qcow2-linux-67d2591656df7a76d4cabca04f1cbe1c7d1c9b3a.zip
perf hists browser: Fix first column printing
As a side effect of commit f5951d56a2ab ("perf hists browser: Use perf_hpp__format functions") perf report TUI got a problem of not refreshing the first character. Since the previous patch restores the column width of "overhead" to 7 we can start at column 0 now. Reported-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Namhyung Kim <namhyung@kernel.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1347431706-7839-2-git-send-email-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/ui/browsers/hists.c')
-rw-r--r--tools/perf/ui/browsers/hists.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/ui/browsers/hists.c b/tools/perf/ui/browsers/hists.c
index 11783170ac62..a21f40bebbac 100644
--- a/tools/perf/ui/browsers/hists.c
+++ b/tools/perf/ui/browsers/hists.c
@@ -605,7 +605,7 @@ static int hist_browser__show_entry(struct hist_browser *browser,
char s[256];
double percent;
int i, printed = 0;
- int width = browser->b.width - 1;
+ int width = browser->b.width;
char folded_sign = ' ';
bool current_entry = ui_browser__is_current_entry(&browser->b, row);
off_t row_offset = entry->row_offset;
@@ -627,7 +627,7 @@ static int hist_browser__show_entry(struct hist_browser *browser,
.total_period = browser->hists->stats.total_period,
};
- ui_browser__gotorc(&browser->b, row, 1);
+ ui_browser__gotorc(&browser->b, row, 0);
for (i = 0; i < PERF_HPP__MAX_INDEX; i++) {
if (!perf_hpp__format[i].cond)