Måns Rullgård wrote:
Kieran Bingham <[email protected]>
writes:

Is it possible to read / access the cycle count register in userspace?

The counters are accessible to userspace only if enabled in the
kernel.  Here's a patch to do that:
http://git.mansr.com/?p=linux-omap;a=commitdiff;h=5170038

Aha - the missing link ...

That patch states it depends on CPU_V7 will this work on ARM9? - I'm on a DM365 processor

I added

<http://git.mansr.com/?p=linux-omap;a=blob;f=arch/arm/mm/proc-v7.S;h=fec926a18ad2975571755d74aa2b5a57e486843b;hb=5170038#l275> mov r0, #1 <http://git.mansr.com/?p=linux-omap;a=blob;f=arch/arm/mm/proc-v7.S;h=fec926a18ad2975571755d74aa2b5a57e486843b;hb=5170038#l276> mcr p15, 0, r0, c9, c14, 0

to the __arm926_setup: within arch/arm/mm/proc-arm926.S but the kernel fails to boot past init. I presume it causes an illegal instruction and spins...

--
Regards
Kieran
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to