perf tools: Declare syscalltbl_*[] as const for all archs
authorTiezhu Yang <yangtiezhu@loongson.cn>
Tue, 30 May 2023 10:09:57 +0000 (18:09 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 5 Jun 2023 14:36:17 +0000 (11:36 -0300)
commit49f3806d89e4cf9e330b6f2e39db1c913a8fd25a
treec18e44c0c48696f4ea9a538056e86db18c349b07
parent16203e9cd01896b4244100a8e3fb9f6e612ab2b1
perf tools: Declare syscalltbl_*[] as const for all archs

syscalltbl_*[] should never be changing, let us declare it as const.

Suggested-by: Ian Rogers <irogers@google.com>
Reviewed-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: loongarch@lists.linux.dev
Link: https://lore.kernel.org/r/1685441401-8709-2-git-send-email-yangtiezhu@loongson.cn
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/arch/arm64/entry/syscalls/mksyscalltbl
tools/perf/arch/loongarch/entry/syscalls/mksyscalltbl
tools/perf/arch/mips/entry/syscalls/mksyscalltbl
tools/perf/arch/powerpc/entry/syscalls/mksyscalltbl
tools/perf/arch/s390/entry/syscalls/mksyscalltbl
tools/perf/arch/x86/entry/syscalls/syscalltbl.sh
tools/perf/util/syscalltbl.c