diff options
author | Abhishek Dubey <adubey@linux.ibm.com> | 2024-06-28 14:32:24 -0400 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2024-07-02 16:01:23 -0700 |
commit | 2eae307ec529a48dd6de89c86d0df62c7f5fc537 (patch) | |
tree | 5434d32ac406bc4e92a793cebafb26b547d376a9 /tools/perf/builtin-report.c | |
parent | b40934ae32232140e85dc7dc1c3ea0e296986723 (diff) |
perf report: Calling available function for stats printing
For printing dump_trace, just use existing stats_print()
function.
Signed-off-by: Abhishek Dubey <adubey@linux.ibm.com>
Link: https://lore.kernel.org/r/20240628183224.452055-1-adubey@linux.ibm.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 9718770facb5..6edc0d4ce6fb 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c @@ -1089,8 +1089,7 @@ static int __cmd_report(struct report *rep) perf_session__fprintf_dsos(session, stdout); if (dump_trace) { - perf_session__fprintf_nr_events(session, stdout); - evlist__fprintf_nr_events(session->evlist, stdout); + stats_print(rep); return 0; } } |