All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johann Obermayr <johann.obermayr@domain.hid>
To: gilles.chanteperdrix@xenomai.org
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] rt_task_delete trouble
Date: Fri, 11 Mar 2011 10:52:45 +0100	[thread overview]
Message-ID: <4D79F0ED.6080101@domain.hid> (raw)
In-Reply-To: <4D79E28B.3090004@domain.hid>

Am 11.03.2011 09:51, schrieb Gilles Chanteperdrix:
> Johann Obermayr wrote:
>> void task_waiter_do(void *data)
>> {
>>       rt_printf("task_waiter_do started\n");
>>       while(task_waiter_flag == 0)
>>           ; // rt_task_sleep( DELAYMS(1) );
>>       rt_printf("task_waiter_do finished\n");
>> }
> What happens if you uncomment the rt_task_sleep here ?
we have some shared code from another RT OS.
And in this code there are some while(hw_state) ;  loops.

> Could you please give us some more information:
> http://www.xenomai.org/index.php/Request_for_information
>
> Do you have priority coupling enabled?
Yes.


We use xenomai 2.5.5.2 and linux kernel 2.6.32.15. gcc 4.3.3

Here you have some more details.
a kernel module have a watchdog checker for some 'user-tasks'
if a 'user-task' have a while loop, than the kernel module will suspend
the user-task and call also the mayday function.

But on some other errorhandling, we have a high priortity watchdog task 
control the 'user'-tasks.
On error the watchdog task suspend all user-tasks. (this work correct)
Than the watchdog-task switch off the user-task watchdog.
Make errorhandling and some other function (dump user-task stack)
Than the watchdog task will delete some user-task.
But if a user-task is in a while loop, the system hangs.
in user mode we have no mayday function.
it's look like, that when watchdog-task call rt_task_delete(user_task) , 
the user_task continue running.
Is this so ?

    Thanks
       Jimmy

-- 
Mit freundlichen Grüßen, best regards
     Johann Obermayr

Software Entwicklung
________________________________________________
SIGMATEK GmbH&  Co KG
Sigmatekstraße 1
5112 Lamprechtshausen
Österreich / Austria

Tel.  :  +43 / 6274/ 43 21-0   (Durchwahl leider nicht möglich)
Fax   :  +43 / 6274/ 43 21-18  (bzw 300 im Werk 2 )
E-Mail: johann.obermayr@domain.hid
http://www.sigmatek-automation.com
****************************Please note:********************************
  This email and all attachments are confidential and intended solely for
  the person or entity to whom it is addressed. If you are not the named
  addressee you must not make this email and all attachments accessible
  to any other person. If you have received this email in error please
  delete it together with all attachments.
************************************************************************



  parent reply	other threads:[~2011-03-11  9:52 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-11  8:28 [Xenomai-help] rt_task_delete trouble Johann Obermayr
2011-03-11  8:51 ` Gilles Chanteperdrix
2011-03-11  8:58   ` Jan Kiszka
2011-03-11  9:06     ` Gilles Chanteperdrix
2011-03-11  9:59     ` Johann Obermayr
2011-03-11  9:52   ` Johann Obermayr [this message]
2011-03-11  9:56     ` Gilles Chanteperdrix
2011-03-11 13:13     ` Gilles Chanteperdrix
2011-03-11 10:59   ` Johann Obermayr

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=4D79F0ED.6080101@domain.hid \
    --to=johann.obermayr@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.