perf/benchmark: fix seccom_unotify benchmark for 32-bit
PATCH 1/1 perf/benchmark: fix seccom_unotify benchmark for 32-bit
From: Andrei Vagin <[email protected]>
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).
--- tools/arch/x86/include/uapi/asm/unistd_32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/arch/x86/include/uapi/asm/unistd_32.h +1 -1
@@ -26,6 +26,6 @@#ifndef __NR_setns#define __NR_setns 346#endif -#ifdef __NR_seccomp +#ifndef __NR_seccomp#define __NR_seccomp 354#endif
Signature · 1 line
2.42.0
Ignore this one, I mangled authorship.
Quoted 30 lines · Jiri Slaby (SUSE)
From: Andrei Vagin <[email protected]>
Commit
7d5cb68af638(perf/benchmark: add a new benchmark forseccom_unotify) added a reference to__NR_seccompinto perf. This is fine as it added also a definition of__NR_seccompfor 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 <[email protected]>Cc "Peter Zijlstra (Intel)" <[email protected]>Cc Kees Cook <[email protected]>Signed-off-by Jiri Slaby (SUSE) <[email protected]>--- tools/arch/x86/include/uapi/asm/unistd_32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/arch/x86/include/uapi/asm/unistd_32.h +1
-1@@ -26,6 +26,6 @@#ifndef __NR_setns#define __NR_setns 346#endif -#ifdef __NR_seccomp +#ifndef __NR_seccomp#define __NR_seccomp 354#endif
Signature · 2 lines
js suse labs