Re: [Xenomai] rt_task_wait_period() does not return -EWOULDBLOCK

2018-04-18 Thread Philippe Gerum
On 04/18/2018 05:09 PM, Greg Gallagher wrote: > No problem, I won't be able to look into it till the weekend so any > help debugging is appreciated :) Brown paper bag bug. The change was tested on Mercury only, where timer ids cannot be zero; zero is a perfectly valid timer id with Cobalt. Oh,

Re: [Xenomai] rt_task_wait_period() does not return -EWOULDBLOCK

2018-04-18 Thread Pintu Kumar
Oh thats great! Thank you Mauro for your findings :) So finally I assume that there is some bug introduced with the latest patch. Never mind, until that is fixed (probably by next Monday), I will stick to the previous branch. Thanks, Pintu On Wed, Apr 18, 2018 at 8:39 PM, Greg Gallagher

Re: [Xenomai] rt_task_wait_period() does not return -EWOULDBLOCK

2018-04-18 Thread Greg Gallagher
No problem, I won't be able to look into it till the weekend so any help debugging is appreciated :) On Wed, Apr 18, 2018 at 10:59 AM, Mauro Salvini wrote: > On Wed, 2018-04-18 at 20:01 +0530, Pintu Kumar wrote: >> On Wed, Apr 18, 2018 at 7:15 PM, Greg Gallagher

Re: [Xenomai] rt_task_wait_period() does not return -EWOULDBLOCK

2018-04-18 Thread Mauro Salvini
On Wed, 2018-04-18 at 20:01 +0530, Pintu Kumar wrote: > On Wed, Apr 18, 2018 at 7:15 PM, Greg Gallagher m> wrote: > > What version was this working in?  I'm assuming you are working out > > of > > stable-3.0.x? If you reverted to an older git commit please post > > the > >

Re: [Xenomai] rt_task_wait_period() does not return -EWOULDBLOCK

2018-04-18 Thread Pintu Kumar
On Wed, Apr 18, 2018 at 7:15 PM, Greg Gallagher wrote: > What version was this working in? I'm assuming you are working out of > stable-3.0.x? If you reverted to an older git commit please post the > commit. > Sorry, I don't remember the previous working versions. My

Re: [Xenomai] rt_task_wait_period() does not return -EWOULDBLOCK

2018-04-18 Thread Pintu Kumar
Oh yes. I was about to post the similar problem with rt_task_wait_period(NULL). I did "git pull" for my xenomai-3 repo and installed the newer version. After that weird things started happening to my previous test program for latency measurement. The latency value started giving all wrong

Re: [Xenomai] rt_task_wait_period() does not return -EWOULDBLOCK

2018-04-18 Thread Mauro Salvini
On Wed, 2018-04-11 at 16:42 +0200, Philippe Gerum wrote: > On 04/11/2018 04:39 PM, Mauro Salvini wrote: > > On Wed, 2018-04-11 at 16:20 +0200, Philippe Gerum wrote: > > > On 04/11/2018 03:54 PM, Mauro Salvini wrote: > > > > Hi, > > > > > > > > I'm facing an unexpected behavior of

Re: [Xenomai] rt_task_wait_period() does not return -EWOULDBLOCK

2018-04-11 Thread Philippe Gerum
On 04/11/2018 04:39 PM, Mauro Salvini wrote: > On Wed, 2018-04-11 at 16:20 +0200, Philippe Gerum wrote: >> On 04/11/2018 03:54 PM, Mauro Salvini wrote: >>> Hi, >>> >>> I'm facing an unexpected behavior of rt_task_wait_period(). >>> >>> > > ... > >> Please try this and let me know if the

Re: [Xenomai] rt_task_wait_period() does not return -EWOULDBLOCK

2018-04-11 Thread Mauro Salvini
On Wed, 2018-04-11 at 16:20 +0200, Philippe Gerum wrote: > On 04/11/2018 03:54 PM, Mauro Salvini wrote: > > Hi, > > > > I'm facing an unexpected behavior of rt_task_wait_period(). > > > > ... > Please try this and let me know if the situation gets any better: Yes, now it works as expected.

Re: [Xenomai] rt_task_wait_period() does not return -EWOULDBLOCK

2018-04-11 Thread Philippe Gerum
On 04/11/2018 03:54 PM, Mauro Salvini wrote: > Hi, > > I'm facing an unexpected behavior of rt_task_wait_period(). > > xenomai: 3.0.3 > ipipe: 4.1.18-arm-9 on kernel 4.1.36 from NXP > arch: ARM > SOC: iMX6sx > > Running simple attached program (compiled and linked using "xeno-config >