Re: [Xenomai-core] Debugging Xenomai kernel

2011-07-27 Thread Jan Kiszka
On 2011-07-26 13:54, zenati wrote: > Dear, > > I'm trying to debug Xenomai kernel with GDB and Qemu. QEMU in emulation or KVM mode? > So, I launch > Xenomai in Qemu and make it waiting for GDB. Then I start GDB and > connect them to Qemu, make breakpoint at the desired function to debug > and st

Re: [Xenomai-core] Debugging Xenomai kernel

2011-07-27 Thread zenati
On 07/27/2011 11:23 AM, Jan Kiszka wrote: On 2011-07-26 13:54, zenati wrote: Dear, I'm trying to debug Xenomai kernel with GDB and Qemu. QEMU in emulation or KVM mode? I'm using Qemu in emulation mode. So, I launch Xenomai in Qemu and make it waiting for GDB. Then I start GDB and connect th

Re: [Xenomai-core] Debugging Xenomai kernel

2011-07-27 Thread Jan Kiszka
On 2011-07-27 14:01, zenati wrote: > On 07/27/2011 11:23 AM, Jan Kiszka wrote: >> On 2011-07-26 13:54, zenati wrote: >>> Dear, >>> >>> I'm trying to debug Xenomai kernel with GDB and Qemu. >> QEMU in emulation or KVM mode? >> > I'm using Qemu in emulation mode. What's your target arch? x84-64, x86

Re: [Xenomai-core] Debugging Xenomai kernel

2011-07-27 Thread zenati
On 07/27/2011 02:12 PM, Jan Kiszka wrote: On 2011-07-27 14:01, zenati wrote: On 07/27/2011 11:23 AM, Jan Kiszka wrote: On 2011-07-26 13:54, zenati wrote: Dear, I'm trying to debug Xenomai kernel with GDB and Qemu. QEMU in emulation or KVM mode? I'm using Qemu in emulation mode. What's you

Re: [Xenomai-core] Debugging Xenomai kernel

2011-07-27 Thread Jan Kiszka
On 2011-07-27 18:13, zenati wrote: > On 07/27/2011 02:12 PM, Jan Kiszka wrote: >> On 2011-07-27 14:01, zenati wrote: >>> On 07/27/2011 11:23 AM, Jan Kiszka wrote: On 2011-07-26 13:54, zenati wrote: > Dear, > > I'm trying to debug Xenomai kernel with GDB and Qemu. QEMU in emula

Re: [Xenomai-core] Debugging Xenomai kernel

2011-07-27 Thread zenati
On 07/27/2011 06:16 PM, Jan Kiszka wrote: On 2011-07-27 18:13, zenati wrote: On 07/27/2011 02:12 PM, Jan Kiszka wrote: On 2011-07-27 14:01, zenati wrote: On 07/27/2011 11:23 AM, Jan Kiszka wrote: On 2011-07-26 13:54, zenati wrote: Dear, I'm trying to debug Xenomai kernel with GDB and Qemu.

Re: [Xenomai-core] [RFC] Fixes for domain migration races

2011-07-27 Thread Gilles Chanteperdrix
On 07/19/2011 08:44 AM, Jan Kiszka wrote: > Hi, > > I've just uploaded my upstream queue that mostly deals with the various > races I found in the domain migration code. > > One of my concerns raised earlier turned out to be for no reason: We do > not allow Linux to wake up a task that has TASK_A

Re: [Xenomai-core] __wrap_clock_gettime

2011-07-27 Thread Gilles Chanteperdrix
On 07/22/2011 05:04 PM, Jan Kiszka wrote: > Hi Gilles, > > pulling assert_context.c into the common libxenomai created a problem > around picking the right __wrap_clock_gettime. As libpthread_rt depends > on libxenomai, the latter is loaded first and defines the debug version > of __wrap_clock_get

Re: [Xenomai-core] Exception #14

2011-07-27 Thread Gilles Chanteperdrix
On 07/26/2011 09:36 AM, zenati wrote: > Dear, > > I'm developping the skin Arinc 653 for Xenomai. I'm trying to run > process with my skin but I have an exception : > > Xenomai: suspending kernel thread d8824c40 ('�') at 0xb76dbdfc after > exception #14 > > What is the exception 14 ? Have you

Re: [Xenomai-core] Problems with gcc 4.6.0 (rt_task_shadow fails with ENOSYS)

2011-07-27 Thread Gilles Chanteperdrix
On 07/26/2011 02:09 PM, Daniele Nicolodi wrote: > On 11/07/11 20:43, Gilles Chanteperdrix wrote: >> On 07/07/2011 11:47 PM, Anders Blomdell wrote: >>> When compiling kernel 2.6.37.3 and xenomai 2.5.6 with "gcc version 4.6.0 >>> 20110530 (Red Hat 4.6.0-9) (GCC)", programs fail with -ENOSYS in >>>

Re: [Xenomai-core] gdb and breakpoint

2011-07-27 Thread Gilles Chanteperdrix
On 07/20/2011 06:58 PM, Roberto Bielli wrote: > Hi, > > i have little questions. > 1 .A GDB breakpoint in a xenomai task switch to secodary mode the task > or the entire application ? > 2. when i run the application that is halted on a breakpoint, when the > xenomai scheduler enter to restore th

[Xenomai-core] rt_task_delete or rt_task_suspend strange behavior

2011-07-27 Thread Roberto Bielli
Hi, i'm using xenomai 2.5.6 stable implemented for Marvell mv78xx on Arm. I have a very strange behaviour. I have 60 tasks and some tasks delete other tasks. In the case that one task delete/suspend a task that is just deleted/suspended, the next delete/suspend kill the wrong task and if i pri