diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-06-02 16:12:14 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-02 16:12:14 -0400 |
commit | cf25c63c609e99bfb9303b68a7a90a56a3a32cea (patch) | |
tree | 608bffae973c56dc3b446107a3140d8f1535db6b /Documentation/perf_counter | |
parent | 436224a6d8bb3e29fe0cc18122f8d1f593da67b8 (diff) |
perf report: Fix column width/alignment of dsos
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation/perf_counter')
-rw-r--r-- | Documentation/perf_counter/builtin-report.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/perf_counter/builtin-report.c b/Documentation/perf_counter/builtin-report.c index 6d68f3aa86b7..b84aaf18bf1f 100644 --- a/Documentation/perf_counter/builtin-report.c +++ b/Documentation/perf_counter/builtin-report.c | |||
@@ -303,11 +303,11 @@ sort__thread_cmp(struct hist_entry *left, struct hist_entry *right) | |||
303 | static size_t | 303 | static size_t |
304 | sort__thread_print(FILE *fp, struct hist_entry *self) | 304 | sort__thread_print(FILE *fp, struct hist_entry *self) |
305 | { | 305 | { |
306 | return fprintf(fp, " %16s:%5d", self->thread->comm ?: "", self->thread->pid); | 306 | return fprintf(fp, " %16s:%5d", self->thread->comm ?: "", self->thread->pid); |
307 | } | 307 | } |
308 | 308 | ||
309 | static struct sort_entry sort_thread = { | 309 | static struct sort_entry sort_thread = { |
310 | .header = " Command: Pid ", | 310 | .header = " Command: Pid ", |
311 | .cmp = sort__thread_cmp, | 311 | .cmp = sort__thread_cmp, |
312 | .print = sort__thread_print, | 312 | .print = sort__thread_print, |
313 | }; | 313 | }; |
@@ -363,11 +363,11 @@ sort__dso_cmp(struct hist_entry *left, struct hist_entry *right) | |||
363 | static size_t | 363 | static size_t |
364 | sort__dso_print(FILE *fp, struct hist_entry *self) | 364 | sort__dso_print(FILE *fp, struct hist_entry *self) |
365 | { | 365 | { |
366 | return fprintf(fp, " %s", self->dso ? self->dso->name : "<unknown>"); | 366 | return fprintf(fp, " %-25s", self->dso ? self->dso->name : "<unknown>"); |
367 | } | 367 | } |
368 | 368 | ||
369 | static struct sort_entry sort_dso = { | 369 | static struct sort_entry sort_dso = { |
370 | .header = " Shared Object", | 370 | .header = " Shared Object ", |
371 | .cmp = sort__dso_cmp, | 371 | .cmp = sort__dso_cmp, |
372 | .print = sort__dso_print, | 372 | .print = sort__dso_print, |
373 | }; | 373 | }; |