提交 95ed6fd0 编写于 作者: P Peter Zijlstra 提交者: Ingo Molnar

perf report: Simplify symbol output

The DSO can be printed already - no need to repeat it in the
symbol field.
Signed-off-by: NPeter 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>
LKML-Reference: <new-submission>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 af794b94
......@@ -414,7 +414,7 @@ sort__dso_print(FILE *fp, struct hist_entry *self)
if (self->dso)
return fprintf(fp, " %-25s", self->dso->name);
return fprintf(fp, " %016llx", (__u64)self->ip);
return fprintf(fp, " %016llx ", (__u64)self->ip);
}
static struct sort_entry sort_dso = {
......@@ -447,21 +447,16 @@ sort__sym_print(FILE *fp, struct hist_entry *self)
if (verbose)
ret += fprintf(fp, " %#018llx", (__u64)self->ip);
if (self->dso)
ret += fprintf(fp, " %s: ", self->dso->name);
else
ret += fprintf(fp, " %#016llx: ", (__u64)self->ip);
if (self->sym)
ret += fprintf(fp, "%s", self->sym->name);
ret += fprintf(fp, " %s", self->sym->name);
else
ret += fprintf(fp, "%#016llx", (__u64)self->ip);
ret += fprintf(fp, " %#016llx", (__u64)self->ip);
return ret;
}
static struct sort_entry sort_sym = {
.header = " Shared Object: Symbol",
.header = " Symbol",
.cmp = sort__sym_cmp,
.print = sort__sym_print,
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册