All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bob Feretich <bob.feretich@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Oops during rt_event_wait(); formerly "How do I force..."
Date: Wed, 08 Sep 2010 10:00:22 -0700	[thread overview]
Message-ID: <4C87C126.1050203@domain.hid> (raw)
In-Reply-To: <4C87418D.1090601@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 1717 bytes --]

  I changed the subject from "How do I force a core dump on a page fault 
event?", because the thread's topic has drifted.
Comments inline...
On 9/8/2010 12:55 AM, Gilles Chanteperdrix wrote:
> ...Snipped...
>> No. This problem started occurring when I integrated the whole system
>> together. I'm going to have to work on it a bit to reduce it to a
>> suitable code segment .
>> The Xenomai content of the loop is:
>> while (!end) {
>>       ...
>>       rc = rt_event_wait(&event1,..);
>>       ...
>>       rc = rt_event_clear(&event1,..);
>>       ...
>>       rc = rt_event_wait(&event2,..);
>>       ...
>>       rc = rt_event_clear(&event2,..);
>>       ...
>>       rc = rt_event_wait(&event3, TM_NONBLOC, ...);
>>       if (rc==0) end = 1;
>> }
> Is this is a loop using all the CPU (all the events with TM_NONBLOCK) ?
No, just the last wait has TM_NONBLOCK. CPU utilization for the task is 
about 2%.

I examined my use of the rt_event mechanism, trying to identify how my 
use might be unusual.

    * The above calls are in a rt-user-task and are bracketed with
      bind/unbind, outside the loop. The task starts in secondary mode,
      performs the loop in primary mode, then finishes in secondary mode.
    * rt_event_create and rt_event_delete occur in a rtdm driver init
      and exit routines.
    * However, rt_event_signal is invoked in interrupt handlers. I think
      that this may be unusual. Normally, interrupt handlers would use
      the rtdm_event mechanism.

Could rt_event_signal be sensitive to being invoked from the context of 
a real time interrupt?

Interrupt handler stack space is usually quite small. Does 
rt_event_signal make heavy use of the stack?

Regards,
Bob Feretich

[-- Attachment #2: Type: text/html, Size: 2313 bytes --]

  reply	other threads:[~2010-09-08 17:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-07  9:29 [Xenomai-help] How do I force a core dump on a page fault event? Bob Feretich
2010-09-07 12:04 ` Gilles Chanteperdrix
2010-09-08  4:40   ` Bob Feretich
2010-09-08  7:13     ` Gilles Chanteperdrix
2010-09-08  7:55     ` Gilles Chanteperdrix
2010-09-08 17:00       ` Bob Feretich [this message]
2010-09-08 17:09         ` [Xenomai-help] Oops during rt_event_wait(); formerly "How do I force..." 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=4C87C126.1050203@domain.hid \
    --to=bob.feretich@domain.hid \
    --cc=gilles.chanteperdrix@xenomai.org \
    --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.