diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-07-07 14:23:44 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-07-07 14:23:44 -0400 |
commit | 1561880d7b114a65e307d1ac9a0991dc715355b3 (patch) | |
tree | d34bae23bb428be4e6b427ae51c5bd01d7e9cbbd /tools | |
parent | c83023676dc34f1b4422b842e1e2dc5c21bfc4dc (diff) |
perf hists browser: Left justify column headers
Looks better and avoids it moving to the end of the screen as the column
width changes over time in 'perf top'.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-yc144ai5jye3yl3h5yxw0scd@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/sort.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index 1ec57dd82284..14e5a039bc45 100644 --- a/tools/perf/util/sort.c +++ b/tools/perf/util/sort.c | |||
@@ -1215,7 +1215,7 @@ static int __sort__hpp_header(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp, | |||
1215 | hse = container_of(fmt, struct hpp_sort_entry, hpp); | 1215 | hse = container_of(fmt, struct hpp_sort_entry, hpp); |
1216 | len = hists__col_len(&evsel->hists, hse->se->se_width_idx); | 1216 | len = hists__col_len(&evsel->hists, hse->se->se_width_idx); |
1217 | 1217 | ||
1218 | return scnprintf(hpp->buf, hpp->size, "%*s", len, hse->se->se_header); | 1218 | return scnprintf(hpp->buf, hpp->size, "%-*s", len, hse->se->se_header); |
1219 | } | 1219 | } |
1220 | 1220 | ||
1221 | static int __sort__hpp_width(struct perf_hpp_fmt *fmt, | 1221 | static int __sort__hpp_width(struct perf_hpp_fmt *fmt, |