UML - Get rid of syscall counters
PATCH 3/6 UML - Get rid of syscall counters
Get rid of some syscall counters which haven't been useful in ages.
Signed-off-by Jeff Dike <[email protected]>
--- arch/um/include/kern_util.h | 1 - arch/um/kernel/skas/syscall.c | 3 --- arch/um/kernel/syscall.c | 3 --- include/asm-um/processor-generic.h | 2 -- 4 files changed, 9 deletions(-)
arch/um/include/kern_util.h +0 -1
@@ -13,7 +13,6 @@ extern int uml_exitcode;extern int ncpus;extern int kmalloc_ok; -extern int nsyscalls;#define UML_ROUND_UP (addr) \ ((((unsigned long) addr) + PAGE_SIZE - 1) & PAGE_MASK)
arch/um/kernel/skas/syscall.c +0 -3
@@ -17,9 +17,6 @@ void handle_syscall(struct uml_pt_regs *syscall_trace (r,0 ); - current->thread.nsyscalls++; - nsyscalls++; -/* * This should go in the declaration of syscall, but when I do that, * strace -f -c bash -c 'ls ; ls' breaks, sometimes not tracing
arch/um/kernel/syscall.c +0 -3
@@ -13,9 +13,6 @@#include "asm/uaccess.h" #include "asm/unistd.h" -/* Unlocked, I don't care if this is a bit off */ -int nsyscalls =0 ; -long sys_fork (void ) {long ret;
include/asm-um/processor-generic.h +0 -2
@@ -26,7 +26,6 @@ struct thread_struct {* as of 2.6.11). */ int forking; -int nsyscalls;struct pt_regs regs;int singlestep_syscall;void *fault_addr;
@@ -58,7 +57,6 @@ struct thread_struct {#define INIT_THREAD \ { \ .forking = 0, \ - .nsyscalls = 0, \ .regs = EMPTY_REGS, \ .fault_addr = NULL, \ .prev_sched = NULL, \
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel