Skip to contentSkip to conversation

ARM: Wire up bpf syscall

PATCH New Thierry Reding 2 participants 3 messages Nov 10, 2014 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: Wire up bpf syscall

From: Thierry Reding <[email protected]>

Add the bpf syscall to ARM.

---
Note that I haven't tested whether this new syscall actually works on ARM, but it certainly gets rid of the annoying "syscall bpf not implemented" warning.

 arch/arm/include/uapi/asm/unistd.h | 1 +
 arch/arm/kernel/calls.S            | 1 +
 2 files changed, 2 insertions(+)
arch/arm/include/uapi/asm/unistd.h +1 -0
index 3aaa75cae90c..705bb7620673 100644
@@ -412,6 +412,7 @@
 #define __NR_seccomp			(__NR_SYSCALL_BASE+383)
 #define __NR_getrandom			(__NR_SYSCALL_BASE+384)
 #define __NR_memfd_create		(__NR_SYSCALL_BASE+385)
+#define __NR_bpf			(__NR_SYSCALL_BASE+386)
 
 /*
  * The following SWIs are ARM private.
arch/arm/kernel/calls.S +1 -0
index 9f899d8fdcca..e51833f8cc38 100644
@@ -395,6 +395,7 @@
 		CALL(sys_seccomp)
 		CALL(sys_getrandom)
 /* 385 */	CALL(sys_memfd_create)
+		CALL(sys_bpf)
 #ifndef syscalls_counted
 .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
 #define syscalls_counted
Signature · 1 line
2.1.3
#1 lore raw

PATCH 1/1 ARM: Wire up bpf syscall

Quoted 9 lines · Thierry Reding

From: Thierry Reding <[email protected]>

Add the bpf syscall to ARM.

---
Note that I haven't tested whether this new syscall actually works on ARM, but it certainly gets rid of the annoying "syscall bpf not implemented" warning.

I guess you're using an old kernel... the commit adding this is already merged - v3.18-rc3~4^2~4

Signature · 2 lines
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.
#2 lore raw

PATCH 1/1 ARM: Wire up bpf syscall

Quoted 5 lines · Russell King - ARM Linux
Quoted 4 lines · Thierry Reding

From: Thierry Reding <[email protected]>

Add the bpf syscall to ARM.

Quoted 8 lines
Quoted 5 lines

---
Note that I haven't tested whether this new syscall actually works on ARM, but it certainly gets rid of the annoying "syscall bpf not implemented" warning.

I guess you're using an old kernel... the commit adding this is already merged - v3.18-rc3~4^2~4

Indeed, I had just realized that I had been working on a branch with an out-dated base and was going to ask you to disregard this patch.

Sorry for the noise,
Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20141110/945f310d/attachment.sig>