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,
};
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,
};