ARM counter registers and get_cyclecount()

Mark Robert Vaughan Murray markm at FreeBSD.org
Mon Oct 21 07:58:37 UTC 2013


On 21 Oct 2013, at 00:58, Ian Lepore <ian at FreeBSD.org> wrote:

>>> There are other complexities that come to mind... things like clocks
>>> that run slower or even stop in power-saving modes, is that a problem?
>> 
>> Yup :-(. But if its fast and the highest-resolution non-quantised timing available, I guess I'll use it. What I don't want is numbers with lots of low bits being non random/skipped; I'd rather have a slower counter still incrementing from the bottom bit up. If its running at CPU/Instruction clock speed, it will do.
>> 
>> M
> 
> On the very newest arm boards I have there are counters that can run as
> fast as 66 MHz (cpu runs at 800-1000 MHz).  That's by far the fastest
> I've seen yet.  On older boards it's likely to be a few MHz at best.

Yuk :-(. I was hoping for some approximation to 1-increment-per-instruction
or close.

> It's a pity you don't think the names are important.  IMO, the names of
> things are at least as important as the implementation (and often more
> so, because they're harder to change and that puts a greater premium on
> getting them right).

I don't think its unimportant; I think it is another thread of conversation. Right now i'm looking for a working counter with the right physical characteristics. What name the beastie gets will likely be apparent when its found/written.

M
-- 
Mark R V Murray

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 353 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-arm/attachments/20131021/7c763371/attachment.sig>


More information about the freebsd-arm mailing list