* Question on perf counter
@ 2014-06-11 1:07 Mathew Li
2014-06-11 7:39 ` Jean Pihet
0 siblings, 1 reply; 2+ messages in thread
From: Mathew Li @ 2014-06-11 1:07 UTC (permalink / raw)
To: linux-arm-kernel
Hi All,
I have a piece of kernel code (actually some assembly functions) on
ARM-v8. I want to know how many cycles CPU is taking to execute them.
I believe I could use performance counter for this job. So are there
some APIs in kernel for performance counter for ARM-v8 which I could
make use of?
Thanks!
Matt
^ permalink raw reply [flat|nested] 2+ messages in thread
* Question on perf counter
2014-06-11 1:07 Question on perf counter Mathew Li
@ 2014-06-11 7:39 ` Jean Pihet
0 siblings, 0 replies; 2+ messages in thread
From: Jean Pihet @ 2014-06-11 7:39 UTC (permalink / raw)
To: linux-arm-kernel
Matt,
On Wed, Jun 11, 2014 at 3:07 AM, Mathew Li <mathew.li100@gmail.com> wrote:
> Hi All,
>
> I have a piece of kernel code (actually some assembly functions) on
> ARM-v8. I want to know how many cycles CPU is taking to execute them.
> I believe I could use performance counter for this job. So are there
> some APIs in kernel for performance counter for ARM-v8 which I could
> make use of?
The kernel has the profiling tools for that.
Perf has a lot of features that you need to experiment with. Cf.
https://wiki.linaro.org/LEG/Engineering/TOOLS/tracing-and-profiling-tools
and https://wiki.yoctoproject.org/wiki/Tracing_and_Profiling for
detailed information and usage of perf, ftrace ...
Regards,
Jean
>
> Thanks!
> Matt
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-11 7:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-11 1:07 Question on perf counter Mathew Li
2014-06-11 7:39 ` Jean Pihet
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).