]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf pmu: Switch to io_dir__readdir
authorIan Rogers <irogers@google.com>
Sat, 22 Feb 2025 06:10:08 +0000 (22:10 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 24 Feb 2025 23:46:33 +0000 (15:46 -0800)
commit6a81a3fd9e914581bb7fea383cad11445699762d
treeef25b95600e4cc04c9b15c26a1f329d90fc43a36
parentf7cada5f7e7f51fa88428f267ef7216b769fd262
perf pmu: Switch to io_dir__readdir

Avoid DIR allocations when scanning sysfs by using io_dir for the
readdir implementation, that allocates about 1kb on the stack.

Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20250222061015.303622-4-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/pmu.c
tools/perf/util/pmus.c