Skip to content

Commit

Permalink
perf report: Fix column width/alignment of dsos
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar committed Jun 2, 2009
1 parent 436224a commit cf25c63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Documentation/perf_counter/builtin-report.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,11 @@ sort__thread_cmp(struct hist_entry *left, struct hist_entry *right)
static size_t
sort__thread_print(FILE *fp, struct hist_entry *self)
{
return fprintf(fp, " %16s:%5d", self->thread->comm ?: "", self->thread->pid);
return fprintf(fp, " %16s:%5d", self->thread->comm ?: "", self->thread->pid);
}

static struct sort_entry sort_thread = {
.header = " Command: Pid ",
.header = " Command: Pid ",
.cmp = sort__thread_cmp,
.print = sort__thread_print,
};
Expand Down Expand Up @@ -363,11 +363,11 @@ sort__dso_cmp(struct hist_entry *left, struct hist_entry *right)
static size_t
sort__dso_print(FILE *fp, struct hist_entry *self)
{
return fprintf(fp, " %s", self->dso ? self->dso->name : "<unknown>");
return fprintf(fp, " %-25s", self->dso ? self->dso->name : "<unknown>");
}

static struct sort_entry sort_dso = {
.header = " Shared Object",
.header = " Shared Object ",
.cmp = sort__dso_cmp,
.print = sort__dso_print,
};
Expand Down

0 comments on commit cf25c63

Please sign in to comment.