[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240627133743.407048-1-adubey@linux.ibm.com>
Date: Thu, 27 Jun 2024 09:37:43 -0400
From: Abhishek Dubey <adubey@...ux.ibm.com>
To: linuxppc-dev@...ts.ozlabs.org
Cc: naveen.n.rao@...ux.vnet.ibm.com, mpe@...erman.id.au, npiggin@...il.com,
peterz@...radead.org, mingo@...hat.com, namhyung@...nel.org,
mark.rutland@....com, alexander.shishkin@...ux.intel.com,
jolsa@...nel.org, irogers@...gle.com, adrian.hunter@...el.com,
linux-perf-users@...r.kernel.org, linux-kernel@...r.kernel.org,
Abhishek Dubey <adubey@...ux.ibm.com>
Subject: [PATCH] Perf: Calling available function for stats printing
For printing dump_trace, just use existing stats_print()
function.
Signed-off-by: Abhishek Dubey <adubey@...ux.ibm.com>
---
tools/perf/builtin-report.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index 69618fb0110b..8678eebc49e6 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -1089,10 +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,
- rep->skip_empty);
- evlist__fprintf_nr_events(session->evlist, stdout,
- rep->skip_empty);
+ stats_print(rep);
return 0;
}
}
--
2.44.0
Powered by blists - more mailing lists