[PATCH] PPC64 collect and export low-level cpu usage statistics

Manish Ahuja ahuja at austin.ibm.com
Wed Feb 22 10:07:15 EST 2006


Added entry and exit points to system_call path.

Got rid of lpaca variables.


David Gibson wrote:

>On Wed, Feb 15, 2006 at 10:44:02PM -0600, Manish Ahuja wrote:
>[snip]
>  
>
>>>>Index: linux-2.6.15-rc6/arch/powerpc/kernel/process.c
>>>>===================================================================
>>>>--- linux-2.6.15-rc6.orig/arch/powerpc/kernel/process.c	2005-12-18 
>>>>16:36:54.000000000 -0800
>>>>+++ linux-2.6.15-rc6/arch/powerpc/kernel/process.c	2006-01-17 
>>>>21:20:25.000000000 -0800
>>>>@@ -243,6 +243,7 @@
>>>>	struct thread_struct *new_thread, *old_thread;
>>>>	unsigned long flags;
>>>>	struct task_struct *last;
>>>>+	struct paca_struct *lpaca;
>>>>  
>>>>
>>>>        
>>>>
>>>This could have been declared below (near pd)
>>>      
>>>
>>Yes... But it seems fine there..
>>    
>>
>
>Actually, I've been trying to get rid of lpaca locals everywhere.
>Using get_paca() directly is barely more verbose, and usually clearer.
>
>  
>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cpu-acct.txt
Url: http://ozlabs.org/pipermail/linuxppc64-dev/attachments/20060221/6d21af2b/attachment.txt 


More information about the Linuxppc64-dev mailing list