From: Jan Kiszka <jan.kiszka@domain.hid>
To: Stefan Schaal <sschaal@domain.hid>
Cc: Jonas Buchli <jonas@domain.hid>,
Peter Pastor Sampedro <pastorsa@domain.hid>,
xenomai@xenomai.org
Subject: Re: [Xenomai-core] lots of mode switches in xenomai-head tree?
Date: Mon, 02 Nov 2009 08:43:06 +0100 [thread overview]
Message-ID: <4AEE8D8A.5030108@domain.hid> (raw)
In-Reply-To: <84E78C77-1DC1-44EE-8703-62C89A204B81@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 1335 bytes --]
Stefan Schaal wrote:
> Hi,
>
> I am working with the latest xenomai-head tree (we need analogy for
> our NI board ...). Under Xenomai 2.4.8 our code did not have any mode
> switches. Using the xenomai-head, we get a lot of mode switches. Using
> he backtrace_symbols_fd, we get print-outs like:
>
>
> xsimulation[0x808553b]
> [0xffffe400]
> /usr/xenomai/lib/librtdk.so.0(assert_nrt+0x85)[0xb7fa2ea5]
> /usr/xenomai/lib/librtdk.so.0(__wrap_clock_gettime+0x17)[0xb7fa2ef7]
> xsimulation[0x807cd16]
> xsimulation[0x807d7fb]
> /usr/xenomai/lib/libnative.so.3[0xb7fab689]
> /lib/tls/i686/cmov/libpthread.so.0[0xb7f824ff]
> /lib/tls/i686/cmov/libc.so.6(clone+0x5e)[0xb7e8f49e]
>
> Which indicates that the wrapper for clock_gettime causes this
> trouble, which is also confirmed by commenting clock_gettime out, and
> the mode switches disappear.
>
> Maybe something that needs fixing?
Do you wrap & link against the POSIX library, ie. use that skin as well?
If not, your code is actually using clock_gettime incorrectly as it then
falls back to the Linux service which can trigger syscalls (or even
deadlocks when the TSC is used).
If you do use libpthread_rt, then my next question is if your work is
based on today's git head or some older version not including 4a2cb7b817.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
next prev parent reply other threads:[~2009-11-02 7:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-29 19:10 [Xenomai-core] [PATCH v2] build system: Fix shared libs generation Stefan Schaal
2009-10-30 3:20 ` Stefan Schaal
2009-11-02 7:02 ` [Xenomai-core] lots of mode switches in xenomai-head tree? Stefan Schaal
2009-11-02 7:43 ` Jan Kiszka [this message]
2009-11-02 18:42 ` Stefan Schaal
2009-11-02 19:22 ` Stefan Schaal
2009-11-03 0:21 ` Gilles Chanteperdrix
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=4AEE8D8A.5030108@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=jonas@domain.hid \
--cc=pastorsa@domain.hid \
--cc=sschaal@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.