Commit 2eae307e authored by Abhishek Dubey's avatar Abhishek Dubey Committed by Namhyung Kim

perf report: Calling available function for stats printing

For printing dump_trace, just use existing stats_print()
function.
Signed-off-by: default avatarAbhishek Dubey <adubey@linux.ibm.com>
Link: https://lore.kernel.org/r/20240628183224.452055-1-adubey@linux.ibm.comSigned-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
parent b40934ae
...@@ -1089,8 +1089,7 @@ static int __cmd_report(struct report *rep) ...@@ -1089,8 +1089,7 @@ static int __cmd_report(struct report *rep)
perf_session__fprintf_dsos(session, stdout); perf_session__fprintf_dsos(session, stdout);
if (dump_trace) { if (dump_trace) {
perf_session__fprintf_nr_events(session, stdout); stats_print(rep);
evlist__fprintf_nr_events(session->evlist, stdout);
return 0; return 0;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment