Skip to content

Commit

Permalink
perf/benchmark: fix seccomp_unotify benchmark for 32-bit
Browse files Browse the repository at this point in the history
Commit 7d5cb68 (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: 7d5cb68 (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>
  • Loading branch information
Jiri Slaby (SUSE) authored and Kees Cook committed Oct 19, 2023
1 parent ce9ecca commit 31c6570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/arch/x86/include/uapi/asm/unistd_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
#ifndef __NR_setns
#define __NR_setns 346
#endif
#ifdef __NR_seccomp
#ifndef __NR_seccomp
#define __NR_seccomp 354
#endif

0 comments on commit 31c6570

Please sign in to comment.