All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: suresh reddy <sureshreddy.balijepalli@domain.hid>
Cc: Xenomai help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Hanging
Date: Thu, 25 Aug 2011 19:57:16 +0200	[thread overview]
Message-ID: <4E568CFC.2050203@domain.hid> (raw)
In-Reply-To: <CAL+uwv8La8ad9Vc8HZYhvgMyWb0=5r5-X1yy1aDKJ-jauJgESw@domain.hid>

On 08/25/2011 11:25 AM, suresh reddy wrote:
> Dear Giles,

It is Gilles.

> 
> 1. taking timing results using rt_timer-tsc on pandaboard for a test program
> using xenomai native services.
> 
> 2. taking timing results using gettimeofday on pandaboard for same test
> program using linuxthreads.
> 
> 
> Can i compare these two timing results ?

your system is likely using nptl, not linuxthreads. And clock_gettime
instead of gettimeofday will give you precision down to the nanosecond,
like rt_timer_tsc2ns.

But yes, you can compare the results, if you bear in mind that real-time
is about worst case latencies, so results obtained by running tests for
a few seconds or minutes on an idle machine are meaningless.

Also note that since Xenomai has a posix api, you can have the exact
same code running with and without xenomai.

-- 
                                                                Gilles.


  reply	other threads:[~2011-08-25 17:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-24 10:51 [Xenomai-help] Hanging suresh reddy
2011-08-24 12:13 ` Gilles Chanteperdrix
2011-08-24 12:35   ` suresh reddy
2011-08-24 12:59     ` Gilles Chanteperdrix
2011-08-24 14:12       ` suresh reddy
2011-08-24 16:28         ` Gilles Chanteperdrix
2011-08-25  9:25           ` suresh reddy
2011-08-25 17:57             ` Gilles Chanteperdrix [this message]
2011-08-25 18:18               ` suresh reddy

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=4E568CFC.2050203@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=sureshreddy.balijepalli@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.