]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf stat-shadow: Read tool events directly
authorIan Rogers <irogers@google.com>
Thu, 13 Nov 2025 18:05:10 +0000 (10:05 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Tue, 18 Nov 2025 02:43:08 +0000 (18:43 -0800)
commit3d65f6445fd93e3eb4cb63a828c36625b4929abd
tree75359e699546b17dd79a3d3d2670c0c1cab24309
parentbdf96c4ecd69523d97c98e47284caddde20b1df7
perf stat-shadow: Read tool events directly

When reading time values for metrics don't use the globals updated in
builtin-stat, just read the events as regular events. The only
exception is for time events where nanoseconds need converting to
seconds as metrics assume time metrics are in seconds.

Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/stat-shadow.c