Skip to contentSkip to conversation

powerpc: Wire up sys_bpf() syscall

PATCH In review Pranith Kumar 3 participants 6 messages Oct 10, 2014 – Oct 21, 2014 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: Wire up sys_bpf() syscall

This patch wires up the new syscall sys_bpf() on powerpc.

---
 arch/powerpc/include/asm/systbl.h      | 1 +
 arch/powerpc/include/asm/unistd.h      | 2 +-
 arch/powerpc/include/uapi/asm/unistd.h | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)
arch/powerpc/include/asm/systbl.h +1 -0
index 7d8a600..ce9577d 100644
@@ -365,3 +365,4 @@ SYSCALL_SPU(renameat2)
 SYSCALL_SPU(seccomp)
 SYSCALL_SPU(getrandom)
 SYSCALL_SPU(memfd_create)
+SYSCALL_SPU(bpf)
arch/powerpc/include/asm/unistd.h +1 -1
index 4e9af3f..e0da021 100644
@@ -12,7 +12,7 @@
 #include <uapi/asm/unistd.h>
 
 
-#define __NR_syscalls		361
+#define __NR_syscalls		362
 
 #define __NR__exit __NR_exit
 #define NR_syscalls	__NR_syscalls
arch/powerpc/include/uapi/asm/unistd.h +1 -0
index 0688fc0..f55351f 100644
@@ -383,5 +383,6 @@
 #define __NR_seccomp		358
 #define __NR_getrandom		359
 #define __NR_memfd_create	360
+#define __NR_bpf		361
 
 #endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */
Signature · 1 line
2.1.0
#1 lore raw
Quoted 1 line · Pranith Kumar

This patch wires up the new syscall sys_bpf() on powerpc.

Is there a test suite we can run to verify it works?

cheers

#2 lore raw

We have a test suite under samples/bpf/

Quoted 10 lines · Michael Ellerman
Quoted 1 line · Pranith Kumar

This patch wires up the new syscall sys_bpf() on powerpc.

Is there a test suite we can run to verify it works?

cheers
_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev

Signature · 2 lines
Regards,
Denis
#3 lore raw
Quoted 1 line · Denis Kirjanov

We have a test suite under samples/bpf/

Thanks.

I looked under tools/testing/selftests, could it move in there?

cheers

#4 lore raw

I don't see any problems with it

Quoted 11 lines · Michael Ellerman
Quoted 1 line · Denis Kirjanov

We have a test suite under samples/bpf/

Thanks.

I looked under tools/testing/selftests, could it move in there?

cheers

Signature · 2 lines
Regards,
Denis
#5 lore raw
In reply to Michael Ellerman

I don't see any problems with it

Quoted 11 lines · Michael Ellerman
Quoted 1 line · Denis Kirjanov

We have a test suite under samples/bpf/

Thanks.

I looked under tools/testing/selftests, could it move in there?

cheers

Signature · 2 lines
Regards,
Denis