All of lore.kernel.org
 help / color / mirror / Atom feed
* Performance measuring in MIPS R3000
@ 2003-01-16  6:31 Chetan B L
  2003-01-16 15:18 ` Florian Lohoff
  2003-01-17 13:09 ` Ralf Baechle
  0 siblings, 2 replies; 3+ messages in thread
From: Chetan B L @ 2003-01-16  6:31 UTC (permalink / raw)
  To: 'linux-mips@linux-mips.org'

Hi,
      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 ?


Thanks
Chetan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Performance measuring in MIPS R3000
  2003-01-16  6:31 Performance measuring in MIPS R3000 Chetan B L
@ 2003-01-16 15:18 ` Florian Lohoff
  2003-01-17 13:09 ` Ralf Baechle
  1 sibling, 0 replies; 3+ messages in thread
From: Florian Lohoff @ 2003-01-16 15:18 UTC (permalink / raw)
  To: Chetan B L; +Cc: 'linux-mips@linux-mips.org'

[-- Attachment #1: Type: text/plain, Size: 571 bytes --]

On Thu, Jan 16, 2003 at 12:01:52PM +0530, Chetan B L wrote:
> Hi,
>       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 ?

Depending on the CPU - IIRC most R4k variants have something like this
and its sometimes used for generating Timer-Interrupts.

Flo
-- 
Florian Lohoff                  flo@rfc822.org             +49-5201-669912
                        Heisenberg may have been here.

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Performance measuring in MIPS R3000
  2003-01-16  6:31 Performance measuring in MIPS R3000 Chetan B L
  2003-01-16 15:18 ` Florian Lohoff
@ 2003-01-17 13:09 ` Ralf Baechle
  1 sibling, 0 replies; 3+ messages in thread
From: Ralf Baechle @ 2003-01-17 13:09 UTC (permalink / raw)
  To: Chetan B L; +Cc: 'linux-mips@linux-mips.org'

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.

  Ralf

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-17 13:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-16  6:31 Performance measuring in MIPS R3000 Chetan B L
2003-01-16 15:18 ` Florian Lohoff
2003-01-17 13:09 ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.