aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/perf_counter/builtin-report.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/Documentation/perf_counter/builtin-report.c b/Documentation/perf_counter/builtin-report.c
index 9783d1e493c4..ca303fd74a71 100644
--- a/Documentation/perf_counter/builtin-report.c
+++ b/Documentation/perf_counter/builtin-report.c
@@ -504,7 +504,7 @@ sort__comm_print(FILE *fp, struct hist_entry *self)
504} 504}
505 505
506static struct sort_entry sort_comm = { 506static struct sort_entry sort_comm = {
507 .header = " Command", 507 .header = " Command",
508 .cmp = sort__comm_cmp, 508 .cmp = sort__comm_cmp,
509 .collapse = sort__comm_collapse, 509 .collapse = sort__comm_collapse,
510 .print = sort__comm_print, 510 .print = sort__comm_print,
@@ -569,10 +569,12 @@ sort__sym_print(FILE *fp, struct hist_entry *self)
569 if (verbose) 569 if (verbose)
570 ret += fprintf(fp, "%#018llx ", (__u64)self->ip); 570 ret += fprintf(fp, "%#018llx ", (__u64)self->ip);
571 571
572 if (self->sym) 572 if (self->sym) {
573 ret += fprintf(fp, "%s", self->sym->name); 573 ret += fprintf(fp, "[%c] %s",
574 else 574 self->dso == kernel_dso ? 'k' : '.', self->sym->name);
575 } else {
575 ret += fprintf(fp, "%#016llx", (__u64)self->ip); 576 ret += fprintf(fp, "%#016llx", (__u64)self->ip);
577 }
576 578
577 return ret; 579 return ret;
578} 580}
@@ -586,9 +588,9 @@ static struct sort_entry sort_sym = {
586static int sort__need_collapse = 0; 588static int sort__need_collapse = 0;
587 589
588struct sort_dimension { 590struct sort_dimension {
589 char *name; 591 char *name;
590 struct sort_entry *entry; 592 struct sort_entry *entry;
591 int taken; 593 int taken;
592}; 594};
593 595
594static struct sort_dimension sort_dimensions[] = { 596static struct sort_dimension sort_dimensions[] = {