lkml.org 
[lkml]   [2008]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [ltt-dev] keypad/touchscreen driver events latencies using LTTng on ARM?
On Mon, Dec 01, 2008 at 05:57:37AM -0500, Mathieu Desnoyers wrote:
> Ok, so for LTTng on ARM it would make sense to use the same clock source
> as sched_clock for :
> mach-pxa, mach-realview, mach-sa1100, mach-versatile, plat-omap.
>
> We basically have, for each of these build scenarios, to take the mmio
> clock used by sched_clock and use it through
> kernel/trace/trace-clock-32-to-64 to extend it to 64-bits. Therefore we
> won't suffer from any of the constrains linked to cnt32_to_63 and we
> would be sure that the trace clock is correct wrt SMP wrt memory
> barriers and cache line bouncing because it uses per-cpu data to keep
> the counters.

Just remember that MMIO clock sources are not available until after
setup_arch() has finished - in other words, they don't work when the
kernel initially boots. Accessing them too early will cause a page
fault and hang the kernel.

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


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