|
|
|
Re: Counting clock cycles under Arm Linux | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
|
On Mon, Jan 19, 2009 at 4:59 PM, Malte Wienecke <Malte.Wienecke@xxxxxx> wrote: > Hi! > > on my SBC2440-II board with an arm920t core I want to count the clock > cycles or to measure time in an other very precise way in order to get > the exact execution time. > > I use the function gettimeofday() but for my purpose micro seconds not > precise enough. > > Can I use any couters or systemcalls to get more precise information > or is there a way to use something semilar to the RDTSC on an x86? To achieve 64bit RDTSC like on ARM the simplest way (but overkill) is to install Xenomai, but you will need to install it for a 2.6 kernel. The hard way is to pick the modifications needed to get the 64 bits tsc running, from Adeos and Xenomai and do something similar to the kernel you use. > Thanks for the help. > > ------------------------------------------------------------------- > List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm > FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php > Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php > ------------------------------------------------------------------- List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[Linux ARM] [Linux ARM MSM] [Linux ARM Kernel] [Fedora ARM] [IETF Annouce] [Security] [Bugtraq] [Linux] [Linux OMAP] [Linux MIPS] [ECOS] [Asterisk Internet PBX] [Linux API]
![]() |
![]() |