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

Switch memory_node__read and build_mem_topology from opendir/readdir
to io_dir__readdir, with smaller stack allocations. Reduces peak
memory consumption of perf record by 10kb.

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