From: Thomas Klute <thomas2.klute@uni-dortmund.de>
To: linux-omap@vger.kernel.org
Cc: Carsten Vogel <carsten.vogel@rub.de>
Subject: Ftrace Timer on OMAP3
Date: Fri, 25 May 2012 17:19:07 +0200 [thread overview]
Message-ID: <4FBFA2EB.708@uni-dortmund.de> (raw)
Hi everyone,
we're having some trouble getting useful results from Ftrace on OMAP3
(Gumstix Overo). As you can see in the example output below, function
duration can't be displayed with a precision higher than about 30.5 us,
which matches the frequency of the 32 kHz platform timer. For OMAP1,
using OMAP_MPU_TIMER instead of CONFIG_OMAP_32K_TIMER should provide
better results [1], but I couldn't find anything similar for OMAP3. Just
setting CONFIG_OMAP_32K_TIMER=N didn't change the results. Did I miss
anything, or isn't there any more precise timer?
Best regards,
Thomas Klute
[1]
http://elinux.org/images/0/0c/Bird-LS-2009-Measuring-function-duration-with-ftrace.pdf
Example Ftrace output:
876.252136 | 0) | sys_sendmsg() {
876.252166 | 0) | rom_rtadd() {
876.252197 | 0) 0.000 us | release_queue_for_dst();
876.252197 | 0) 0.000 us | add_route();
876.252197 | 0) + 30.517 us | }
876.252258 | 0) + 91.553 us | }
--
876.311859 | 0) | sys_sendmsg() {
876.311889 | 0) | rom_rtadd() {
876.311889 | 0) + 30.518 us | release_queue_for_dst();
876.311920 | 0) 0.000 us | add_route();
876.311920 | 0) + 30.518 us | }
876.311950 | 0) + 91.552 us | }
--
876.371704 | 0) | sys_sendmsg() {
876.371765 | 0) | rom_rtadd() {
876.371765 | 0) 0.000 us | release_queue_for_dst();
876.371765 | 0) 0.000 us | add_route();
876.371795 | 0) + 30.517 us | }
876.371826 | 0) ! 122.071 us | }
next reply other threads:[~2012-05-25 15:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-25 15:19 Thomas Klute [this message]
2012-05-28 6:56 ` Ftrace Timer on OMAP3 Hiremath, Vaibhav
2012-05-28 8:24 ` Ming Lei
2012-05-30 10:35 ` Thomas Klute
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=4FBFA2EB.708@uni-dortmund.de \
--to=thomas2.klute@uni-dortmund.de \
--cc=carsten.vogel@rub.de \
--cc=linux-omap@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.