From: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
To: Pekka Enberg <penberg@kernel.org>
Cc: Anton Vorontsov <anton.vorontsov@linaro.org>, linux-mm@kvack.org
Subject: [PATCH] vmevent: add arm support
Date: Wed, 23 May 2012 09:27:21 +0200 [thread overview]
Message-ID: <201205230927.21766.b.zolnierkie@samsung.com> (raw)
From: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Subject: [PATCH] vmevent: add arm support
Tested on ARM EXYNOS4210 (Universal C210 board).
Cc: Anton Vorontsov <anton.vorontsov@linaro.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
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@kvack.org. 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@kvack.org"> email@kvack.org </a>
next reply other threads:[~2012-05-23 7:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-23 7:27 Bartlomiej Zolnierkiewicz [this message]
2012-05-25 7:20 ` Pekka Enberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201205230927.21766.b.zolnierkie@samsung.com \
--to=b.zolnierkie@samsung.com \
--cc=anton.vorontsov@linaro.org \
--cc=linux-mm@kvack.org \
--cc=penberg@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox