]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf machine: Reuse module path buffer
authorIan Rogers <irogers@google.com>
Sat, 22 Feb 2025 06:10:13 +0000 (22:10 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 24 Feb 2025 23:46:33 +0000 (15:46 -0800)
commite7af1946818b302d1f8b83b6896e04e0fe8bc2eb
tree7a625235e9b7c250f3fb026aa7dd2a3cadfa1c50
parentd996c726a5a4c794ed1d1e54702179d319d1c7e8
perf machine: Reuse module path buffer

Rather than copying the path and appending the directory entry in a
fresh path buffer, append to the path at the end of where it is for
the recursion level. This saves a PATH_MAX buffer per recursion level
and some unnecessary copying.

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