Commit a9b71b6c5473d2c1526deac0a1a207fe476f6088

Authored by Jeff Dike
Committed by Linus Torvalds
1 parent 00a905e614

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>

Showing 4 changed files with 0 additions and 9 deletions Side-by-side Diff

arch/um/include/kern_util.h
... ... @@ -13,7 +13,6 @@
13 13  
14 14 extern int ncpus;
15 15 extern int kmalloc_ok;
16   -extern int nsyscalls;
17 16  
18 17 #define UML_ROUND_UP(addr) \
19 18 ((((unsigned long) addr) + PAGE_SIZE - 1) & PAGE_MASK)
arch/um/kernel/skas/syscall.c
... ... @@ -17,9 +17,6 @@
17 17  
18 18 syscall_trace(r, 0);
19 19  
20   - current->thread.nsyscalls++;
21   - nsyscalls++;
22   -
23 20 /*
24 21 * This should go in the declaration of syscall, but when I do that,
25 22 * strace -f -c bash -c 'ls ; ls' breaks, sometimes not tracing
arch/um/kernel/syscall.c
... ... @@ -13,9 +13,6 @@
13 13 #include "asm/uaccess.h"
14 14 #include "asm/unistd.h"
15 15  
16   -/* Unlocked, I don't care if this is a bit off */
17   -int nsyscalls = 0;
18   -
19 16 long sys_fork(void)
20 17 {
21 18 long ret;
include/asm-um/processor-generic.h
... ... @@ -27,7 +27,6 @@
27 27 * as of 2.6.11).
28 28 */
29 29 int forking;
30   - int nsyscalls;
31 30 struct pt_regs regs;
32 31 int singlestep_syscall;
33 32 void *fault_addr;
... ... @@ -59,7 +58,6 @@
59 58 #define INIT_THREAD \
60 59 { \
61 60 .forking = 0, \
62   - .nsyscalls = 0, \
63 61 .regs = EMPTY_REGS, \
64 62 .fault_addr = NULL, \
65 63 .prev_sched = NULL, \