]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf tests: use strdup() in "Object code reading"
authorJames Clark <james.clark@linaro.org>
Wed, 8 Oct 2025 12:42:00 +0000 (13:42 +0100)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 13 Oct 2025 08:58:51 +0000 (01:58 -0700)
commit4b5dafe616a5553f377a5f96bd02a191187eba86
tree131449824a0a5dda8b120801f7ec38eb74a35f4a
parent3a8660878839faadb4f1a6dd72c3179c1df56787
perf tests: use strdup() in "Object code reading"

Use strdup() instead of fixed PATH_MAX buffer for storing paths to not
waste memory.

Suggested-by: Ian Rogers <irogers@google.com>
Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: James Clark <james.clark@linaro.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/code-reading.c