Skip to content

Commit 31c6570

Browse files
Jiri Slaby (SUSE)kees
authored andcommitted
perf/benchmark: fix seccomp_unotify benchmark for 32-bit
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>
1 parent ce9ecca commit 31c6570

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/arch/x86/include/uapi/asm/unistd_32.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@
2626
#ifndef __NR_setns
2727
#define __NR_setns 346
2828
#endif
29-
#ifdef __NR_seccomp
29+
#ifndef __NR_seccomp
3030
#define __NR_seccomp 354
3131
#endif

0 commit comments

Comments
 (0)