Commit a9b71b6c authored by Jeff Dike's avatar Jeff Dike Committed by Linus Torvalds

uml: get rid of syscall counters

Get rid of some syscall counters which haven't been useful in ages.
Signed-off-by: default avatarJeff Dike <jdike@linux.intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 00a905e6
...@@ -13,7 +13,6 @@ extern int uml_exitcode; ...@@ -13,7 +13,6 @@ extern int uml_exitcode;
extern int ncpus; extern int ncpus;
extern int kmalloc_ok; extern int kmalloc_ok;
extern int nsyscalls;
#define UML_ROUND_UP(addr) \ #define UML_ROUND_UP(addr) \
((((unsigned long) addr) + PAGE_SIZE - 1) & PAGE_MASK) ((((unsigned long) addr) + PAGE_SIZE - 1) & PAGE_MASK)
......
...@@ -17,9 +17,6 @@ void handle_syscall(struct uml_pt_regs *r) ...@@ -17,9 +17,6 @@ void handle_syscall(struct uml_pt_regs *r)
syscall_trace(r, 0); syscall_trace(r, 0);
current->thread.nsyscalls++;
nsyscalls++;
/* /*
* This should go in the declaration of syscall, but when I do that, * This should go in the declaration of syscall, but when I do that,
* strace -f -c bash -c 'ls ; ls' breaks, sometimes not tracing * strace -f -c bash -c 'ls ; ls' breaks, sometimes not tracing
......
...@@ -13,9 +13,6 @@ ...@@ -13,9 +13,6 @@
#include "asm/uaccess.h" #include "asm/uaccess.h"
#include "asm/unistd.h" #include "asm/unistd.h"
/* Unlocked, I don't care if this is a bit off */
int nsyscalls = 0;
long sys_fork(void) long sys_fork(void)
{ {
long ret; long ret;
......
...@@ -27,7 +27,6 @@ struct thread_struct { ...@@ -27,7 +27,6 @@ struct thread_struct {
* as of 2.6.11). * as of 2.6.11).
*/ */
int forking; int forking;
int nsyscalls;
struct pt_regs regs; struct pt_regs regs;
int singlestep_syscall; int singlestep_syscall;
void *fault_addr; void *fault_addr;
...@@ -59,7 +58,6 @@ struct thread_struct { ...@@ -59,7 +58,6 @@ struct thread_struct {
#define INIT_THREAD \ #define INIT_THREAD \
{ \ { \
.forking = 0, \ .forking = 0, \
.nsyscalls = 0, \
.regs = EMPTY_REGS, \ .regs = EMPTY_REGS, \
.fault_addr = NULL, \ .fault_addr = NULL, \
.prev_sched = NULL, \ .prev_sched = NULL, \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment