lkml.org 
[lkml]   [2023]   [Oct]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 6/6] perf/benchmark: add a new benchmark for seccom_unotify
From
On 08. 03. 23, 8:32, Andrei Vagin wrote:
> --- a/tools/arch/x86/include/uapi/asm/unistd_32.h
> +++ b/tools/arch/x86/include/uapi/asm/unistd_32.h
> @@ -23,3 +23,6 @@
> #ifndef __NR_setns
> #define __NR_setns 346
> #endif
> +#ifdef __NR_seccomp

Ouch. s/ifdef/ifndef/

bench/sched-seccomp-notify.c:46:24: error: '__NR_seccomp' undeclared

Will send a fix.

> +#define __NR_seccomp 354
> +#endif
> diff --git a/tools/arch/x86/include/uapi/asm/unistd_64.h b/tools/arch/x86/include/uapi/asm/unistd_64.h
> index a6f7fe84d4df..e0549617f9d7 100644
> --- a/tools/arch/x86/include/uapi/asm/unistd_64.h
> +++ b/tools/arch/x86/include/uapi/asm/unistd_64.h
> @@ -23,3 +23,6 @@
> #ifndef __NR_getcpu
> #define __NR_getcpu 309
> #endif
> +#ifndef __NR_seccomp

This one is good...

--
js
suse labs

\
 
 \ /
  Last update: 2023-10-17 10:26    [W:0.200 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site