perf/benchmark: fix seccomp_unotify benchmark for 32-bit
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Tue, 17 Oct 2023 08:30:19 +0000 (10:30 +0200)
committerKees Cook <keescook@chromium.org>
Thu, 19 Oct 2023 00:47:18 +0000 (17:47 -0700)
commit31c65705a8cfa5f80d3824c686ab74b0409ee76d
treec3e91311cd2af0205e5a26d4bfc31c52ec46a06d
parentce9ecca0238b140b88f43859b211c9fdfd8e5b70
perf/benchmark: fix seccomp_unotify benchmark for 32-bit

Commit 7d5cb68af638 (perf/benchmark: add a new benchmark for
seccom_unotify) added a reference to __NR_seccomp into perf. This is
fine as it added also a definition of __NR_seccomp for 64-bit. But it
failed to do so for 32-bit as instead of ifndef, ifdef was used.

Fix this typo (so fix the build of perf on 32-bit).

Fixes: 7d5cb68af638 (perf/benchmark: add a new benchmark for seccom_unotify)
Cc: Andrei Vagin <avagin@google.com>
Cc: "Peter Zijlstra (Intel)" <peterz@infradead.org>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20231017083019.31733-1-jirislaby@kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
tools/arch/x86/include/uapi/asm/unistd_32.h