From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Charles Lesire-Cabaniols <charles.lesire@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Execution time profiling
Date: Wed, 29 Feb 2012 18:40:28 +0100 [thread overview]
Message-ID: <4F4E630C.8020301@domain.hid> (raw)
In-Reply-To: <CAEc6OSwfGvfwXM3vqtAXd7o_XeMhSmuvj8mkd8ziLXQSMyK0aA@mail.gmail.com>
On 02/29/2012 06:29 PM, Charles Lesire-Cabaniols wrote:
> Hi guys,
>
> I have installed a Debian+Xenomai (2.6.0) OS on my Gumstix Overo.
>
> I want to evaluate the execution time of a simple program, executed as a
> real-time thread.
>
> I definitely wonder about which functions to use, as I have completely
> inconsistent measures.
> I have tried using rt_timer_read, rt_timer_tsc, clock_gettime.
> I also directly read the CNNT register with ARM instructions (which is the
> only one I think correct) in order to have a (good?) reference.
> (...)
> What am I doing wrong?
So, you should printf("%Lu %Lu\n", rt_timer_read(), rt_timer_tsc());
Not printf("%lu", ...)
--
Gilles.
next prev parent reply other threads:[~2012-02-29 17:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-29 17:29 [Xenomai-help] Execution time profiling Charles Lesire-Cabaniols
2012-02-29 17:40 ` Gilles Chanteperdrix [this message]
2012-02-29 17:52 ` Charles Lesire-Cabaniols
2012-02-29 18:01 ` Gilles Chanteperdrix
2012-02-29 18:03 ` Charles Lesire-Cabaniols
2012-02-29 18:40 ` Gilles Chanteperdrix
2012-02-29 19:44 ` Charles Lesire-Cabaniols
2012-02-29 19:48 ` Gilles Chanteperdrix
2012-02-29 19:59 ` Charles Lesire-Cabaniols
2012-02-29 20:17 ` Gilles Chanteperdrix
2012-02-29 20:42 ` Charles Lesire-Cabaniols
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=4F4E630C.8020301@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=charles.lesire@domain.hid \
--cc=xenomai@xenomai.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.