Skip to contentSkip to conversation

Perf: Calling available function for stats printing

PATCH New Abhishek Dubey 1 participant 1 message May 16, 2024 perf events

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Perf: Calling available function for stats printing

For printing dump_trace, use existing stats_print() function.

---
 tools/perf/builtin-report.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
tools/perf/builtin-report.c +1 -4
index dcd93ee5fc24..3cabd5b0bfec 100644
@@ -1088,10 +1088,7 @@ static int __cmd_report(struct report *rep)
 			perf_session__fprintf_dsos(session, stdout);
 
 		if (dump_trace) {
-			perf_session__fprintf_nr_events(session, stdout,
-							rep->skip_empty);
-			evlist__fprintf_nr_events(session->evlist, stdout,
-						  rep->skip_empty);
+			stats_print(rep);
 			return 0;
 		}
 	}
Signature · 1 line
2.44.0