All of lore.kernel.org
 help / color / mirror / Atom feed
From: sanjay anvekar <sanjayanvekar@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Xenomai-Driver
Date: Tue, 21 Jun 2011 20:29:04 -0700 (PDT)	[thread overview]
Message-ID: <858255.34222.qm@domain.hid> (raw)
In-Reply-To: <4E01050D.8000800@domain.hid>

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

Hi Gilles,
     Thanks for your reply. With GDB I am able to run the application but it never hits configured breakpoints
and it takes little longer time to start application. I tried changing priority of tasks, but it didn't help.
In my application program I have not configured any interrupts and completely dependent on Linux drivers.
If I do not use rt_task_sleep() my program does not work correctly. I tried to suspend each task instead of 

using rt_task_sleep and resume them in shadow task but some how it did not work .

'rt_task_set_mode(0,XNRRB ,NULL)' didn't return any error , but when I tried with T_RRB parameter
instead of XNRRB it failed.

Best Regards,
Sanjay




________________________________
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: sanjay anvekar <sanjayanvekar@domain.hid>
Cc: "xenomai@xenomai.org" <xenomai-help@domain.hid>
Sent: Wednesday, 22 June 2011 2:24 AM
Subject: Re: [Xenomai-help] Xenomai-Driver

On 06/21/2011 02:02 PM, sanjay anvekar wrote:
> Hi Gilles, Thanks for your reply. I am using 'rt_task_sleep(100us)'
> at the end of every task to let Linux task run. With this I am able
> to run my application program , but I am not able to debug using
> 'GDB'.

What happens when you try and debug with gdb?

> Also is there any better way to allow Linux task run instead
> of using 'rt_task_sleep' ? My application has got 5 different task of

First, the application should wait interrupts and react upon them, not
do any polling, this should normally leave some time for Linux to run if
the system is well dimensioned.

> 
> 
> equal priority and I want to run these in Round Robin fashion , I
> used 'rt_task_set_mode(0,XNRRB ,NULL)' to enable Round Robin
> scheduling mode, but task are not getting executed in Round Robin
> fashion.

I do not think round-robin is what you want: it will not let linux run.
rt_task_set_mode probably returns an error when you use XNRRB, because
it does not expect this bit to be set.

-- 
                                                                Gilles.

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

  reply	other threads:[~2011-06-22  3:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-08  2:22 [Xenomai-help] Xenomai-Driver sanjay anvekar
2011-06-08  8:05 ` Gilles Chanteperdrix
2011-06-21 12:02   ` sanjay anvekar
2011-06-21 20:54     ` Gilles Chanteperdrix
2011-06-22  3:29       ` sanjay anvekar [this message]
2011-06-22  7:02         ` 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=858255.34222.qm@domain.hid \
    --to=sanjayanvekar@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.