linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Read TCN-register in user space
@ 2005-03-07 11:02 Björn Östby
  2005-03-07 21:41 ` Kumar Gala
  0 siblings, 1 reply; 2+ messages in thread
From: Björn Östby @ 2005-03-07 11:02 UTC (permalink / raw)
  To: linuxppc-embedded

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

I'm currently using ELDK 3.0 (kernel 2.4.25) and a mpc823e trying to do some latency measurements for my final thesis project.

I'm wondering if there is any possibility to read the Timer Counter Register (TCN1) in user space. I have initially used gettimeofday(), which provides sufficient resolution (usec), but I suppose that solution probably adds on some kind of unknown context-switch latency. Does anyone have a clue on how to access this in user space? Could inline assembler or perhaps mmap() do the trick (I'm using C as programming language)?.


Regards,
Bjorn 





[-- Attachment #2: Type: text/html, Size: 1195 bytes --]

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

end of thread, other threads:[~2005-03-07 21:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-07 11:02 Read TCN-register in user space Björn Östby
2005-03-07 21:41 ` Kumar Gala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).