Skip to content

Commit fcb1c2d

Browse files
heicarstMartin Schwidefsky
authored andcommitted
s390: wire up bpf syscall
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
1 parent 66e9bbd commit fcb1c2d

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎arch/s390/include/uapi/asm/unistd.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,8 @@
286286
#define __NR_seccomp 348
287287
#define __NR_getrandom 349
288288
#define __NR_memfd_create 350
289-
#define NR_syscalls 351
289+
#define __NR_bpf 351
290+
#define NR_syscalls 352
290291

291292
/*
292293
* There are some system calls that are not present on 64 bit, some

‎arch/s390/kernel/compat_wrapper.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,3 +217,4 @@ COMPAT_SYSCALL_WRAP5(renameat2, int, olddfd, const char __user *, oldname, int,
217217
COMPAT_SYSCALL_WRAP3(seccomp, unsigned int, op, unsigned int, flags, const char __user *, uargs)
218218
COMPAT_SYSCALL_WRAP3(getrandom, char __user *, buf, size_t, count, unsigned int, flags)
219219
COMPAT_SYSCALL_WRAP2(memfd_create, const char __user *, uname, unsigned int, flags)
220+
COMPAT_SYSCALL_WRAP3(bpf, int, cmd, union bpf_attr *, attr, unsigned int, size);

‎arch/s390/kernel/syscalls.S‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,3 +359,4 @@ SYSCALL(sys_renameat2,sys_renameat2,compat_sys_renameat2)
359359
SYSCALL(sys_seccomp,sys_seccomp,compat_sys_seccomp)
360360
SYSCALL(sys_getrandom,sys_getrandom,compat_sys_getrandom)
361361
SYSCALL(sys_memfd_create,sys_memfd_create,compat_sys_memfd_create) /* 350 */
362+
SYSCALL(sys_bpf,sys_bpf,compat_sys_bpf)

0 commit comments

Comments
 (0)