wire up fanotify and prlimit64 syscalls on ARM
PATCH 1/1 wire up fanotify and prlimit64 syscalls on ARM
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.
--- arch/arm/include/asm/unistd.h | 3 +++ arch/arm/kernel/calls.S | 3 +++ 2 files changed, 6 insertions(+)
arch/arm/include/asm/unistd.h +3 -0
@@ -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.
arch/arm/kernel/calls.S +3 -0
@@ -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
PATCH 1/1 wire up fanotify and prlimit64 syscalls on ARM
Quoted 5 lines · Mikael Pettersson
The 2.6.36-rc kernel added three new system calls:
fanotify_init,fanotify_mark, and prlimit64. This patch wires them up on ARM.
Quoted 8 lines
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 <[email protected]>
For what it's worth,
on an OMAP4
Quoted 32 lines
--- 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.hlinux-2.6.36-rc2.arm-fanotify+prlimit64-syscalls/arch/arm/include/asm/unistd.harch/arm/include/asm/unistd.h +3
-0@@ -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.Slinux-2.6.36-rc2.arm-fanotify+prlimit64-syscalls/arch/arm/kernel/calls.Sarch/arm/kernel/calls.S +3
-0@@ -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
PATCH 1/1 wire up fanotify and prlimit64 syscalls on ARM
In reply to Mikael PetterssonQuoted 10 lines · Mikael Pettersson
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.