From: Johann Obermayr <johann.obermayr@sigmatek.at>
Cc: "Xenomai@xenomai.org" <Xenomai@xenomai.org>
Subject: Re: [Xenomai] rtdm_nrtsig_pend FAQ
Date: Thu, 13 Nov 2014 17:30:34 +0100 [thread overview]
Message-ID: <5464DCAA.6060004@sigmatek.at> (raw)
In-Reply-To: <20141112164411.GB17476@sisyphus.hd.free.fr>
Am 12.11.2014 um 17:44 schrieb Gilles Chanteperdrix:
> On Wed, Nov 12, 2014 at 09:47:45AM +0100, Johann Obermayr wrote:
>> Hello,
>>
>> we use rtdm_nrtsig_pend follow.
>>
>> static rtdm_nrtsig_t wait_domain_nrt;
>> static DECLARE_WAIT_QUEUE_HEAD(wait_domain_wq);
>>
>> void period_update()
>> {
>> wait_domain_pend_count++;
>> rtdm_nrtsig_pend(&wait_domain_nrt);
>> }
>>
>> static void wait_domain_nrt_handler(rtdm_nrtsig_t nrt_sig, void *arg)
>> {
>> wait_domain_call_count++;
>> //wakeup wait_domain
>> wait_domain_wakeup = 1;
>> wake_up_interruptible(&wait_domain_wq);
>> }
>>
>>
>> period_update is called every millisecond.
>> this is on imx6 hardware with kernel 3.0.x and xenomai 2.6.2.1.
> >From what Thierry said, I suspect the patch for this kernel has a
> missing call to irq_exit. So, I would ask you to do the same as
> Thierry, please enable the I-pipe tracer, set a sufficient number of
> back trace points such as 10000, and trigger a trace when you detect
> that you have "lost" a notification (wait_dommain_pend_count > wait_domain_call_count + 1)
>
> Then send the trace to the mailing list.
>
Hi,
witch function i must use to make a i-pipe trace ?
here i am in a xenomai irq handle
void period_update()
{
......
else if (wait_domain_pend_count > 100000 && wait_domain_pend_count
!= wait_domain_call_count) {
// dotrace
}
}
Thanks for help
Johann
next prev parent reply other threads:[~2014-11-13 16:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-12 8:47 [Xenomai] rtdm_nrtsig_pend FAQ Johann Obermayr
2014-11-12 9:10 ` Philippe Gerum
2014-11-12 9:20 ` Johann Obermayr
2014-11-12 9:50 ` Philippe Gerum
2014-11-12 10:53 ` Johann Obermayr
2014-11-12 11:30 ` Philippe Gerum
2014-11-12 16:44 ` Gilles Chanteperdrix
2014-11-13 16:30 ` Johann Obermayr [this message]
2014-11-13 16:33 ` Gilles Chanteperdrix
2014-11-14 9:53 ` Johann Obermayr
2014-11-14 10:20 ` Gilles Chanteperdrix
2014-11-14 12:37 ` Johann Obermayr
2014-11-14 12:47 ` Gilles Chanteperdrix
2014-11-14 13:05 ` Gilles Chanteperdrix
2014-11-14 13:45 ` 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=5464DCAA.6060004@sigmatek.at \
--to=johann.obermayr@sigmatek.at \
--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.