]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf trace: Allocate syscall stats only if summary is on
authorNamhyung Kim <namhyung@kernel.org>
Wed, 5 Feb 2025 20:54:40 +0000 (12:54 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 13 Feb 2025 03:44:10 +0000 (19:44 -0800)
commitc7f821b8768df6f889dd8993db94925c6636a691
tree5e29a6e93bb1aeb401dc54017728d63161c5c709
parent615ec00b06f78912c370b372426190768402a5b9
perf trace: Allocate syscall stats only if summary is on

The syscall stats are used only when summary is requested.  Let's avoid
unnecessary operations.  While at it, let's pass 'trace' pointer
directly instead of passing 'output' file pointer and 'summary' option
in the 'trace' separately.

Reviewed-by: Howard Chu <howardchu95@gmail.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Link: https://lore.kernel.org/r/20250205205443.1986408-2-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-trace.c