diff options
Diffstat (limited to 'tools/perf/tests/hists_common.c')
| -rw-r--r-- | tools/perf/tests/hists_common.c | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/tools/perf/tests/hists_common.c b/tools/perf/tests/hists_common.c index 6f34d08b84e5..745ab18d17db 100644 --- a/tools/perf/tests/hists_common.c +++ b/tools/perf/tests/hists_common.c @@ -179,9 +179,11 @@ void print_hists_in(struct hists *hists)  		he = rb_entry(node, struct hist_entry, rb_node_in);  		if (!he->filtered) { +			struct dso *dso = map__dso(he->ms.map); +  			pr_info("%2d: entry: %-8s [%-8s] %20s: period = %"PRIu64"\n",  				i, thread__comm_str(he->thread), -				he->ms.map->dso->short_name, +				dso->short_name,  				he->ms.sym->name, he->stat.period);  		} @@ -206,9 +208,11 @@ void print_hists_out(struct hists *hists)  		he = rb_entry(node, struct hist_entry, rb_node);  		if (!he->filtered) { +			struct dso *dso = map__dso(he->ms.map); +  			pr_info("%2d: entry: %8s:%5d [%-8s] %20s: period = %"PRIu64"/%"PRIu64"\n",  				i, thread__comm_str(he->thread), he->thread->tid, -				he->ms.map->dso->short_name, +				dso->short_name,  				he->ms.sym->name, he->stat.period,  				he->stat_acc ? he->stat_acc->period : 0);  		} | 
