]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf stat: Fix opt->value type for parse_cache_level
authorIan Rogers <irogers@google.com>
Thu, 19 Mar 2026 23:33:49 +0000 (16:33 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 26 Mar 2026 22:03:47 +0000 (15:03 -0700)
commit44311ae84ad9177fb311aee856027861c22f17b2
tree2e3c1414632284c8b4455573dbae505fa68af379
parentcfaade34b52aa1ec553044255702c4b31b57c005
perf stat: Fix opt->value type for parse_cache_level

Commit f5803651b4a4 ("perf stat: Choose the most disaggregate command
line option") changed aggregation option handling for `perf stat` but
not `perf stat report` leading to parse_cache_level being passed a
struct in the `perf stat` case but erroneously an aggr_mode enum value
for `perf stat report`. Change the `perf stat report` aggregation
handling to use the same opt_aggr_mode as `perf stat`. Also, just pass
the boolean for consistency with other boolean argument handling.

Fixes: f5803651b4a4 ("perf stat: Choose the most disaggregate command line option")
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-stat.c