lkml.org 
[lkml]   [2008]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: keypad/touchscreen driver events latencies using LTTng on ARM?
On Mon, Dec 01, 2008 at 05:35:02AM -0500, Mathieu Desnoyers wrote:
> However, I wonder if some of the newer ARM boards would happen to have a
> cycle counter (timestamp counter), so we could implement a get_cycles()
> and trace clock for them ?

There continues to be nothing architected for that - it would be very
SoC specific and the precision and resolution is very variable if it's
provided at all. About the best implementation is a 32-bit counter
being clocked at various rates depending on the implementation.

Our best implementation is used for sched_clock() with all the
cnt32_to_63() stuff to extend the size of the counter which as we've
seen from other threads, may cause problems if used for other purposes.

The next best implementation is probably the hrtimer stuff.

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of:


\
 
 \ /
  Last update: 2008-12-01 11:49    [W:0.210 / U:1.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site