From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1J2YVC-0001br-9i for user-mode-linux-devel@lists.sourceforge.net; Wed, 12 Dec 2007 12:48:22 -0800 Received: from saraswathi.solana.com ([198.99.130.12]) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1J2YV7-0006rc-Kg for user-mode-linux-devel@lists.sourceforge.net; Wed, 12 Dec 2007 12:48:22 -0800 Date: Wed, 12 Dec 2007 15:47:58 -0500 From: Jeff Dike Message-ID: <20071212204758.GA9129@c2.user-mode-linux.org> Mime-Version: 1.0 Content-Disposition: inline Subject: [uml-devel] [PATCH 3/6] UML - Get rid of syscall counters List-Id: The user-mode Linux development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: user-mode-linux-devel-bounces@lists.sourceforge.net Errors-To: user-mode-linux-devel-bounces@lists.sourceforge.net To: Andrew Morton Cc: LKML , uml-devel Get rid of some syscall counters which haven't been useful in ages. Signed-off-by: Jeff Dike --- 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(-) Index: linux-2.6-git/arch/um/include/kern_util.h =================================================================== --- linux-2.6-git.orig/arch/um/include/kern_util.h 2007-12-12 13:28:42.000000000 -0500 +++ linux-2.6-git/arch/um/include/kern_util.h 2007-12-12 13:36:57.000000000 -0500 @@ -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) Index: linux-2.6-git/arch/um/kernel/skas/syscall.c =================================================================== --- linux-2.6-git.orig/arch/um/kernel/skas/syscall.c 2007-12-03 23:56:34.000000000 -0500 +++ linux-2.6-git/arch/um/kernel/skas/syscall.c 2007-12-12 13:36:58.000000000 -0500 @@ -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 Index: linux-2.6-git/arch/um/kernel/syscall.c =================================================================== --- linux-2.6-git.orig/arch/um/kernel/syscall.c 2007-12-03 23:56:34.000000000 -0500 +++ linux-2.6-git/arch/um/kernel/syscall.c 2007-12-12 13:36:58.000000000 -0500 @@ -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; Index: linux-2.6-git/include/asm-um/processor-generic.h =================================================================== --- linux-2.6-git.orig/include/asm-um/processor-generic.h 2007-12-12 13:28:42.000000000 -0500 +++ linux-2.6-git/include/asm-um/processor-generic.h 2007-12-12 13:51:08.000000000 -0500 @@ -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 User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759080AbXLLUuw (ORCPT ); Wed, 12 Dec 2007 15:50:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1760673AbXLLUtI (ORCPT ); Wed, 12 Dec 2007 15:49:08 -0500 Received: from saraswathi.solana.com ([198.99.130.12]:40751 "EHLO saraswathi.solana.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760644AbXLLUtG (ORCPT ); Wed, 12 Dec 2007 15:49:06 -0500 Date: Wed, 12 Dec 2007 15:47:58 -0500 From: Jeff Dike To: Andrew Morton Cc: LKML , uml-devel Subject: [PATCH 3/6] UML - Get rid of syscall counters Message-ID: <20071212204758.GA9129@c2.user-mode-linux.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Get rid of some syscall counters which haven't been useful in ages. Signed-off-by: Jeff Dike --- 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(-) Index: linux-2.6-git/arch/um/include/kern_util.h =================================================================== --- linux-2.6-git.orig/arch/um/include/kern_util.h 2007-12-12 13:28:42.000000000 -0500 +++ linux-2.6-git/arch/um/include/kern_util.h 2007-12-12 13:36:57.000000000 -0500 @@ -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) Index: linux-2.6-git/arch/um/kernel/skas/syscall.c =================================================================== --- linux-2.6-git.orig/arch/um/kernel/skas/syscall.c 2007-12-03 23:56:34.000000000 -0500 +++ linux-2.6-git/arch/um/kernel/skas/syscall.c 2007-12-12 13:36:58.000000000 -0500 @@ -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 Index: linux-2.6-git/arch/um/kernel/syscall.c =================================================================== --- linux-2.6-git.orig/arch/um/kernel/syscall.c 2007-12-03 23:56:34.000000000 -0500 +++ linux-2.6-git/arch/um/kernel/syscall.c 2007-12-12 13:36:58.000000000 -0500 @@ -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; Index: linux-2.6-git/include/asm-um/processor-generic.h =================================================================== --- linux-2.6-git.orig/include/asm-um/processor-generic.h 2007-12-12 13:28:42.000000000 -0500 +++ linux-2.6-git/include/asm-um/processor-generic.h 2007-12-12 13:51:08.000000000 -0500 @@ -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, \