linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] wire up fanotify and prlimit64 syscalls on ARM
@ 2010-08-25 14:56 Mikael Pettersson
  2010-08-25 15:08 ` Gadiyar, Anand
  2010-08-25 19:07 ` Russell King - ARM Linux
  0 siblings, 2 replies; 3+ messages in thread
From: Mikael Pettersson @ 2010-08-25 14:56 UTC (permalink / raw)
  To: linux-arm-kernel

The 2.6.36-rc kernel added three new system calls:
fanotify_init, fanotify_mark, and prlimit64.  This patch
wires them up on ARM.

The only non-trivial issue here is the u64 argument to
sys_fanotify_mark(), but it is the 3rd argument and thus
passed in r2/r3 in both kernel and user space, so it causes
no problems.

Tested with a 2.6.36-rc2 EABI kernel on an ixp4xx machine.

Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>
---
 arch/arm/include/asm/unistd.h |    3 +++
 arch/arm/kernel/calls.S       |    3 +++
 2 files changed, 6 insertions(+)

diff -rupN linux-2.6.36-rc2/arch/arm/include/asm/unistd.h linux-2.6.36-rc2.arm-fanotify+prlimit64-syscalls/arch/arm/include/asm/unistd.h
--- linux-2.6.36-rc2/arch/arm/include/asm/unistd.h	2010-08-24 12:03:48.000000000 +0200
+++ linux-2.6.36-rc2.arm-fanotify+prlimit64-syscalls/arch/arm/include/asm/unistd.h	2010-08-25 16:27:22.000000000 +0200
@@ -393,6 +393,9 @@
 #define __NR_perf_event_open		(__NR_SYSCALL_BASE+364)
 #define __NR_recvmmsg			(__NR_SYSCALL_BASE+365)
 #define __NR_accept4			(__NR_SYSCALL_BASE+366)
+#define __NR_fanotify_init		(__NR_SYSCALL_BASE+367)
+#define __NR_fanotify_mark		(__NR_SYSCALL_BASE+368)
+#define __NR_prlimit64			(__NR_SYSCALL_BASE+369)
 
 /*
  * The following SWIs are ARM private.
diff -rupN linux-2.6.36-rc2/arch/arm/kernel/calls.S linux-2.6.36-rc2.arm-fanotify+prlimit64-syscalls/arch/arm/kernel/calls.S
--- linux-2.6.36-rc2/arch/arm/kernel/calls.S	2010-08-24 12:03:48.000000000 +0200
+++ linux-2.6.36-rc2.arm-fanotify+prlimit64-syscalls/arch/arm/kernel/calls.S	2010-08-25 16:27:22.000000000 +0200
@@ -376,6 +376,9 @@
 		CALL(sys_perf_event_open)
 /* 365 */	CALL(sys_recvmmsg)
 		CALL(sys_accept4)
+		CALL(sys_fanotify_init)
+		CALL(sys_fanotify_mark)
+		CALL(sys_prlimit64)
 #ifndef syscalls_counted
 .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
 #define syscalls_counted

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

* [PATCH] wire up fanotify and prlimit64 syscalls on ARM
  2010-08-25 14:56 [PATCH] wire up fanotify and prlimit64 syscalls on ARM Mikael Pettersson
@ 2010-08-25 15:08 ` Gadiyar, Anand
  2010-08-25 19:07 ` Russell King - ARM Linux
  1 sibling, 0 replies; 3+ messages in thread
From: Gadiyar, Anand @ 2010-08-25 15:08 UTC (permalink / raw)
  To: linux-arm-kernel

Mikael Pettersson wrote:
> 
> The 2.6.36-rc kernel added three new system calls:
> fanotify_init, fanotify_mark, and prlimit64.  This patch
> wires them up on ARM.
> 
> The only non-trivial issue here is the u64 argument to
> sys_fanotify_mark(), but it is the 3rd argument and thus
> passed in r2/r3 in both kernel and user space, so it causes
> no problems.
> 
> Tested with a 2.6.36-rc2 EABI kernel on an ixp4xx machine.
> 
> Signed-off-by: Mikael Pettersson <mikpe@it.uu.se>

For what it's worth,

Tested-by: Anand Gadiyar <gadiyar@ti.com>

on an OMAP4

> ---
>  arch/arm/include/asm/unistd.h |    3 +++
>  arch/arm/kernel/calls.S       |    3 +++
>  2 files changed, 6 insertions(+)
> 
> diff -rupN linux-2.6.36-rc2/arch/arm/include/asm/unistd.h 
> linux-2.6.36-rc2.arm-fanotify+prlimit64-syscalls/arch/arm/include/asm/unistd.h
> --- linux-2.6.36-rc2/arch/arm/include/asm/unistd.h	2010-08-24 12:03:48.000000000 +0200
> +++ linux-2.6.36-rc2.arm-fanotify+prlimit64-syscalls/arch/arm/include/asm/unistd.h	2010-08-25 16:27:22.000000000 +0200
> @@ -393,6 +393,9 @@
>  #define __NR_perf_event_open		(__NR_SYSCALL_BASE+364)
>  #define __NR_recvmmsg			(__NR_SYSCALL_BASE+365)
>  #define __NR_accept4			(__NR_SYSCALL_BASE+366)
> +#define __NR_fanotify_init		(__NR_SYSCALL_BASE+367)
> +#define __NR_fanotify_mark		(__NR_SYSCALL_BASE+368)
> +#define __NR_prlimit64			(__NR_SYSCALL_BASE+369)
>  
>  /*
>   * The following SWIs are ARM private.
> diff -rupN linux-2.6.36-rc2/arch/arm/kernel/calls.S linux-2.6.36-rc2.arm-fanotify+prlimit64-syscalls/arch/arm/kernel/calls.S
> --- linux-2.6.36-rc2/arch/arm/kernel/calls.S	2010-08-24 12:03:48.000000000 +0200
> +++ linux-2.6.36-rc2.arm-fanotify+prlimit64-syscalls/arch/arm/kernel/calls.S	2010-08-25 16:27:22.000000000 +0200
> @@ -376,6 +376,9 @@
>  		CALL(sys_perf_event_open)
>  /* 365 */	CALL(sys_recvmmsg)
>  		CALL(sys_accept4)
> +		CALL(sys_fanotify_init)
> +		CALL(sys_fanotify_mark)
> +		CALL(sys_prlimit64)
>  #ifndef syscalls_counted
>  .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls
>  #define syscalls_counted

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

* [PATCH] wire up fanotify and prlimit64 syscalls on ARM
  2010-08-25 14:56 [PATCH] wire up fanotify and prlimit64 syscalls on ARM Mikael Pettersson
  2010-08-25 15:08 ` Gadiyar, Anand
@ 2010-08-25 19:07 ` Russell King - ARM Linux
  1 sibling, 0 replies; 3+ messages in thread
From: Russell King - ARM Linux @ 2010-08-25 19:07 UTC (permalink / raw)
  To: linux-arm-kernel

On Wed, Aug 25, 2010 at 04:56:12PM +0200, Mikael Pettersson wrote:
> The 2.6.36-rc kernel added three new system calls:
> fanotify_init, fanotify_mark, and prlimit64.  This patch
> wires them up on ARM.
> 
> The only non-trivial issue here is the u64 argument to
> sys_fanotify_mark(), but it is the 3rd argument and thus
> passed in r2/r3 in both kernel and user space, so it causes
> no problems.
> 
> Tested with a 2.6.36-rc2 EABI kernel on an ixp4xx machine.

Looks fine, please submit to the patch system with Anand's tested-by.
Thanks.

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

end of thread, other threads:[~2010-08-25 19:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-25 14:56 [PATCH] wire up fanotify and prlimit64 syscalls on ARM Mikael Pettersson
2010-08-25 15:08 ` Gadiyar, Anand
2010-08-25 19:07 ` Russell King - ARM Linux

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