]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf events: Remove scandir in thread synthesis
authorIan Rogers <irogers@google.com>
Sat, 22 Feb 2025 06:10:10 +0000 (22:10 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 24 Feb 2025 23:46:33 +0000 (15:46 -0800)
commit56406bd557fb928757cad53aea27e38c06e3f72b
tree8ca5b9a3e7be78ff4e78f209d670c577e0e2d526
parentd6cd7c9f0239b28652a7ca1870707f5ca6c49c9f
perf events: Remove scandir in thread synthesis

This avoids scanddir reading the directory into memory that's
allocated and instead allocates on the stack.

Acked-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20250222061015.303622-6-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/synthetic-events.c