Re: [Xenomai] Problem with rt_cond_wait and rt_cond_signal combination

2018-03-28 Thread Philippe Gerum
On 03/28/2018 07:20 PM, Pintu Kumar wrote: > On Wed, Mar 28, 2018 at 8:37 PM, Philippe Gerum wrote: >> On 03/28/2018 09:54 AM, Pintu Kumar wrote: >>> Hi, >>> >>> We are facing one issue on Xenomai-3 on x86_64 system. >>> Kernel: 4.9.51 >>> ipipe version: 4 >>> #

Re: [Xenomai] Problem with rt_cond_wait and rt_cond_signal combination

2018-03-28 Thread Pintu Kumar
On Wed, Mar 28, 2018 at 8:37 PM, Philippe Gerum wrote: > On 03/28/2018 09:54 AM, Pintu Kumar wrote: >> Hi, >> >> We are facing one issue on Xenomai-3 on x86_64 system. >> Kernel: 4.9.51 >> ipipe version: 4 >> # /usr/xenomai/sbin/version >> Xenomai/cobalt v3.0.6 -- #5956064

Re: [Xenomai] Problem with rt_cond_wait and rt_cond_signal combination

2018-03-28 Thread Philippe Gerum
On 03/28/2018 09:54 AM, Pintu Kumar wrote: > Hi, > > We are facing one issue on Xenomai-3 on x86_64 system. > Kernel: 4.9.51 > ipipe version: 4 > # /usr/xenomai/sbin/version > Xenomai/cobalt v3.0.6 -- #5956064 (2018-03-20 12:13:33 +0100) > > Its a very simple API level test. > We create a

Re: [Xenomai] Canonical way to differentiate between NPTL / Cobalt threads

2018-03-28 Thread Julien Blanc
Le mercredi 28 mars 2018 à 16:16 +0200, Philippe Gerum a écrit : >  > cobalt_thread_pid(pthread_t) from the internal support library would > do > the job. A successful call would denote a cobalt thread, -ESRCH would > denote a regular (or invalid) pthread. Seems to work perfectly, thanks.

Re: [Xenomai] 4.9 for x86 issue

2018-03-28 Thread Шевченко Тарас Григорьевич
Hi! I found in boot log failed to start lsb apparmor initialization could it be the problem ? С уважением и надеждой на сотрудничество, Шевченко Т.Г. - Original Message - From: "Шевченко Тарас Григорьевич" To: "Greg Gallagher"

Re: [Xenomai] Canonical way to differentiate between NPTL / Cobalt threads

2018-03-28 Thread Philippe Gerum
On 03/28/2018 04:00 PM, Julien Blanc wrote: > We're using a mix of regular NPTL posix threads and RT cobalt threads > in our application, using XDDP communication between them. > > In a few places, we need to identify the calling context, ie, whether > we're being called from a cobalt RT thread

[Xenomai] Canonical way to differentiate between NPTL / Cobalt threads

2018-03-28 Thread Julien Blanc
We're using a mix of regular NPTL posix threads and RT cobalt threads in our application, using XDDP communication between them. In a few places, we need to identify the calling context, ie, whether we're being called from a cobalt RT thread or from a regular NPTL thread, and act accordingly. My

Re: [Xenomai] Problem with rt_cond_wait and rt_cond_signal combination

2018-03-28 Thread Philippe Gerum
On 03/28/2018 12:04 PM, Pintu Kumar wrote: > On Wed, Mar 28, 2018 at 1:44 PM, Julien Blanc wrote: >> Le mercredi 28 mars 2018 à 13:24 +0530, Pintu Kumar a écrit : >>> Hi, >>> >>> We are facing one issue on Xenomai-3 on x86_64 system. >>> Kernel: 4.9.51 >>> ipipe version:

Re: [Xenomai] Debug prints inside xenomai library code

2018-03-28 Thread Pintu Kumar
Hi, Any clue on this one? How to add our own debug printf statements inside xenomai library function? Thanks, Pintu On Tue, Mar 27, 2018 at 10:08 PM, Pintu Kumar wrote: > Hi, > > How to add our own debug printf statements inside xenomai library > function, in order to

Re: [Xenomai] Problem with rt_cond_wait and rt_cond_signal combination

2018-03-28 Thread Pintu Kumar
On Wed, Mar 28, 2018 at 1:42 PM, Philippe Gerum wrote: > On 03/28/2018 09:54 AM, Pintu Kumar wrote: >> Hi, >> >> We are facing one issue on Xenomai-3 on x86_64 system. >> Kernel: 4.9.51 >> ipipe version: 4 >> # /usr/xenomai/sbin/version >> Xenomai/cobalt v3.0.6 -- #5956064

Re: [Xenomai] Problem with rt_cond_wait and rt_cond_signal combination

2018-03-28 Thread Julien Blanc
Le mercredi 28 mars 2018 à 13:24 +0530, Pintu Kumar a écrit : > Hi, > > We are facing one issue on Xenomai-3 on x86_64 system. > Kernel: 4.9.51 > ipipe version: 4 > # /usr/xenomai/sbin/version > Xenomai/cobalt v3.0.6 -- #5956064 (2018-03-20 12:13:33 +0100) > > Its a very simple API level test. >

Re: [Xenomai] Problem with rt_cond_wait and rt_cond_signal combination

2018-03-28 Thread Philippe Gerum
On 03/28/2018 09:54 AM, Pintu Kumar wrote: > Hi, > > We are facing one issue on Xenomai-3 on x86_64 system. > Kernel: 4.9.51 > ipipe version: 4 > # /usr/xenomai/sbin/version > Xenomai/cobalt v3.0.6 -- #5956064 (2018-03-20 12:13:33 +0100) > > Its a very simple API level test. > We create a

[Xenomai] Problem with rt_cond_wait and rt_cond_signal combination

2018-03-28 Thread Pintu Kumar
Hi, We are facing one issue on Xenomai-3 on x86_64 system. Kernel: 4.9.51 ipipe version: 4 # /usr/xenomai/sbin/version Xenomai/cobalt v3.0.6 -- #5956064 (2018-03-20 12:13:33 +0100) Its a very simple API level test. We create a condition variable and wait for the condition inside a task. Then, we