From: Bartlomiej Zolnierkiewicz <b.zolnierkie@xxxxxxxxxxx> Subject: [PATCH] vmevent: add arm support Tested on ARM EXYNOS4210 (Universal C210 board). Cc: Anton Vorontsov <anton.vorontsov@xxxxxxxxxx> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@xxxxxxxxxxx> Signed-off-by: Kyungmin Park <kyungmin.park@xxxxxxxxxxx> --- arch/arm/include/asm/unistd.h | 1 + arch/arm/kernel/calls.S | 1 + tools/testing/vmevent/vmevent-test.c | 3 +++ 3 files changed, 5 insertions(+) Index: b/arch/arm/include/asm/unistd.h =================================================================== --- a/arch/arm/include/asm/unistd.h 2012-05-22 15:17:15.590826904 +0200 +++ b/arch/arm/include/asm/unistd.h 2012-05-22 15:17:43.990826872 +0200 @@ -404,6 +404,7 @@ #define __NR_setns (__NR_SYSCALL_BASE+375) #define __NR_process_vm_readv (__NR_SYSCALL_BASE+376) #define __NR_process_vm_writev (__NR_SYSCALL_BASE+377) +#define __NR_vmevent_fd (__NR_SYSCALL_BASE+378) /* * The following SWIs are ARM private. Index: b/arch/arm/kernel/calls.S =================================================================== --- a/arch/arm/kernel/calls.S 2012-05-22 15:16:31.646826898 +0200 +++ b/arch/arm/kernel/calls.S 2012-05-22 15:17:02.850825441 +0200 @@ -387,6 +387,7 @@ /* 375 */ CALL(sys_setns) CALL(sys_process_vm_readv) CALL(sys_process_vm_writev) + CALL(sys_vmevent_fd) #ifndef syscalls_counted .equ syscalls_padding, ((NR_syscalls + 3) & ~3) - NR_syscalls #define syscalls_counted Index: b/tools/testing/vmevent/vmevent-test.c =================================================================== --- a/tools/testing/vmevent/vmevent-test.c 2012-05-22 15:18:46.702826642 +0200 +++ b/tools/testing/vmevent/vmevent-test.c 2012-05-22 15:19:21.302826872 +0200 @@ -3,6 +3,9 @@ #if defined(__x86_64__) #include "../../../arch/x86/include/generated/asm/unistd_64.h" #endif +#if defined(__arm__) +#include "../../../arch/arm/include/asm/unistd.h" +#endif #include <stdint.h> #include <stdlib.h> -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>