[Top] [All Lists]

Re: Performance measuring in MIPS R3000

To: Chetan B L <>
Subject: Re: Performance measuring in MIPS R3000
From: Ralf Baechle <>
Date: Fri, 17 Jan 2003 14:09:02 +0100
Cc: "''" <>
In-reply-to: <>; from on Thu, Jan 16, 2003 at 12:01:52PM +0530
Original-recipient: rfc822;
References: <>
User-agent: Mutt/
On Thu, Jan 16, 2003 at 12:01:52PM +0530, Chetan B L wrote:

>       I want to measure the time taken by any kernel function. 
> Is  there anything like rdtsc indtruction in MIPS ?
> I saw timepeg patch for measuring the same for Pentium , is there anything
> similar to it for MIPS ?

The subject of your mail is mentioning the R3000 which doesn't have any
kind of timer in the processor.  As already mentioned in my other posting
do_gettimeofday() is the portable timer interface providing the highest
accuracy.  But the R3000 processor itself doesn't provide any timers so
the precission of the clock will actually depend of the whatever timers
are provided by the rest of the system.  Hoever I doubt you're actually
using a true R3000 - the R3000 is an ~ 1988 vintage processor.  Later
R3000 processors frequently contain a suitable timer.


<Prev in Thread] Current Thread [Next in Thread>