From: jean.pihet@newoldbits.com (Jean Pihet)
To: linux-arm-kernel@lists.infradead.org
Subject: Question on perf counter
Date: Wed, 11 Jun 2014 09:39:34 +0200 [thread overview]
Message-ID: <CAORVsuWSis8-w_iB_2pgvs=ptkspjdXpENEb_AA3-hgAZivkkw@mail.gmail.com> (raw)
In-Reply-To: <CALU2kfkKzVkPgvhDbk_MuTwhi7Jyo1g6Na7+uwQG=CMq2uFq8g@mail.gmail.com>
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
prev parent reply other threads:[~2014-06-11 7:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-11 1:07 Question on perf counter Mathew Li
2014-06-11 7:39 ` Jean Pihet [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAORVsuWSis8-w_iB_2pgvs=ptkspjdXpENEb_AA3-hgAZivkkw@mail.gmail.com' \
--to=jean.pihet@newoldbits.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).