aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2008-02-05 01:31:11 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-05 12:44:30 -0500
commita9b71b6c5473d2c1526deac0a1a207fe476f6088 (patch)
treeaf124559352283f663671bb59fa6346a1cc913ad /arch/um
parent00a905e6145ba200308a6a13e00248b85c600bd0 (diff)
uml: get rid of syscall counters
Get rid of some syscall counters which haven't been useful in ages. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/include/kern_util.h1
-rw-r--r--arch/um/kernel/skas/syscall.c3
-rw-r--r--arch/um/kernel/syscall.c3
3 files changed, 0 insertions, 7 deletions
diff --git a/arch/um/include/kern_util.h b/arch/um/include/kern_util.h
index 715ffb5b95c1..3c341222d252 100644
--- a/arch/um/include/kern_util.h
+++ b/arch/um/include/kern_util.h
@@ -13,7 +13,6 @@ extern int uml_exitcode;
13 13
14extern int ncpus; 14extern int ncpus;
15extern int kmalloc_ok; 15extern int kmalloc_ok;
16extern int nsyscalls;
17 16
18#define UML_ROUND_UP(addr) \ 17#define UML_ROUND_UP(addr) \
19 ((((unsigned long) addr) + PAGE_SIZE - 1) & PAGE_MASK) 18 ((((unsigned long) addr) + PAGE_SIZE - 1) & PAGE_MASK)
diff --git a/arch/um/kernel/skas/syscall.c b/arch/um/kernel/skas/syscall.c
index 50b476f2b38d..6450f024290f 100644
--- a/arch/um/kernel/skas/syscall.c
+++ b/arch/um/kernel/skas/syscall.c
@@ -17,9 +17,6 @@ void handle_syscall(struct uml_pt_regs *r)
17 17
18 syscall_trace(r, 0); 18 syscall_trace(r, 0);
19 19
20 current->thread.nsyscalls++;
21 nsyscalls++;
22
23 /* 20 /*
24 * This should go in the declaration of syscall, but when I do that, 21 * This should go in the declaration of syscall, but when I do that,
25 * strace -f -c bash -c 'ls ; ls' breaks, sometimes not tracing 22 * strace -f -c bash -c 'ls ; ls' breaks, sometimes not tracing
diff --git a/arch/um/kernel/syscall.c b/arch/um/kernel/syscall.c
index b9d92b2089ae..9cffc628a37e 100644
--- a/arch/um/kernel/syscall.c
+++ b/arch/um/kernel/syscall.c
@@ -13,9 +13,6 @@
13#include "asm/uaccess.h" 13#include "asm/uaccess.h"
14#include "asm/unistd.h" 14#include "asm/unistd.h"
15 15
16/* Unlocked, I don't care if this is a bit off */
17int nsyscalls = 0;
18
19long sys_fork(void) 16long sys_fork(void)
20{ 17{
21 long ret; 18 long ret;