Timer functions


I’m using the timer functions on Beagle Board on which Angstrom Linux is ported for calculating the MIPS of a codec . When I’m using the functions like omapdmtimer_init(), omap_dmtimer_enable(), omap_dmtimer_disable(), omap_dmtimer_start() etc…, I’m getting Segmentation fault as they are kernel functions. Is there any modules related to that or Is there any procedure to use those functions or Is there any way to calculate the cycles that are taken by the functions in the codec.

Thanks in advance,

With Regards,
Ajay Kumar.


You might try using the POSIX clock(3) function. I don't know what
its resolution is under Ångström, or how to interpret its results if

Hope this helps,