Linux MIPS Architecture development
 help / color / mirror / Atom feed
* is there a way to read cp0_performance in user space?
@ 2006-03-14  2:56 zhuzhenhua
  2006-03-14 12:41 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: zhuzhenhua @ 2006-03-14  2:56 UTC (permalink / raw)
  To: linux-mips

to test my deocder program, i want read cp0_performance, is there a
way to do that in linux?

Best Regards
Zhuzhenhua

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

* Re: is there a way to read cp0_performance in user space?
  2006-03-14  2:56 is there a way to read cp0_performance in user space? zhuzhenhua
@ 2006-03-14 12:41 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2006-03-14 12:41 UTC (permalink / raw)
  To: zhuzhenhua; +Cc: linux-mips

On Tue, Mar 14, 2006 at 10:56:57AM +0800, zhuzhenhua wrote:

> to test my deocder program, i want read cp0_performance, is there a
> way to do that in linux?

There is no interface to directly access the performance counter registers
from an application as it is a priviledged CPU resource.  You can
however use oprofile's kernel interfaces.

  Ralf

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

end of thread, other threads:[~2006-03-14 12:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-14  2:56 is there a way to read cp0_performance in user space? zhuzhenhua
2006-03-14 12:41 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox