Skip to content

Commit 2eae307

Browse files
Abhishek Dubeynamhyung
authored andcommitted
perf report: Calling available function for stats printing
For printing dump_trace, just use existing stats_print() function. Signed-off-by: Abhishek Dubey <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
1 parent b40934a commit 2eae307

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tools/perf/builtin-report.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,8 +1089,7 @@ static int __cmd_report(struct report *rep)
10891089
perf_session__fprintf_dsos(session, stdout);
10901090

10911091
if (dump_trace) {
1092-
perf_session__fprintf_nr_events(session, stdout);
1093-
evlist__fprintf_nr_events(session->evlist, stdout);
1092+
stats_print(rep);
10941093
return 0;
10951094
}
10961095
}

0 commit comments

Comments
 (0)