From: Wolfgang Grandegger <wg@domain.hid>
To: Johan Borkhuis <j.borkhuis@domain.hid>
Cc: Xenomai-help@domain.hid
Subject: Re: [Xenomai-help] Unexpected switch to secondary mode
Date: Sat, 04 Aug 2007 14:30:57 +0200 [thread overview]
Message-ID: <46B47181.1070901@domain.hid> (raw)
In-Reply-To: <46B1B7DE.3080404@domain.hid>
Johan Borkhuis wrote:
> Philippe Gerum wrote:
>> On Thu, 2007-08-02 at 11:47 +0200, Johan Borkhuis wrote:
>>
>>> I am experiencing an unexpected switch to secondary mode in a
>>> rt_timer_tsc2ns call from userspace.
>>>
>>> The following code give a switch:
>>> SRTIME timeStamp;
>>> timeStamp = rt_timer_tsc2ns(rt_timer_tsc());
>>> while((rt_timer_tsc2ns(rt_timer_tsc()) - timeStamp) < (usecs*1000)) {}
>>>
>>> while the following code does not:
>>> RTIME timeStamp;
>>> timeStamp = rt_timer_tsc();
>>> while((rt_timer_tsc() - timeStamp) < (usecs*1000)) {}
>>>
>>> (I know that the second example causes a longer timeout, but this was to
>>> show the testcase).
>>>
>>> When splitting up the 2nd line in the first example I see that the
>>> rt_timer_tsc() call does not cause a switch, but the rt_timer_tsc2ns
>>> does. What am I doing wrong here?
>>>
>>> I am using Xenomai-2.3.2.
>>>
>>>
>> - Which CPU architecture, and which Adeos patch release are you using?
>>
> Processor: ppc 85xx, patch 1.5-03, Xenomai 2.3.2
>
>> - How do you notice the switches, SIGXCPU or /proc/xenomai/stat?
>>
> SIGXCPU
And what does /proc/xenomai/faults show right before and after the SIGXCPU?
Wolfgang.
prev parent reply other threads:[~2007-08-04 12:30 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-02 9:47 [Xenomai-help] Unexpected switch to secondary mode Johan Borkhuis
2007-08-02 10:12 ` Philippe Gerum
2007-08-02 10:54 ` Johan Borkhuis
2007-08-02 11:23 ` Philippe Gerum
2007-08-02 17:55 ` Gilles Chanteperdrix
2007-08-02 18:01 ` Philippe Gerum
2007-08-03 8:05 ` Johan Borkhuis
2007-08-05 17:22 ` Philippe Gerum
2007-08-06 9:08 ` Gilles Chanteperdrix
2007-08-06 11:41 ` Gilles Chanteperdrix
2007-08-07 11:06 ` Johan Borkhuis
2007-08-07 12:49 ` Gilles Chanteperdrix
2007-08-07 14:13 ` Johan Borkhuis
2007-08-06 11:54 ` Philippe Gerum
[not found] ` <b647ffbd0708070758t22f01577wd3a5397a53249459@domain.hid>
2007-08-08 7:40 ` Dmitry Adamushko
2007-08-08 8:00 ` Heikki Lindholm
2007-08-08 8:14 ` Wolfgang Grandegger
2007-08-08 9:12 ` Dmitry Adamushko
2007-08-08 10:13 ` Wolfgang Grandegger
2007-08-04 12:30 ` Wolfgang Grandegger [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=46B47181.1070901@domain.hid \
--to=wg@domain.hid \
--cc=Xenomai-help@domain.hid \
--cc=j.borkhuis@domain.hid \
/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.