linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: Wire up bpf syscall
@ 2014-11-10 13:59 Thierry Reding
  2014-11-10 14:02 ` Russell King - ARM Linux
  0 siblings, 1 reply; 3+ messages in thread
From: Thierry Reding @ 2014-11-10 13:59 UTC (permalink / raw)
  To: linux-arm-kernel

From: Thierry Reding <treding@nvidia.com>

Add the bpf syscall to ARM.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
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(+)

diff --git a/arch/arm/include/uapi/asm/unistd.h b/arch/arm/include/uapi/asm/unistd.h
index 3aaa75cae90c..705bb7620673 100644
--- a/arch/arm/include/uapi/asm/unistd.h
+++ b/arch/arm/include/uapi/asm/unistd.h
@@ -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.
diff --git a/arch/arm/kernel/calls.S b/arch/arm/kernel/calls.S
index 9f899d8fdcca..e51833f8cc38 100644
--- a/arch/arm/kernel/calls.S
+++ b/arch/arm/kernel/calls.S
@@ -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
-- 
2.1.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] ARM: Wire up bpf syscall
  2014-11-10 13:59 [PATCH] ARM: Wire up bpf syscall Thierry Reding
@ 2014-11-10 14:02 ` Russell King - ARM Linux
  2014-11-10 14:07   ` Thierry Reding
  0 siblings, 1 reply; 3+ messages in thread
From: Russell King - ARM Linux @ 2014-11-10 14:02 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Nov 10, 2014 at 02:59:56PM +0100, Thierry Reding wrote:
> From: Thierry Reding <treding@nvidia.com>
> 
> Add the bpf syscall to ARM.
> 
> Signed-off-by: Thierry Reding <treding@nvidia.com>
> ---
> 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

-- 
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] ARM: Wire up bpf syscall
  2014-11-10 14:02 ` Russell King - ARM Linux
@ 2014-11-10 14:07   ` Thierry Reding
  0 siblings, 0 replies; 3+ messages in thread
From: Thierry Reding @ 2014-11-10 14:07 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Nov 10, 2014 at 02:02:28PM +0000, Russell King - ARM Linux wrote:
> On Mon, Nov 10, 2014 at 02:59:56PM +0100, Thierry Reding wrote:
> > From: Thierry Reding <treding@nvidia.com>
> > 
> > Add the bpf syscall to ARM.
> > 
> > Signed-off-by: Thierry Reding <treding@nvidia.com>
> > ---
> > 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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-10 14:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-10 13:59 [PATCH] ARM: Wire up bpf syscall Thierry Reding
2014-11-10 14:02 ` Russell King - ARM Linux
2014-11-10 14:07   ` Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).