Thread (3 messages) 3 messages, 3 authors, 2024-07-03

Re: [PATCH] perf report: Calling available function for stats printing

From: Ian Rogers <irogers@google.com>
Date: 2024-06-28 18:35:43
Also in: linux-perf-users, lkml

On Fri, Jun 28, 2024 at 11:32 AM Abhishek Dubey [off-list ref] wrote:
For printing dump_trace, just use existing stats_print()
function.

Signed-off-by: Abhishek Dubey <redacted>
Reviewed-by: Ian Rogers <irogers@google.com>

Thanks,
Ian
quoted hunk ↗ jump to hunk
---
 tools/perf/builtin-report.c | 3 +--
 1 file changed, 1 insertion(+), 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;
                }
        }
--
2.44.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help