linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] powerpc: Wire up sys_bpf() syscall
@ 2014-10-10  5:53 Pranith Kumar
  2014-10-21  4:38 ` Michael Ellerman
  0 siblings, 1 reply; 6+ messages in thread
From: Pranith Kumar @ 2014-10-10  5:53 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, Paul Mackerras, Michael Ellerman,
	Anton Blanchard, David Herrmann, Andrew Morton, Fabian Frederick,
	open list:LINUX FOR POWERPC...,
	open list

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

Signed-off-by: Pranith Kumar <bobby.prani@gmail.com>
---
 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(-)

diff --git a/arch/powerpc/include/asm/systbl.h b/arch/powerpc/include/asm/systbl.h
index 7d8a600..ce9577d 100644
--- a/arch/powerpc/include/asm/systbl.h
+++ b/arch/powerpc/include/asm/systbl.h
@@ -365,3 +365,4 @@ SYSCALL_SPU(renameat2)
 SYSCALL_SPU(seccomp)
 SYSCALL_SPU(getrandom)
 SYSCALL_SPU(memfd_create)
+SYSCALL_SPU(bpf)
diff --git a/arch/powerpc/include/asm/unistd.h b/arch/powerpc/include/asm/unistd.h
index 4e9af3f..e0da021 100644
--- a/arch/powerpc/include/asm/unistd.h
+++ b/arch/powerpc/include/asm/unistd.h
@@ -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
diff --git a/arch/powerpc/include/uapi/asm/unistd.h b/arch/powerpc/include/uapi/asm/unistd.h
index 0688fc0..f55351f 100644
--- a/arch/powerpc/include/uapi/asm/unistd.h
+++ b/arch/powerpc/include/uapi/asm/unistd.h
@@ -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_ */
-- 
2.1.0

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

* Re: powerpc: Wire up sys_bpf() syscall
  2014-10-10  5:53 [PATCH] powerpc: Wire up sys_bpf() syscall Pranith Kumar
@ 2014-10-21  4:38 ` Michael Ellerman
  2014-10-21  4:52   ` Denis Kirjanov
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Ellerman @ 2014-10-21  4:38 UTC (permalink / raw)
  To: Pranith Kumar, Benjamin Herrenschmidt, Paul Mackerras,
	Anton Blanchard, David Herrmann, Andrew Morton, Fabian Frederick,
	linuxppc-dev, linux-kernel

On Fri, 2014-10-10 at 05:53:45 UTC, Pranith Kumar wrote:
> This patch wires up the new syscall sys_bpf() on powerpc.

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

cheers

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

* Re: powerpc: Wire up sys_bpf() syscall
  2014-10-21  4:38 ` Michael Ellerman
@ 2014-10-21  4:52   ` Denis Kirjanov
  2014-10-21  4:54     ` Michael Ellerman
  0 siblings, 1 reply; 6+ messages in thread
From: Denis Kirjanov @ 2014-10-21  4:52 UTC (permalink / raw)
  To: Michael Ellerman
  Cc: linux-kernel, Fabian Frederick, Paul Mackerras, Anton Blanchard,
	David Herrmann, Pranith Kumar, linuxppc-dev, Andrew Morton

We have a test suite under samples/bpf/


On 10/21/14, Michael Ellerman <mpe@ellerman.id.au> wrote:
> On Fri, 2014-10-10 at 05:53:45 UTC, Pranith Kumar wrote:
>> 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
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev


-- 
Regards,
Denis

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

* Re: powerpc: Wire up sys_bpf() syscall
  2014-10-21  4:52   ` Denis Kirjanov
@ 2014-10-21  4:54     ` Michael Ellerman
  2014-10-21  5:12       ` Denis Kirjanov
  2014-10-21  5:12       ` Denis Kirjanov
  0 siblings, 2 replies; 6+ messages in thread
From: Michael Ellerman @ 2014-10-21  4:54 UTC (permalink / raw)
  To: Denis Kirjanov
  Cc: linux-kernel, Fabian Frederick, Paul Mackerras, Anton Blanchard,
	David Herrmann, Pranith Kumar, linuxppc-dev, Andrew Morton

On Tue, 2014-10-21 at 08:52 +0400, Denis Kirjanov wrote:
> We have a test suite under samples/bpf/

Thanks.

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

cheers

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

* Re: powerpc: Wire up sys_bpf() syscall
  2014-10-21  4:54     ` Michael Ellerman
@ 2014-10-21  5:12       ` Denis Kirjanov
  2014-10-21  5:12       ` Denis Kirjanov
  1 sibling, 0 replies; 6+ messages in thread
From: Denis Kirjanov @ 2014-10-21  5:12 UTC (permalink / raw)
  To: Michael Ellerman
  Cc: linux-kernel, Fabian Frederick, Paul Mackerras, Anton Blanchard,
	David Herrmann, Pranith Kumar, linuxppc-dev, Andrew Morton

I don't see any problems with it

On 10/21/14, Michael Ellerman <mpe@ellerman.id.au> wrote:
> On Tue, 2014-10-21 at 08:52 +0400, Denis Kirjanov wrote:
>> We have a test suite under samples/bpf/
>
> Thanks.
>
> I looked under tools/testing/selftests, could it move in there?
>
> cheers
>
>
>


-- 
Regards,
Denis

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

* Re: powerpc: Wire up sys_bpf() syscall
  2014-10-21  4:54     ` Michael Ellerman
  2014-10-21  5:12       ` Denis Kirjanov
@ 2014-10-21  5:12       ` Denis Kirjanov
  1 sibling, 0 replies; 6+ messages in thread
From: Denis Kirjanov @ 2014-10-21  5:12 UTC (permalink / raw)
  To: Michael Ellerman
  Cc: linux-kernel, Fabian Frederick, Paul Mackerras, Anton Blanchard,
	David Herrmann, Pranith Kumar, linuxppc-dev, Andrew Morton

I don't see any problems with it

On 10/21/14, Michael Ellerman <mpe@ellerman.id.au> wrote:
> On Tue, 2014-10-21 at 08:52 +0400, Denis Kirjanov wrote:
>> We have a test suite under samples/bpf/
>
> Thanks.
>
> I looked under tools/testing/selftests, could it move in there?
>
> cheers
>
>
>


-- 
Regards,
Denis

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

end of thread, other threads:[~2014-10-21  5:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-10  5:53 [PATCH] powerpc: Wire up sys_bpf() syscall Pranith Kumar
2014-10-21  4:38 ` Michael Ellerman
2014-10-21  4:52   ` Denis Kirjanov
2014-10-21  4:54     ` Michael Ellerman
2014-10-21  5:12       ` Denis Kirjanov
2014-10-21  5:12       ` Denis Kirjanov

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).