]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf stat: Make options local
authorIan Rogers <irogers@google.com>
Wed, 5 Jun 2024 06:38:27 +0000 (23:38 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 7 Jun 2024 19:59:53 +0000 (12:59 -0700)
commit0dddd91ab68fed4fe12b69fe225cb00a4ea16126
tree2f18e0491f9858582a791be4893503a6ffc2e9f5
parentd2307fd4f9895b44361d491f8bf474866b8351a2
perf stat: Make options local

Reduce the scope of stat_options to cmd_stat, and pass as an argument
to __cmd_record. This is done to make more localized changes to the
options in later patches. A side-effect of the change is to reduce the
size of a stripped PIE perf binary by 5952 bytes. The savings come
mainly in the dynamic relocation section.

Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Stephane Eranian <eranian@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240605063828.195700-1-irogers@google.com
tools/perf/builtin-stat.c