]> www.infradead.org Git - users/jedix/linux-maple.git/commit
perf trace: Make syscall table stable
authorIan Rogers <irogers@google.com>
Wed, 19 Mar 2025 05:07:39 +0000 (22:07 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 21 Mar 2025 05:58:27 +0000 (22:58 -0700)
commitccc60dce3e2d0dfcee0b3666d9e2d95ef001ea1f
treed2fc4e57ab7eac0b073954b552e59e3cda0d899e
parent95b802ca9def90a2147f2d9b884123a16ed7a507
perf trace: Make syscall table stable

Namhyung fixed the syscall table being reallocated and moving by
reloading the system call pointer after a move:
https://lore.kernel.org/lkml/Z9YHCzINiu4uBQ8B@google.com/
This could be brittle so this patch changes the syscall table to be an
array of pointers of "struct syscall" that don't move. Remove
unnecessary copies and searches with this change.

Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Arnaldo Carvalho de Melo <acme@kernel.org>
Link: https://lore.kernel.org/r/20250319050741.269828-13-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/builtin-trace.c