* [Xenomai] Failed testsuite/latency @ 2015-02-23 12:30 Michael Smith 2015-02-23 12:38 ` Gilles Chanteperdrix 2015-02-23 16:00 ` Philippe Gerum 0 siblings, 2 replies; 20+ messages in thread From: Michael Smith @ 2015-02-23 12:30 UTC (permalink / raw) To: xenomai Hi. I'm getting an error when trying to run the latency test in Xenomai 3.0. All the other tests seems fine. My output: == Sampling period: 100 us == Test mode: periodic user-mode task == All results in microseconds warming up... latency: failed to set periodic, code 9 My architechture is Intel iCore 5. The GIT revision: 52fb91e.. Linux kernel: 3.14.28 The kernel have been built for architecture i686. Regards Michael ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Xenomai] Failed testsuite/latency 2015-02-23 12:30 [Xenomai] Failed testsuite/latency Michael Smith @ 2015-02-23 12:38 ` Gilles Chanteperdrix 2015-02-23 14:23 ` Michael Smith 2015-02-23 16:00 ` Philippe Gerum 1 sibling, 1 reply; 20+ messages in thread From: Gilles Chanteperdrix @ 2015-02-23 12:38 UTC (permalink / raw) To: Michael Smith; +Cc: xenomai On Mon, Feb 23, 2015 at 02:30:42PM +0200, Michael Smith wrote: > Hi. > I'm getting an error when trying to run the latency test in Xenomai 3.0. > All the other tests seems fine. > > My output: > > == Sampling period: 100 us > == Test mode: periodic user-mode task > == All results in microseconds > warming up... > latency: failed to set periodic, code 9 > > My architechture is Intel iCore 5. > The GIT revision: 52fb91e.. > Linux kernel: 3.14.28 > The kernel have been built for architecture i686. Any error on the kernel console ? -- Gilles. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Xenomai] Failed testsuite/latency 2015-02-23 12:38 ` Gilles Chanteperdrix @ 2015-02-23 14:23 ` Michael Smith 0 siblings, 0 replies; 20+ messages in thread From: Michael Smith @ 2015-02-23 14:23 UTC (permalink / raw) To: Gilles Chanteperdrix; +Cc: xenomai On Mon, Feb 23, 2015 at 2:38 PM, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> wrote: > On Mon, Feb 23, 2015 at 02:30:42PM +0200, Michael Smith wrote: >> Hi. >> I'm getting an error when trying to run the latency test in Xenomai 3.0. >> All the other tests seems fine. >> >> My output: >> >> == Sampling period: 100 us >> == Test mode: periodic user-mode task >> == All results in microseconds >> warming up... >> latency: failed to set periodic, code 9 >> >> My architechture is Intel iCore 5. >> The GIT revision: 52fb91e.. >> Linux kernel: 3.14.28 >> The kernel have been built for architecture i686. > > Any error on the kernel console ? > > -- > Gilles. No oddly enough there is no extra error messages with dmesg Michael ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Xenomai] Failed testsuite/latency 2015-02-23 12:30 [Xenomai] Failed testsuite/latency Michael Smith 2015-02-23 12:38 ` Gilles Chanteperdrix @ 2015-02-23 16:00 ` Philippe Gerum 2015-02-24 13:28 ` Bart Vissers 1 sibling, 1 reply; 20+ messages in thread From: Philippe Gerum @ 2015-02-23 16:00 UTC (permalink / raw) To: Michael Smith, xenomai On 02/23/2015 01:30 PM, Michael Smith wrote: > Hi. > I'm getting an error when trying to run the latency test in Xenomai 3.0. > All the other tests seems fine. > > My output: > > == Sampling period: 100 us > == Test mode: periodic user-mode task > == All results in microseconds > warming up... > latency: failed to set periodic, code 9 > > My architechture is Intel iCore 5. > The GIT revision: 52fb91e.. > Linux kernel: 3.14.28 > The kernel have been built for architecture i686. > The strace output for the failing latency run may help. -- Philippe. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Xenomai] Failed testsuite/latency 2015-02-23 16:00 ` Philippe Gerum @ 2015-02-24 13:28 ` Bart Vissers 2015-02-24 14:37 ` Philippe Gerum 0 siblings, 1 reply; 20+ messages in thread From: Bart Vissers @ 2015-02-24 13:28 UTC (permalink / raw) To: Philippe Gerum; +Cc: Michael Smith, xenomai Hi, I ran into the exact same error. My setup: - xenomai_3.0rc3 - Linux kernel 3.16.7 with ipipe-core-3.16-x86-2.patch I only deviated from the default build guide to build debian packages. Attached, is the kernel config, dmesg log (no errors) and strace output. Best regards, Bart -------------- next part -------------- A non-text attachment was scrubbed... Name: strace.log Type: application/octet-stream Size: 8919 bytes Desc: not available URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20150224/7c9f37a7/attachment.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: config Type: application/octet-stream Size: 137306 bytes Desc: not available URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20150224/7c9f37a7/attachment-0001.obj> -------------- next part -------------- A non-text attachment was scrubbed... Name: dmesg.log Type: application/octet-stream Size: 50134 bytes Desc: not available URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20150224/7c9f37a7/attachment-0002.obj> ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Xenomai] Failed testsuite/latency 2015-02-24 13:28 ` Bart Vissers @ 2015-02-24 14:37 ` Philippe Gerum 2015-02-25 8:33 ` Bart Vissers 0 siblings, 1 reply; 20+ messages in thread From: Philippe Gerum @ 2015-02-24 14:37 UTC (permalink / raw) To: Bart Vissers; +Cc: Michael Smith, xenomai On 02/24/2015 02:28 PM, Bart Vissers wrote: > Hi, > > I ran into the exact same error. My setup: > - xenomai_3.0rc3 > - Linux kernel 3.16.7 with ipipe-core-3.16-x86-2.patch > I only deviated from the default build guide to build debian packages. > > Attached, is the kernel config, dmesg log (no errors) and strace output. > I can't reproduce it, so I will need more information. Could you send the output of the following command on your target? # xeno-config --info I would also need a portion of the namelist of the latency binary, e.g. $ nm $XENOMAI_ROOT/bin/latency | grep __wrap U __wrap_clock_gettime U __wrap_close U __wrap_fclose U __wrap_fprintf U __wrap_free U __wrap_fwrite U __wrap_ioctl U __wrap_kill U __wrap_open U __wrap_printf U __wrap_pthread_create U __wrap_pthread_join U __wrap_pthread_setname_np U __wrap_puts U __wrap_read U __wrap_sem_close U __wrap_sem_open U __wrap_sem_post U __wrap_sem_unlink U __wrap_sem_wait U __wrap_time U __wrap_timerfd_create U __wrap_timerfd_settime U __wrap_write And finally, could you patch this snippet into the target kernel, then report any message that might appear in the log once latency has exited on failure? diff --git a/kernel/cobalt/rtdm/fd.c b/kernel/cobalt/rtdm/fd.c index 7f35ea3..a65f6a0 100644 --- a/kernel/cobalt/rtdm/fd.c +++ b/kernel/cobalt/rtdm/fd.c @@ -210,6 +210,8 @@ struct rtdm_fd *rtdm_fd_get(int ufd, unsigned int magic) xnlock_get_irqsave(&fdtree_lock, s); fd = fetch_fd(p, ufd); if (fd == NULL || (magic != 0 && fd->magic != magic)) { + printk(XENO_WARNING "%s: bad ufd=%d, magic=%#x\n", + __func__, ufd, fd ? fd->magic : 0xfefefefe); fd = ERR_PTR(-EBADF); goto out; } -- Philippe. ^ permalink raw reply related [flat|nested] 20+ messages in thread
* Re: [Xenomai] Failed testsuite/latency 2015-02-24 14:37 ` Philippe Gerum @ 2015-02-25 8:33 ` Bart Vissers 2015-02-25 9:24 ` Philippe Gerum ` (2 more replies) 0 siblings, 3 replies; 20+ messages in thread From: Bart Vissers @ 2015-02-25 8:33 UTC (permalink / raw) To: Philippe Gerum; +Cc: Michael Smith, xenomai Hi Philippe, Before making any changes, I ran xeno-config --info: Xenomai version: Xenomai/cobalt v3.0-rc3 -- Linux rtpc 3.16.7-xenomai-3.0-rc3 #1 SMP Mon Feb 23 12:30:46 CET 2015 i686 GNU/Linux Kernel parameters: BOOT_IMAGE=/boot/vmlinuz-3.16.7-xenomai-3.0-rc3 root=UUID=0925426e-e058-4093-963c-8b7de072e229 ro quiet I-pipe release #2 detected Cobalt core 3.0-rc3 detected Build args: --prefix=/usr --includedir=/usr/include/xenomai --mandir=/usr/share/man --with-testdir=/usr/lib/xenomai/testsuite --build i486-linux-gnu build_alias=i486-linux-gnu namelist did not work, as latency does not contain any symbols. How can I include these when building debian packages? Unfortunately, I got compilation errors after applying the patch to xenomai-3.0-rc3: error: ‘XENO_WARNING’ undeclared (first use in this function) So I decided to repeat my steps with the git next branch, 52fb91e... So, same linux kernel, i-pipe patch and kernel config. Also included the printk patch. Output: == Sampling period: 100 us == Test mode: periodic user-mode task == All results in microseconds warming up... latency: failed to set periodic, code 9 ^C---|-----------|-----------|-----------|--------|------|------------------------- RTS| 10000.000| 0.000| -10000.000| 0| 0| 00:03:26/00:03:26 Notice the ^C. I killed it because it was running indefinitely. This was also the case in my previous attempts. Best regards, Bart ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Xenomai] Failed testsuite/latency 2015-02-25 8:33 ` Bart Vissers @ 2015-02-25 9:24 ` Philippe Gerum 2015-02-25 9:32 ` Gilles Chanteperdrix 2015-02-26 6:20 ` Michael Smith 2015-02-26 6:07 ` Michael Smith 2015-03-02 14:56 ` Philippe Gerum 2 siblings, 2 replies; 20+ messages in thread From: Philippe Gerum @ 2015-02-25 9:24 UTC (permalink / raw) To: Bart Vissers; +Cc: Michael Smith, xenomai On 02/25/2015 09:33 AM, Bart Vissers wrote: > Hi Philippe, > > Before making any changes, I ran xeno-config --info: > Xenomai version: Xenomai/cobalt v3.0-rc3 -- > Linux rtpc 3.16.7-xenomai-3.0-rc3 #1 SMP Mon Feb 23 12:30:46 CET 2015 > i686 GNU/Linux > Kernel parameters: BOOT_IMAGE=/boot/vmlinuz-3.16.7-xenomai-3.0-rc3 > root=UUID=0925426e-e058-4093-963c-8b7de072e229 ro quiet > I-pipe release #2 detected > Cobalt core 3.0-rc3 detected > Build args: --prefix=/usr --includedir=/usr/include/xenomai > --mandir=/usr/share/man --with-testdir=/usr/lib/xenomai/testsuite > --build i486-linux-gnu build_alias=i486-linux-gnu > > namelist did not work, as latency does not contain any symbols. How > can I include these when building debian packages? I don't have much knowledge of the Debian pkg system, but the way I used to do this was: export DEB_BUILD_OPTIONS="debug nostrip" before building the package, maybe adding "noopt" if you also want to disable the optimizer, although this is not required for keeping the namelist. Gilles certainly has more on this. This said, at this stage you may want to build the user-space code manually, leaving aside the debian pkg builder. It would be much easier to control the build configuration process, at least for me: http://xenomai.org/installing-xenomai-3-x/#Building_the_x86_libraries_3264bit > Unfortunately, I got compilation errors after applying the patch to > xenomai-3.0-rc3: error: ‘XENO_WARNING’ undeclared (first use in this > function) Yes, I'm always referring to the current development tip in this discussion. > So I decided to repeat my steps with the git next branch, 52fb91e... > So, same linux kernel, i-pipe patch and kernel config. Also included > the printk patch. Output: > > == Sampling period: 100 us > == Test mode: periodic user-mode task > == All results in microseconds > warming up... > latency: failed to set periodic, code 9 > ^C---|-----------|-----------|-----------|--------|------|------------------------- > RTS| 10000.000| 0.000| -10000.000| 0| 0| 00:03:26/00:03:26 > > Notice the ^C. I killed it because it was running indefinitely. This That is expected, the main thread just hangs paused in this case. If you don't hit ^C, the real-time core should report two cobalt threads as follows: ~ # cat /proc/xenomai/sched/threads CPU PID CLASS TYPE PRI TIMEOUT STAT NAME 0 0 idle core -1 - R [ROOT] 0 1206 rt cobalt 0 - X latency 0 1208 rt cobalt 0 - W display-1206 Do you confirm this on your end? If so, then can you look a bit further, listing the file descriptors currently open for the main thread, e.g. in my case: ~ # ls -l /proc/1206/fd total 0 lrwx------ 1 root root 64 Feb 25 09:21 0 -> /dev/pts/0 lrwx------ 1 root root 64 Feb 25 09:21 1 -> /dev/pts/0 lrwx------ 1 root root 64 Feb 25 09:21 2 -> /dev/pts/0 lrwx------ 1 root root 64 Feb 25 09:21 3 -> anon_inode:[cobalt-timerfd] I'm interested to know whether you can see the last one. > was also the case in my previous attempts. > So you received no message visible from dmesg? -- Philippe. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Xenomai] Failed testsuite/latency 2015-02-25 9:24 ` Philippe Gerum @ 2015-02-25 9:32 ` Gilles Chanteperdrix 2015-02-26 6:05 ` Michael Smith 2015-02-26 6:20 ` Michael Smith 1 sibling, 1 reply; 20+ messages in thread From: Gilles Chanteperdrix @ 2015-02-25 9:32 UTC (permalink / raw) To: Philippe Gerum; +Cc: Michael Smith, xenomai On Wed, Feb 25, 2015 at 10:24:30AM +0100, Philippe Gerum wrote: > On 02/25/2015 09:33 AM, Bart Vissers wrote: > > Hi Philippe, > > > > Before making any changes, I ran xeno-config --info: > > Xenomai version: Xenomai/cobalt v3.0-rc3 -- > > Linux rtpc 3.16.7-xenomai-3.0-rc3 #1 SMP Mon Feb 23 12:30:46 CET 2015 > > i686 GNU/Linux > > Kernel parameters: BOOT_IMAGE=/boot/vmlinuz-3.16.7-xenomai-3.0-rc3 > > root=UUID=0925426e-e058-4093-963c-8b7de072e229 ro quiet > > I-pipe release #2 detected > > Cobalt core 3.0-rc3 detected > > Build args: --prefix=/usr --includedir=/usr/include/xenomai > > --mandir=/usr/share/man --with-testdir=/usr/lib/xenomai/testsuite > > --build i486-linux-gnu build_alias=i486-linux-gnu > > > > namelist did not work, as latency does not contain any symbols. How > > can I include these when building debian packages? > > I don't have much knowledge of the Debian pkg system, but the way I used > to do this was: > > export DEB_BUILD_OPTIONS="debug nostrip" > > before building the package, maybe adding "noopt" if you also want to > disable the optimizer, although this is not required for keeping the > namelist. Gilles certainly has more on this. We separate packages on 2.6 with only the debug symbols, named xenomai-runtime-debg and libxenomai1-dbg, you need to install them to have the debug symbols. But I do not think you need the debug symbols to list the dynamic symbols of a binary, the dynamic symbol tables is not remove by the stripping process. Simply run: nm -D /path/to/latency -- Gilles. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Xenomai] Failed testsuite/latency 2015-02-25 9:32 ` Gilles Chanteperdrix @ 2015-02-26 6:05 ` Michael Smith 0 siblings, 0 replies; 20+ messages in thread From: Michael Smith @ 2015-02-26 6:05 UTC (permalink / raw) To: Gilles Chanteperdrix; +Cc: xenomai On Wed, Feb 25, 2015 at 11:32 AM, Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> wrote: > On Wed, Feb 25, 2015 at 10:24:30AM +0100, Philippe Gerum wrote: >> On 02/25/2015 09:33 AM, Bart Vissers wrote: >> > Hi Philippe, >> > >> > Before making any changes, I ran xeno-config --info: >> > Xenomai version: Xenomai/cobalt v3.0-rc3 -- >> > Linux rtpc 3.16.7-xenomai-3.0-rc3 #1 SMP Mon Feb 23 12:30:46 CET 2015 >> > i686 GNU/Linux >> > Kernel parameters: BOOT_IMAGE=/boot/vmlinuz-3.16.7-xenomai-3.0-rc3 >> > root=UUID=0925426e-e058-4093-963c-8b7de072e229 ro quiet >> > I-pipe release #2 detected >> > Cobalt core 3.0-rc3 detected >> > Build args: --prefix=/usr --includedir=/usr/include/xenomai >> > --mandir=/usr/share/man --with-testdir=/usr/lib/xenomai/testsuite >> > --build i486-linux-gnu build_alias=i486-linux-gnu >> > >> > namelist did not work, as latency does not contain any symbols. How >> > can I include these when building debian packages? >> >> I don't have much knowledge of the Debian pkg system, but the way I used >> to do this was: >> >> export DEB_BUILD_OPTIONS="debug nostrip" >> >> before building the package, maybe adding "noopt" if you also want to >> disable the optimizer, although this is not required for keeping the >> namelist. Gilles certainly has more on this. > > We separate packages on 2.6 with only the debug symbols, named > xenomai-runtime-debg and libxenomai1-dbg, you need to install them > to have the debug symbols. But I do not think you need the debug > symbols to list the dynamic symbols of a binary, the dynamic symbol > tables is not remove by the stripping process. Simply run: > > nm -D /path/to/latency > > > -- > Gilles. I just want to confirm my system is also built with Debian packaging method. I am running Ubuntu 14.04. Here are the outputs on my system, with: xeno-config --info Xenomai version: Xenomai/cobalt v3.0-rc3 -- Linux acs1-marlin 3.14.28-xenomai-3.0-rc3-52fb91e #1 SMP Mon Feb 23 09:56:59 SAST 2015 i686 i686 i686 GNU/Linux Kernel parameters: BOOT_IMAGE=/vmlinuz-3.14.28-xenomai-3.0-rc3-52fb91e root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7 I-pipe release #7 detected Cobalt core 3.0-rc3 detected Build args: --prefix=/usr --includedir=/usr/include/xenomai --mandir=/usr/share/man --with-testdir=/usr/lib/xenomai/testsuite --build i686-linux-gnu build_alias=i686-linux-gnu Then I ran: sudo nm -D ./latency | grep __wrap And got: U __wrap_clock_gettime U __wrap_close U __wrap_fclose U __wrap___fprintf_chk U __wrap_free U __wrap_fwrite U __wrap_ioctl U __wrap_kill U __wrap_open U __wrap___printf_chk U __wrap_pthread_create U __wrap_pthread_join U __wrap_pthread_setname_np U __wrap_puts U __wrap_read U __wrap_sem_close U __wrap_sem_open U __wrap_sem_post U __wrap_sem_unlink U __wrap_sem_wait U __wrap_time U __wrap_timerfd_create U __wrap_timerfd_settime U __wrap_write Regards Michael ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Xenomai] Failed testsuite/latency 2015-02-25 9:24 ` Philippe Gerum 2015-02-25 9:32 ` Gilles Chanteperdrix @ 2015-02-26 6:20 ` Michael Smith 1 sibling, 0 replies; 20+ messages in thread From: Michael Smith @ 2015-02-26 6:20 UTC (permalink / raw) To: Philippe Gerum; +Cc: xenomai On Wed, Feb 25, 2015 at 11:24 AM, Philippe Gerum <rpm@xenomai.org> wrote: > On 02/25/2015 09:33 AM, Bart Vissers wrote: >> Hi Philippe, >> >> Before making any changes, I ran xeno-config --info: >> Xenomai version: Xenomai/cobalt v3.0-rc3 -- >> Linux rtpc 3.16.7-xenomai-3.0-rc3 #1 SMP Mon Feb 23 12:30:46 CET 2015 >> i686 GNU/Linux >> Kernel parameters: BOOT_IMAGE=/boot/vmlinuz-3.16.7-xenomai-3.0-rc3 >> root=UUID=0925426e-e058-4093-963c-8b7de072e229 ro quiet >> I-pipe release #2 detected >> Cobalt core 3.0-rc3 detected >> Build args: --prefix=/usr --includedir=/usr/include/xenomai >> --mandir=/usr/share/man --with-testdir=/usr/lib/xenomai/testsuite >> --build i486-linux-gnu build_alias=i486-linux-gnu >> >> namelist did not work, as latency does not contain any symbols. How >> can I include these when building debian packages? > > I don't have much knowledge of the Debian pkg system, but the way I used > to do this was: > > export DEB_BUILD_OPTIONS="debug nostrip" > > before building the package, maybe adding "noopt" if you also want to > disable the optimizer, although this is not required for keeping the > namelist. Gilles certainly has more on this. > > This said, at this stage you may want to build the user-space code > manually, leaving aside the debian pkg builder. It would be much easier > to control the build configuration process, at least for me: > > http://xenomai.org/installing-xenomai-3-x/#Building_the_x86_libraries_3264bit > >> Unfortunately, I got compilation errors after applying the patch to >> xenomai-3.0-rc3: error: ‘XENO_WARNING’ undeclared (first use in this >> function) > > Yes, I'm always referring to the current development tip in this discussion. > >> So I decided to repeat my steps with the git next branch, 52fb91e... >> So, same linux kernel, i-pipe patch and kernel config. Also included >> the printk patch. Output: >> >> == Sampling period: 100 us >> == Test mode: periodic user-mode task >> == All results in microseconds >> warming up... >> latency: failed to set periodic, code 9 >> ^C---|-----------|-----------|-----------|--------|------|------------------------- >> RTS| 10000.000| 0.000| -10000.000| 0| 0| 00:03:26/00:03:26 >> >> Notice the ^C. I killed it because it was running indefinitely. This > > That is expected, the main thread just hangs paused in this case. If you > don't hit ^C, the real-time core should report two cobalt threads as > follows: On my side, when running without hitting ^C, the console output: == Sampling period: 100 us == Test mode: periodic user-mode task == All results in microseconds warming up... latency: failed to set periodic, code 9 > > ~ # cat /proc/xenomai/sched/threads > CPU PID CLASS TYPE PRI TIMEOUT STAT NAME > 0 0 idle core -1 - R [ROOT] > 0 1206 rt cobalt 0 - X latency > 0 1208 rt cobalt 0 - W display-1206 > Console output for this: CPU PID CLASS TYPE PRI TIMEOUT STAT NAME 0 0 idle core -1 - R [ROOT/0] 1 0 idle core -1 - R [ROOT/1] 2 0 idle core -1 - R [ROOT/2] 3 0 idle core -1 - R [ROOT/3] 2 541 rt core 98 - W [rtnet-stack] 3 542 rt core 0 - W [rtnet-rtpc] 0 2959 rt cobalt 0 - X latency 0 2961 rt cobalt 0 - W display-2959 > Do you confirm this on your end? If so, then can you look a bit further, > listing the file descriptors currently open for the main thread, e.g. in > my case: > > ~ # ls -l /proc/1206/fd > total 0 > lrwx------ 1 root root 64 Feb 25 09:21 0 -> /dev/pts/0 > lrwx------ 1 root root 64 Feb 25 09:21 1 -> /dev/pts/0 > lrwx------ 1 root root 64 Feb 25 09:21 2 -> /dev/pts/0 > lrwx------ 1 root root 64 Feb 25 09:21 3 -> > anon_inode:[cobalt-timerfd] > And for this: # ls -l /proc/2959/fd total 0 lrwx------ 1 root root 64 Feb 26 08:13 0 -> /dev/pts/1 lrwx------ 1 root root 64 Feb 26 08:13 1 -> /dev/pts/1 lrwx------ 1 root root 64 Feb 26 08:13 2 -> /dev/pts/1 lrwx------ 1 root root 64 Feb 26 08:13 3 -> anon_inode:[cobalt-timerfd] > I'm interested to know whether you can see the last one. > >> was also the case in my previous attempts. >> > > So you received no message visible from dmesg? > Also checked dmesg, no extra outputs relating to the latency program. Michael > -- > Philippe. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Xenomai] Failed testsuite/latency 2015-02-25 8:33 ` Bart Vissers 2015-02-25 9:24 ` Philippe Gerum @ 2015-02-26 6:07 ` Michael Smith 2015-03-02 14:56 ` Philippe Gerum 2 siblings, 0 replies; 20+ messages in thread From: Michael Smith @ 2015-02-26 6:07 UTC (permalink / raw) To: Bart Vissers; +Cc: xenomai On Wed, Feb 25, 2015 at 10:33 AM, Bart Vissers <bvissers@e2mtechnologies.eu> wrote: > Hi Philippe, > > Before making any changes, I ran xeno-config --info: > Xenomai version: Xenomai/cobalt v3.0-rc3 -- > Linux rtpc 3.16.7-xenomai-3.0-rc3 #1 SMP Mon Feb 23 12:30:46 CET 2015 > i686 GNU/Linux > Kernel parameters: BOOT_IMAGE=/boot/vmlinuz-3.16.7-xenomai-3.0-rc3 > root=UUID=0925426e-e058-4093-963c-8b7de072e229 ro quiet > I-pipe release #2 detected > Cobalt core 3.0-rc3 detected > Build args: --prefix=/usr --includedir=/usr/include/xenomai > --mandir=/usr/share/man --with-testdir=/usr/lib/xenomai/testsuite > --build i486-linux-gnu build_alias=i486-linux-gnu > > namelist did not work, as latency does not contain any symbols. How > can I include these when building debian packages? > > Unfortunately, I got compilation errors after applying the patch to > xenomai-3.0-rc3: error: ‘XENO_WARNING’ undeclared (first use in this > function) > So I decided to repeat my steps with the git next branch, 52fb91e... > So, same linux kernel, i-pipe patch and kernel config. Also included > the printk patch. Output: > > == Sampling period: 100 us > == Test mode: periodic user-mode task > == All results in microseconds > warming up... > latency: failed to set periodic, code 9 > ^C---|-----------|-----------|-----------|--------|------|------------------------- > RTS| 10000.000| 0.000| -10000.000| 0| 0| 00:03:26/00:03:26 > > Notice the ^C. I killed it because it was running indefinitely. This > was also the case in my previous attempts. > > > Best regards, > Bart Just to confirm my output screen pretty much looks identical, after I hit Ctrl-C. Michael ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Xenomai] Failed testsuite/latency 2015-02-25 8:33 ` Bart Vissers 2015-02-25 9:24 ` Philippe Gerum 2015-02-26 6:07 ` Michael Smith @ 2015-03-02 14:56 ` Philippe Gerum 2015-03-03 15:29 ` Philippe Gerum 2 siblings, 1 reply; 20+ messages in thread From: Philippe Gerum @ 2015-03-02 14:56 UTC (permalink / raw) To: Bart Vissers; +Cc: Michael Smith, xenomai On 02/25/2015 09:33 AM, Bart Vissers wrote: > Hi Philippe, > > Before making any changes, I ran xeno-config --info: > Xenomai version: Xenomai/cobalt v3.0-rc3 -- > Linux rtpc 3.16.7-xenomai-3.0-rc3 #1 SMP Mon Feb 23 12:30:46 CET 2015 > i686 GNU/Linux > Kernel parameters: BOOT_IMAGE=/boot/vmlinuz-3.16.7-xenomai-3.0-rc3 > root=UUID=0925426e-e058-4093-963c-8b7de072e229 ro quiet > I-pipe release #2 detected > Cobalt core 3.0-rc3 detected > Build args: --prefix=/usr --includedir=/usr/include/xenomai > --mandir=/usr/share/man --with-testdir=/usr/lib/xenomai/testsuite > --build i486-linux-gnu build_alias=i486-linux-gnu > > namelist did not work, as latency does not contain any symbols. How > can I include these when building debian packages? > > Unfortunately, I got compilation errors after applying the patch to > xenomai-3.0-rc3: error: ‘XENO_WARNING’ undeclared (first use in this > function) > So I decided to repeat my steps with the git next branch, 52fb91e... > So, same linux kernel, i-pipe patch and kernel config. Also included > the printk patch. Output: > > == Sampling period: 100 us > == Test mode: periodic user-mode task > == All results in microseconds > warming up... > latency: failed to set periodic, code 9 > ^C---|-----------|-----------|-----------|--------|------|------------------------- > RTS| 10000.000| 0.000| -10000.000| 0| 0| 00:03:26/00:03:26 > > Notice the ^C. I killed it because it was running indefinitely. This > was also the case in my previous attempts. > > Can any of you send me the generated debian package privately? I would also need to know the gcc version used. Thanks, -- Philippe. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Xenomai] Failed testsuite/latency 2015-03-02 14:56 ` Philippe Gerum @ 2015-03-03 15:29 ` Philippe Gerum 2015-03-03 15:46 ` Philippe Gerum 0 siblings, 1 reply; 20+ messages in thread From: Philippe Gerum @ 2015-03-03 15:29 UTC (permalink / raw) To: Bart Vissers; +Cc: Michael Smith, xenomai On 03/02/2015 03:56 PM, Philippe Gerum wrote: > On 02/25/2015 09:33 AM, Bart Vissers wrote: >> Hi Philippe, >> >> Before making any changes, I ran xeno-config --info: >> Xenomai version: Xenomai/cobalt v3.0-rc3 -- >> Linux rtpc 3.16.7-xenomai-3.0-rc3 #1 SMP Mon Feb 23 12:30:46 CET 2015 >> i686 GNU/Linux >> Kernel parameters: BOOT_IMAGE=/boot/vmlinuz-3.16.7-xenomai-3.0-rc3 >> root=UUID=0925426e-e058-4093-963c-8b7de072e229 ro quiet >> I-pipe release #2 detected >> Cobalt core 3.0-rc3 detected >> Build args: --prefix=/usr --includedir=/usr/include/xenomai >> --mandir=/usr/share/man --with-testdir=/usr/lib/xenomai/testsuite >> --build i486-linux-gnu build_alias=i486-linux-gnu >> >> namelist did not work, as latency does not contain any symbols. How >> can I include these when building debian packages? >> >> Unfortunately, I got compilation errors after applying the patch to >> xenomai-3.0-rc3: error: ‘XENO_WARNING’ undeclared (first use in this >> function) >> So I decided to repeat my steps with the git next branch, 52fb91e... >> So, same linux kernel, i-pipe patch and kernel config. Also included >> the printk patch. Output: >> >> == Sampling period: 100 us >> == Test mode: periodic user-mode task >> == All results in microseconds >> warming up... >> latency: failed to set periodic, code 9 >> ^C---|-----------|-----------|-----------|--------|------|------------------------- >> RTS| 10000.000| 0.000| -10000.000| 0| 0| 00:03:26/00:03:26 >> >> Notice the ^C. I killed it because it was running indefinitely. This >> was also the case in my previous attempts. >> >> > > Can any of you send me the generated debian package privately? I would > also need to know the gcc version used. > Never mind, I could reproduce this bug eventually. This issue is due to some register trashing at work in the pipeline code, not to the Xenomai core. More later. -- Philippe. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Xenomai] Failed testsuite/latency 2015-03-03 15:29 ` Philippe Gerum @ 2015-03-03 15:46 ` Philippe Gerum 2015-03-03 19:18 ` Philippe Gerum 0 siblings, 1 reply; 20+ messages in thread From: Philippe Gerum @ 2015-03-03 15:46 UTC (permalink / raw) To: Bart Vissers; +Cc: Michael Smith, xenomai On 03/03/2015 04:29 PM, Philippe Gerum wrote: > On 03/02/2015 03:56 PM, Philippe Gerum wrote: >> On 02/25/2015 09:33 AM, Bart Vissers wrote: >>> Hi Philippe, >>> >>> Before making any changes, I ran xeno-config --info: >>> Xenomai version: Xenomai/cobalt v3.0-rc3 -- >>> Linux rtpc 3.16.7-xenomai-3.0-rc3 #1 SMP Mon Feb 23 12:30:46 CET 2015 >>> i686 GNU/Linux >>> Kernel parameters: BOOT_IMAGE=/boot/vmlinuz-3.16.7-xenomai-3.0-rc3 >>> root=UUID=0925426e-e058-4093-963c-8b7de072e229 ro quiet >>> I-pipe release #2 detected >>> Cobalt core 3.0-rc3 detected >>> Build args: --prefix=/usr --includedir=/usr/include/xenomai >>> --mandir=/usr/share/man --with-testdir=/usr/lib/xenomai/testsuite >>> --build i486-linux-gnu build_alias=i486-linux-gnu >>> >>> namelist did not work, as latency does not contain any symbols. How >>> can I include these when building debian packages? >>> >>> Unfortunately, I got compilation errors after applying the patch to >>> xenomai-3.0-rc3: error: ‘XENO_WARNING’ undeclared (first use in this >>> function) >>> So I decided to repeat my steps with the git next branch, 52fb91e... >>> So, same linux kernel, i-pipe patch and kernel config. Also included >>> the printk patch. Output: >>> >>> == Sampling period: 100 us >>> == Test mode: periodic user-mode task >>> == All results in microseconds >>> warming up... >>> latency: failed to set periodic, code 9 >>> ^C---|-----------|-----------|-----------|--------|------|------------------------- >>> RTS| 10000.000| 0.000| -10000.000| 0| 0| 00:03:26/00:03:26 >>> >>> Notice the ^C. I killed it because it was running indefinitely. This >>> was also the case in my previous attempts. >>> >>> >> >> Can any of you send me the generated debian package privately? I would >> also need to know the gcc version used. >> > > Never mind, I could reproduce this bug eventually. This issue is due to > some register trashing at work in the pipeline code, not to the Xenomai > core. More later. > This patch will fix this issue. diff --git a/arch/x86/kernel/entry_32.S b/arch/x86/kernel/entry_32.S index 6e6b88a..e834437 100644 --- a/arch/x86/kernel/entry_32.S +++ b/arch/x86/kernel/entry_32.S @@ -517,6 +517,7 @@ sysenter_exit_fast: jmp sysenter_exit sysenter_exit_root: call __ipipe_root_sync + movl PT_EAX(%esp),%eax jmp sysenter_exit_check #endif -- Philippe. ^ permalink raw reply related [flat|nested] 20+ messages in thread
* Re: [Xenomai] Failed testsuite/latency 2015-03-03 15:46 ` Philippe Gerum @ 2015-03-03 19:18 ` Philippe Gerum 2015-03-03 19:29 ` Helder Daniel 0 siblings, 1 reply; 20+ messages in thread From: Philippe Gerum @ 2015-03-03 19:18 UTC (permalink / raw) To: Bart Vissers; +Cc: Michael Smith, xenomai On 03/03/2015 04:46 PM, Philippe Gerum wrote: > On 03/03/2015 04:29 PM, Philippe Gerum wrote: >> On 03/02/2015 03:56 PM, Philippe Gerum wrote: >>> On 02/25/2015 09:33 AM, Bart Vissers wrote: >>>> Hi Philippe, >>>> >>>> Before making any changes, I ran xeno-config --info: >>>> Xenomai version: Xenomai/cobalt v3.0-rc3 -- >>>> Linux rtpc 3.16.7-xenomai-3.0-rc3 #1 SMP Mon Feb 23 12:30:46 CET 2015 >>>> i686 GNU/Linux >>>> Kernel parameters: BOOT_IMAGE=/boot/vmlinuz-3.16.7-xenomai-3.0-rc3 >>>> root=UUID=0925426e-e058-4093-963c-8b7de072e229 ro quiet >>>> I-pipe release #2 detected >>>> Cobalt core 3.0-rc3 detected >>>> Build args: --prefix=/usr --includedir=/usr/include/xenomai >>>> --mandir=/usr/share/man --with-testdir=/usr/lib/xenomai/testsuite >>>> --build i486-linux-gnu build_alias=i486-linux-gnu >>>> >>>> namelist did not work, as latency does not contain any symbols. How >>>> can I include these when building debian packages? >>>> >>>> Unfortunately, I got compilation errors after applying the patch to >>>> xenomai-3.0-rc3: error: ‘XENO_WARNING’ undeclared (first use in this >>>> function) >>>> So I decided to repeat my steps with the git next branch, 52fb91e... >>>> So, same linux kernel, i-pipe patch and kernel config. Also included >>>> the printk patch. Output: >>>> >>>> == Sampling period: 100 us >>>> == Test mode: periodic user-mode task >>>> == All results in microseconds >>>> warming up... >>>> latency: failed to set periodic, code 9 >>>> ^C---|-----------|-----------|-----------|--------|------|------------------------- >>>> RTS| 10000.000| 0.000| -10000.000| 0| 0| 00:03:26/00:03:26 >>>> >>>> Notice the ^C. I killed it because it was running indefinitely. This >>>> was also the case in my previous attempts. >>>> >>>> >>> >>> Can any of you send me the generated debian package privately? I would >>> also need to know the gcc version used. >>> >> >> Never mind, I could reproduce this bug eventually. This issue is due to >> some register trashing at work in the pipeline code, not to the Xenomai >> core. More later. >> > > This patch will fix this issue. > > diff --git a/arch/x86/kernel/entry_32.S b/arch/x86/kernel/entry_32.S > index 6e6b88a..e834437 100644 > --- a/arch/x86/kernel/entry_32.S > +++ b/arch/x86/kernel/entry_32.S > @@ -517,6 +517,7 @@ sysenter_exit_fast: > jmp sysenter_exit > sysenter_exit_root: > call __ipipe_root_sync > + movl PT_EAX(%esp),%eax > jmp sysenter_exit_check > #endif > Now available from the download area: http://download.gna.org/adeos/patches/v3.x/x86/ipipe-core-3.16-x86-3.patch and from the Xenomai GIT tree: http://git.xenomai.org/xenomai-3.git/commit/?h=next&id=51680b1d9b3b1993011da1ddf56b54c12e59d49d This patch is a drop in replacement for ipipe-core-3.16-x86-2 which is broken in 32bit mode. -- Philippe. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Xenomai] Failed testsuite/latency 2015-03-03 19:18 ` Philippe Gerum @ 2015-03-03 19:29 ` Helder Daniel 2015-03-03 19:43 ` Philippe Gerum 0 siblings, 1 reply; 20+ messages in thread From: Helder Daniel @ 2015-03-03 19:29 UTC (permalink / raw) To: Philippe Gerum; +Cc: Michael Smith, Xenomai@xenomai.org Hi, I Tried to access the patch as I have the same problem when running latency on cobalt: http://download.gna.org/adeos/patches/v3.x/x86/ipipe-core-3.16-x86-3.patch but is not accessible: You don't have permission to access /adeos/patches/v3.x/x86/ipipe-core-3.16-x86-3.patch on this server. On 3 March 2015 at 19:18, Philippe Gerum <rpm@xenomai.org> wrote: > On 03/03/2015 04:46 PM, Philippe Gerum wrote: > > On 03/03/2015 04:29 PM, Philippe Gerum wrote: > >> On 03/02/2015 03:56 PM, Philippe Gerum wrote: > >>> On 02/25/2015 09:33 AM, Bart Vissers wrote: > >>>> Hi Philippe, > >>>> > >>>> Before making any changes, I ran xeno-config --info: > >>>> Xenomai version: Xenomai/cobalt v3.0-rc3 -- > >>>> Linux rtpc 3.16.7-xenomai-3.0-rc3 #1 SMP Mon Feb 23 12:30:46 CET 2015 > >>>> i686 GNU/Linux > >>>> Kernel parameters: BOOT_IMAGE=/boot/vmlinuz-3.16.7-xenomai-3.0-rc3 > >>>> root=UUID=0925426e-e058-4093-963c-8b7de072e229 ro quiet > >>>> I-pipe release #2 detected > >>>> Cobalt core 3.0-rc3 detected > >>>> Build args: --prefix=/usr --includedir=/usr/include/xenomai > >>>> --mandir=/usr/share/man --with-testdir=/usr/lib/xenomai/testsuite > >>>> --build i486-linux-gnu build_alias=i486-linux-gnu > >>>> > >>>> namelist did not work, as latency does not contain any symbols. How > >>>> can I include these when building debian packages? > >>>> > >>>> Unfortunately, I got compilation errors after applying the patch to > >>>> xenomai-3.0-rc3: error: ‘XENO_WARNING’ undeclared (first use in this > >>>> function) > >>>> So I decided to repeat my steps with the git next branch, 52fb91e... > >>>> So, same linux kernel, i-pipe patch and kernel config. Also included > >>>> the printk patch. Output: > >>>> > >>>> == Sampling period: 100 us > >>>> == Test mode: periodic user-mode task > >>>> == All results in microseconds > >>>> warming up... > >>>> latency: failed to set periodic, code 9 > >>>> > ^C---|-----------|-----------|-----------|--------|------|------------------------- > >>>> RTS| 10000.000| 0.000| -10000.000| 0| 0| > 00:03:26/00:03:26 > >>>> > >>>> Notice the ^C. I killed it because it was running indefinitely. This > >>>> was also the case in my previous attempts. > >>>> > >>>> > >>> > >>> Can any of you send me the generated debian package privately? I would > >>> also need to know the gcc version used. > >>> > >> > >> Never mind, I could reproduce this bug eventually. This issue is due to > >> some register trashing at work in the pipeline code, not to the Xenomai > >> core. More later. > >> > > > > This patch will fix this issue. > > > > diff --git a/arch/x86/kernel/entry_32.S b/arch/x86/kernel/entry_32.S > > index 6e6b88a..e834437 100644 > > --- a/arch/x86/kernel/entry_32.S > > +++ b/arch/x86/kernel/entry_32.S > > @@ -517,6 +517,7 @@ sysenter_exit_fast: > > jmp sysenter_exit > > sysenter_exit_root: > > call __ipipe_root_sync > > + movl PT_EAX(%esp),%eax > > jmp sysenter_exit_check > > #endif > > > > Now available from the download area: > http://download.gna.org/adeos/patches/v3.x/x86/ipipe-core-3.16-x86-3.patch > > and from the Xenomai GIT tree: > > http://git.xenomai.org/xenomai-3.git/commit/?h=next&id=51680b1d9b3b1993011da1ddf56b54c12e59d49d > > This patch is a drop in replacement for ipipe-core-3.16-x86-2 which is > broken in 32bit mode. > > -- > Philippe. > > _______________________________________________ > Xenomai mailing list > Xenomai@xenomai.org > http://www.xenomai.org/mailman/listinfo/xenomai > -- Helder Daniel UALG - FCT DEEI http://w3.ualg.pt/~hdaniel ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Xenomai] Failed testsuite/latency 2015-03-03 19:29 ` Helder Daniel @ 2015-03-03 19:43 ` Philippe Gerum 2015-03-05 12:04 ` Helder Daniel 0 siblings, 1 reply; 20+ messages in thread From: Philippe Gerum @ 2015-03-03 19:43 UTC (permalink / raw) To: Helder Daniel; +Cc: Michael Smith, Xenomai@xenomai.org On 03/03/2015 08:29 PM, Helder Daniel wrote: > Hi, > > I Tried to access the patch as I have the same problem when running > latency on cobalt: > > http://download.gna.org/adeos/patches/v3.x/x86/ipipe-core-3.16-x86-3.patch > > but is not accessible: > > You don't have permission to access > /adeos/patches/v3.x/x86/ipipe-core-3.16-x86-3.patch on this server. > It should be accessible now. -- Philippe. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Xenomai] Failed testsuite/latency 2015-03-03 19:43 ` Philippe Gerum @ 2015-03-05 12:04 ` Helder Daniel 2015-03-05 13:33 ` Philippe Gerum 0 siblings, 1 reply; 20+ messages in thread From: Helder Daniel @ 2015-03-05 12:04 UTC (permalink / raw) To: Philippe Gerum; +Cc: Michael Smith, Xenomai@xenomai.org Just to confirm that latency executable is running on this new patch (even in a VMWare image) On 3 March 2015 at 19:43, Philippe Gerum <rpm@xenomai.org> wrote: > On 03/03/2015 08:29 PM, Helder Daniel wrote: > > Hi, > > > > I Tried to access the patch as I have the same problem when running > > latency on cobalt: > > > > > http://download.gna.org/adeos/patches/v3.x/x86/ipipe-core-3.16-x86-3.patch > > > > but is not accessible: > > > > You don't have permission to access > > /adeos/patches/v3.x/x86/ipipe-core-3.16-x86-3.patch on this server. > > > > It should be accessible now. > > -- > Philippe. > -- Helder Daniel UALG - FCT DEEI http://w3.ualg.pt/~hdaniel ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [Xenomai] Failed testsuite/latency 2015-03-05 12:04 ` Helder Daniel @ 2015-03-05 13:33 ` Philippe Gerum 0 siblings, 0 replies; 20+ messages in thread From: Philippe Gerum @ 2015-03-05 13:33 UTC (permalink / raw) To: Helder Daniel; +Cc: Michael Smith, Xenomai@xenomai.org On 03/05/2015 01:04 PM, Helder Daniel wrote: > Just to confirm that latency executable is running on this new patch > (even in a VMWare image) > Ok, good to know. Thanks for reporting. > On 3 March 2015 at 19:43, Philippe Gerum <rpm@xenomai.org > <mailto:rpm@xenomai.org>> wrote: > > On 03/03/2015 08:29 PM, Helder Daniel wrote: > > Hi, > > > > I Tried to access the patch as I have the same problem when running > > latency on cobalt: > > > > http://download.gna.org/adeos/patches/v3.x/x86/ipipe-core-3.16-x86-3.patch > > > > but is not accessible: > > > > You don't have permission to access > > /adeos/patches/v3.x/x86/ipipe-core-3.16-x86-3.patch on this server. > > > > It should be accessible now. > > -- > Philippe. > > > > > -- > Helder Daniel > UALG - FCT > DEEI > > http://w3.ualg.pt/~hdaniel -- Philippe. ^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2015-03-05 13:33 UTC | newest] Thread overview: 20+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-02-23 12:30 [Xenomai] Failed testsuite/latency Michael Smith 2015-02-23 12:38 ` Gilles Chanteperdrix 2015-02-23 14:23 ` Michael Smith 2015-02-23 16:00 ` Philippe Gerum 2015-02-24 13:28 ` Bart Vissers 2015-02-24 14:37 ` Philippe Gerum 2015-02-25 8:33 ` Bart Vissers 2015-02-25 9:24 ` Philippe Gerum 2015-02-25 9:32 ` Gilles Chanteperdrix 2015-02-26 6:05 ` Michael Smith 2015-02-26 6:20 ` Michael Smith 2015-02-26 6:07 ` Michael Smith 2015-03-02 14:56 ` Philippe Gerum 2015-03-03 15:29 ` Philippe Gerum 2015-03-03 15:46 ` Philippe Gerum 2015-03-03 19:18 ` Philippe Gerum 2015-03-03 19:29 ` Helder Daniel 2015-03-03 19:43 ` Philippe Gerum 2015-03-05 12:04 ` Helder Daniel 2015-03-05 13:33 ` 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.