All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] RTDM task blocks when connecting gdb to realtime task
@ 2010-08-18 16:03 Herrera-Bendezu, Luis
  2010-08-18 16:20 ` Gilles Chanteperdrix
  2010-08-18 16:38 ` Philippe Gerum
  0 siblings, 2 replies; 18+ messages in thread
From: Herrera-Bendezu, Luis @ 2010-08-18 16:03 UTC (permalink / raw)
  To: xenomai

Hello:

I am using Xenomai 2.4.10 on PPC. An RTDM driver creates an RTDM task
using rtdm_task_init() and goes to sleep periodically via function
rtdm_task_sleep().

When driver is loaded, RTDM task executes as expected. Then a realtime
application is started via gdbserver on target board and on a linux host
a gdb client is connected to that board. As soon as gdb breakpoints the
realtime application the RTDM task never returns from rtdm_task_sleep().
The application does not open the RTMD driver so at this point there is
no interaction with the driver.

The RTDM task is intr_sim and the timer is no longer firing
# cat /proc/xenomai/timerstat/master
CPU  SCHEDULED   FIRED       TIMEOUT    INTERVAL   HANDLER      NAME
0    29198042    9132085     3724750    -          NULL
[host-timer]
0    1340        1340        -          -          xnthread_ti  intr_sim

The realtime application is ancvbirt.
# cat /proc/xenomai/sched
CPU  PID    PRI      PERIOD     TIMEOUT    TIMEBASE  STAT       NAME
  0  0       -1      0          0          master    R          ROOT
  0  0       90      0          0          master    D          intr_sim
  0  1869     0      0          0          master    XT         ancvbirt

Any ideas on the cause of the problem and fix?

Thanks,
Luis G. Herrera-Bendezu



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2010-08-20 14:41 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-18 16:03 [Xenomai-help] RTDM task blocks when connecting gdb to realtime task Herrera-Bendezu, Luis
2010-08-18 16:20 ` Gilles Chanteperdrix
2010-08-18 16:38 ` Philippe Gerum
2010-08-18 17:29   ` Herrera-Bendezu, Luis
2010-08-18 20:44     ` Philippe Gerum
2010-08-19 12:26       ` Herrera-Bendezu, Luis
2010-08-19 16:42         ` Philippe Gerum
2010-08-19 17:13           ` Herrera-Bendezu, Luis
2010-08-20  5:39             ` Philippe Gerum
2010-08-20  6:03               ` Philippe Gerum
2010-08-20 13:30               ` Herrera-Bendezu, Luis
2010-08-20 13:49                 ` Philippe Gerum
2010-08-20 13:58                   ` Jan Kiszka
2010-08-20 14:06                     ` Philippe Gerum
2010-08-20 14:08                       ` Jan Kiszka
2010-08-20 14:24                         ` Philippe Gerum
2010-08-20 14:25                         ` Herrera-Bendezu, Luis
2010-08-20 14:41                           ` Philippe Gerum

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.