From: Kumar Gala <kumar.gala@freescale.com>
To: "Björn Östby" <Bjorn.Ostby@combitechsystems.com>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: Read TCN-register in user space
Date: Mon, 7 Mar 2005 15:41:06 -0600 [thread overview]
Message-ID: <bb55e4fee0c9d53e4a738e74bc91aa5b@freescale.com> (raw)
In-Reply-To: <004B1D7A5257174C9044A1B7BD0E60ED0178CBF5@ratatosk.combitechsystems.com>
There is a proper way to do this and hackish way. The proper way is to=20=
eventually provide some interface via the work BenH has been doing with=20=
vDSO (while out). The hackish way is to export it via some /proc or=20
sysfs attribute. The hackish way will not make its way into a mainline=20=
tree.
- kumar
On Mar 7, 2005, at 5:02 AM, Bj=F6rn =D6stby wrote:
> I'm currently using ELDK 3.0 (kernel 2.4.25) and a mpc823e trying to=20=
> do some latency measurements for my final thesis project.
>
> I'm wondering if there is any possibility to read the Timer Counter=20
> Register (TCN1) in user space. I have initially used gettimeofday(),=20=
> which provides sufficient resolution (usec), but I suppose that=20
> solution probably adds on some kind of unknown context-switch latency.=20=
> Does anyone have a clue on how to access this in user space? Could=20
> inline assembler or perhaps mmap() do the trick (I'm using C as=20
> programming language)?.
>
>
>
> Regards,
> Bjorn
>
>
>
> <ATT07173.txt>=
prev parent reply other threads:[~2005-03-07 21:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-07 11:02 Read TCN-register in user space Björn Östby
2005-03-07 21:41 ` Kumar Gala [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bb55e4fee0c9d53e4a738e74bc91aa5b@freescale.com \
--to=kumar.gala@freescale.com \
--cc=Bjorn.Ostby@combitechsystems.com \
--cc=linuxppc-embedded@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).