On Tue, Feb 25, 2014 at 11:02 AM, Paddu <pradeep.mudig...@gmail.com> wrote:

> Thank all for the kind reply.
>
> @liyaoshi-> I could find the link you have mentioned.
>
> @Grissiom -> Currently we are not using Linux, we are using Starterware.
>
> I shall see if we could implement this using a ASM code.
>

Cool. IIRC, startware has API to provide access to PMU. If you choose to do
it youself, you are certainly have to deal with assembly code -- PMU
registers are located in coprocessors.


>
> On Tuesday, February 25, 2014 11:56:11 AM UTC+9, liyaoshi wrote:
>
>> From this link , you can see
>>
>> readtsc() means this only support on x86 ,tsc register is 64bit register
>> and clock with main clock , on x86/64 this is can very precise
>>
>> On ARM, use generic PIT,(maybe you should write your own driver ) ,
>>
>> only limit is  almost PIT register is 32bit
>>
>>
>> 2014-02-25 10:49 GMT+08:00 Grissiom <chaos....@gmail.com>:
>>
>>> On Mon, Feb 24, 2014 at 10:26 PM, Paddu <pradeep....@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> We need some advice in measuring Beaglebone CPU(Cortex-A8) clock cycles.
>>>> Is there any way to measure the CPU cycles and use it inside the
>>>> program?
>>>> I have heard about "ccnt" register but don't know how exactly could we
>>>> use that in the program.
>>>> Please let me know if there is a reference or pointers on how to
>>>> implement the code.
>>>>
>>>>
>>> Do you want to measure cycles in Linux program or baremetal program? If
>>> you are on Linux, this link:
>>>
>>> http://halobates.de/modern-pmus-yokohama.pdf
>>>
>>> may help you. If not, read the PMU section in the ARM ARM.
>>>
>>> --
>>> Cheers,
>>> Grissiom
>>>
>>> --
>>> For more options, visit http://beagleboard.org/discuss
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "BeagleBoard" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to beagleboard...@googlegroups.com.
>>>
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>  --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>



-- 
Cheers,
Grissiom

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to