Re: [RTnet-users] rtnet select() status

2010-10-14 Thread Johan Cockx
Problem solved; the missing CONFIG_XENO_OPT_RTDM_SELECT in the kernel .config was the culprit. I am a bit surprised that it is possible to configure the kernel with XENO_OPT_POSIX_SELECT on and CONFIG_XENO_OPT_RTDM_SELECT off; shouldn't there be some kind of check here? Anyway, it was an intere

Re: [RTnet-users] rtnet select() status

2010-10-13 Thread Jan Kiszka
Am 13.10.2010 14:31, Johan Cockx wrote: > The problem seems to be that CONFIG_RTNET_SELECT_SUPPORT is not defined when > compiling rtnet. > > In the rtnet configure script, this is automatically defined when > $CONFIG_XENO_OPT_RTDM_SELECT is set to 'y', but I have no idea how this is > supposed

Re: [RTnet-users] rtnet select() status

2010-10-13 Thread Johan Cockx
The problem seems to be that CONFIG_RTNET_SELECT_SUPPORT is not defined when compiling rtnet. In the rtnet configure script, this is automatically defined when $CONFIG_XENO_OPT_RTDM_SELECT is set to 'y', but I have no idea how this is supposed to be set. It was certainly not set when I configur

Re: [RTnet-users] rtnet select() status

2010-10-12 Thread Gilles Chanteperdrix
Johan Cockx wrote: > > > On Tue, Oct 12, 2010 at 3:38 PM, Gilles Chanteperdrix > > wrote: > > Gilles Chanteperdrix wrote: > > Johan Cockx wrote: > >> > >> On Tue, Oct 12, 2010 at 3:04 PM, Gilles Chanteperdrix > >>

Re: [RTnet-users] rtnet select() status

2010-10-12 Thread Johan Cockx
On Tue, Oct 12, 2010 at 3:38 PM, Gilles Chanteperdrix < [email protected]> wrote: > Gilles Chanteperdrix wrote: > > Johan Cockx wrote: > >> > >> On Tue, Oct 12, 2010 at 3:04 PM, Gilles Chanteperdrix > >> >> > Ok: __real_socket is not called, the XENOMAI_SKINCALL3(...) code > >

Re: [RTnet-users] rtnet select() status

2010-10-12 Thread Gilles Chanteperdrix
Gilles Chanteperdrix wrote: > Johan Cockx wrote: >> >> On Tue, Oct 12, 2010 at 3:04 PM, Gilles Chanteperdrix >> > > Ok: __real_socket is not called, the XENOMAI_SKINCALL3(...) code >> > returns zero in this case. >> >> Ok. zero should be translated in something like 1024 - 128. And the

Re: [RTnet-users] rtnet select() status

2010-10-12 Thread Gilles Chanteperdrix
Johan Cockx wrote: > > > On Tue, Oct 12, 2010 at 3:04 PM, Gilles Chanteperdrix > > Ok: __real_socket is not called, the XENOMAI_SKINCALL3(...) code > > returns zero in this case. > > Ok. zero should be translated in something like 1024 - 128. And the > reverse operation happen

Re: [RTnet-users] rtnet select() status

2010-10-12 Thread Johan Cockx
On Tue, Oct 12, 2010 at 3:04 PM, Gilles Chanteperdrix < [email protected]> wrote: > Johan Cockx wrote: > > > > > > On Tue, Oct 12, 2010 at 12:32 PM, Gilles Chanteperdrix > > > > wrote: > > > > Johan Cockx wrote: > > > > > > > >

Re: [RTnet-users] rtnet select() status

2010-10-12 Thread Gilles Chanteperdrix
Johan Cockx wrote: > > > On Tue, Oct 12, 2010 at 12:32 PM, Gilles Chanteperdrix > > wrote: > > Johan Cockx wrote: > > > > > > On Tue, Oct 12, 2010 at 12:05 PM, Gilles Chanteperdrix > > >

Re: [RTnet-users] rtnet select() status

2010-10-12 Thread Johan Cockx
On Tue, Oct 12, 2010 at 12:32 PM, Gilles Chanteperdrix < [email protected]> wrote: > Johan Cockx wrote: > > > > > > On Tue, Oct 12, 2010 at 12:05 PM, Gilles Chanteperdrix > > > > wrote: > > > > Johan Cockx wrote: > > > > > > > >

Re: [RTnet-users] rtnet select() status

2010-10-12 Thread Gilles Chanteperdrix
Johan Cockx wrote: > > > On Tue, Oct 12, 2010 at 12:05 PM, Gilles Chanteperdrix > > wrote: > > Johan Cockx wrote: > > > > > > On Mon, Oct 11, 2010 at 4:07 PM, Gilles Chanteperdrix > > >

Re: [RTnet-users] rtnet select() status

2010-10-12 Thread Johan Cockx
On Tue, Oct 12, 2010 at 12:05 PM, Gilles Chanteperdrix < [email protected]> wrote: > Johan Cockx wrote: > > > > > > On Mon, Oct 11, 2010 at 4:07 PM, Gilles Chanteperdrix > > > > wrote: > > > > Johan Cockx wrote: > > > A printf in src

Re: [RTnet-users] rtnet select() status

2010-10-12 Thread Gilles Chanteperdrix
Johan Cockx wrote: > > > On Mon, Oct 11, 2010 at 4:07 PM, Gilles Chanteperdrix > > wrote: > > Johan Cockx wrote: > > A printf in src/skins/posix/select.c confirms that __wrap_select > is called. > > Ok, but there are many branches here,

Re: [RTnet-users] rtnet select() status

2010-10-12 Thread Johan Cockx
On Mon, Oct 11, 2010 at 4:07 PM, Gilles Chanteperdrix < [email protected]> wrote: > Johan Cockx wrote: > > A printf in src/skins/posix/select.c confirms that __wrap_select is > called. > > Ok, but there are many branches here, could you check whether it emits > the syscall, and if y

Re: [RTnet-users] rtnet select() status

2010-10-11 Thread Gilles Chanteperdrix
Johan Cockx wrote: > A printf in src/skins/posix/select.c confirms that __wrap_select is called. Ok, but there are many branches here, could you check whether it emits the syscall, and if yes, what is the result of this syscall? > > In ksrc/skins/posix/syscall.c, I added the following lines: >

Re: [RTnet-users] rtnet select() status

2010-10-11 Thread Johan Cockx
On Mon, Oct 11, 2010 at 2:42 PM, Gilles Chanteperdrix < [email protected]> wrote: > Johan Cockx wrote: > > > > > > On Fri, Oct 8, 2010 at 11:16 AM, Gilles Chanteperdrix > > > > wrote: > > > > Johan Cockx wrote: > > > Yes XENO_OPT_POS

Re: [RTnet-users] rtnet select() status

2010-10-11 Thread Gilles Chanteperdrix
Johan Cockx wrote: > > > On Fri, Oct 8, 2010 at 11:16 AM, Gilles Chanteperdrix > > wrote: > > Johan Cockx wrote: > > Yes XENO_OPT_POSIX_SELECT is enabled and the xeno_posix module is > loaded. > > Ok. So, next question, are you sure you

Re: [RTnet-users] rtnet select() status

2010-10-11 Thread Gilles Chanteperdrix
Johan Cockx wrote: > > > On Fri, Oct 8, 2010 at 11:16 AM, Gilles Chanteperdrix > > wrote: > > Johan Cockx wrote: > > Yes XENO_OPT_POSIX_SELECT is enabled and the xeno_posix module is > loaded. > > Ok. So, next question, are you sure you

Re: [RTnet-users] rtnet select() status

2010-10-11 Thread Johan Cockx
On Fri, Oct 8, 2010 at 11:16 AM, Gilles Chanteperdrix < [email protected]> wrote: > Johan Cockx wrote: > > Yes XENO_OPT_POSIX_SELECT is enabled and the xeno_posix module is loaded. > > Ok. So, next question, are you sure you use the Xenomai posix skin > wrapped select? You can try a

Re: [RTnet-users] rtnet select() status

2010-10-08 Thread Gilles Chanteperdrix
Johan Cockx wrote: > I can try this but I am not familiar with the xenomai kernel code, or > any other kernel code for that matter. I have tried to locate the > select syscall with wcgrep in my kernel source tree, but I was not > succesful. Can you give me a hint on where I can find the select

Re: [RTnet-users] rtnet select() status

2010-10-08 Thread Johan Cockx
I can try this but I am not familiar with the xenomai kernel code, or any other kernel code for that matter. I have tried to locate the select syscall with wcgrep in my kernel source tree, but I was not succesful. Can you give me a hint on where I can find the select syscall code? Johan On Fr

Re: [RTnet-users] rtnet select() status

2010-10-08 Thread Jan Kiszka
Am 08.10.2010 11:12, Johan Cockx wrote: > Yes XENO_OPT_POSIX_SELECT is enabled and the xeno_posix module is loaded. Is rtudp.ko loaded as well? Otherwise you may silently use the standard Linux stack. Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Lin

Re: [RTnet-users] rtnet select() status

2010-10-08 Thread Gilles Chanteperdrix
Johan Cockx wrote: > Yes XENO_OPT_POSIX_SELECT is enabled and the xeno_posix module is loaded. Ok. So, next question, are you sure you use the Xenomai posix skin wrapped select? You can try and put a printk in Xenomai's select syscall implementation to be sure that you go there. --

Re: [RTnet-users] rtnet select() status

2010-10-08 Thread Johan Cockx
Yes XENO_OPT_POSIX_SELECT is enabled and the xeno_posix module is loaded. Johan On Fri, Oct 8, 2010 at 10:17 AM, Gilles Chanteperdrix < [email protected]> wrote: > Johan Cockx wrote: > > Hello, > > > > What is the status of the select() call in rtnet? I can see a thread in > > th

Re: [RTnet-users] rtnet select() status

2010-10-08 Thread Gilles Chanteperdrix
Johan Cockx wrote: > Hello, > > What is the status of the select() call in rtnet? I can see a thread in > the mailing list dating from 2008 about a patch to support select(), so > I guess it should be released by now, but it doesn't seem to work for me. > > I am using rtnet version 0.9.12 (the