Re: [Xenomai-core] [PATCH] rtcan_rtt: Various fixes and improvement

2010-01-18 Thread Gilles Chanteperdrix
Wolfgang Grandegger wrote: Gilles Chanteperdrix wrote: Wolfgang Grandegger wrote: This patch fixes type long overflows, invalid command line argument types and gives the receiver and transmitter thread dedicated names. Signed-off-by: Wolfgang Grandegger w...@denx.de diff --git a/examples

[Xenomai-core] debugging stuff, take 2

2010-01-17 Thread Gilles Chanteperdrix
Hi, here is a second attempt of debugging stuff, taking into account the previous remarks. -- Gilles Chanteperdrix ___ Xenomai-core mailing list Xenomai-core@gna.org https://mail.gna.org/listinfo/xenomai-core

[Xenomai-core] [PATCH 2/3] skins: fault the main thread stack when shadowing it.

2010-01-17 Thread Gilles Chanteperdrix
--- include/asm-generic/bits/bind.h |2 ++ src/skins/common/bind.c | 14 ++ src/skins/native/task.c |2 ++ src/skins/posix/thread.c|2 ++ src/skins/psos+/task.c |2 ++ src/skins/uitron/task.c |9 +++-- 6 files changed,

[Xenomai-core] [PATCH 3/3] latency: account for and signal involuntary mode switches.

2010-01-17 Thread Gilles Chanteperdrix
--- src/testsuite/latency/latency.c | 109 --- 1 files changed, 78 insertions(+), 31 deletions(-) diff --git a/src/testsuite/latency/latency.c b/src/testsuite/latency/latency.c index f82a072..ca5f1bf 100644 --- a/src/testsuite/latency/latency.c +++

[Xenomai-core] [PATCH 1/3] nucleus: allow xnlock debugging even on UP kernels

2010-01-17 Thread Gilles Chanteperdrix
--- include/asm-generic/bits/pod.h |2 +- include/asm-generic/system.h | 27 +-- include/nucleus/queue.h| 16 ksrc/nucleus/Kconfig | 12 ksrc/nucleus/intr.c|4 ++-- ksrc/nucleus/pod.c |

Re: [Xenomai-core] [PATCH xenomai-2.5 0/3] rtcan: mscan: new OF platform driver for MPC521x and MPC5200

2010-01-16 Thread Gilles Chanteperdrix
Wolfgang Grandegger wrote: Hi Gilles Gilles Chanteperdrix wrote: Wolfgang Grandegger wrote: Gilles Chanteperdrix wrote: Wolfgang Grandegger wrote: From: Wolfgang Grandegger w...@denx.de This patch series adds RT-Socket-CAN support for the MSCAN on the MPC512x from Freescale

[Xenomai-core] [Patch 0/3] debugging stuff.

2010-01-16 Thread Gilles Chanteperdrix
Hi, I post here, for review, 3 patches which helped me debugging. I await your opinion before merging them. TIA, -- Gilles. ___ Xenomai-core mailing list Xenomai-core@gna.org

[Xenomai-core] [PATCH 2/3] skins: fault the main thread stack when shadowing it.

2010-01-16 Thread Gilles Chanteperdrix
--- include/asm-generic/bits/bind.h |2 ++ src/skins/common/bind.c | 14 ++ src/skins/native/task.c |2 ++ src/skins/posix/thread.c|2 ++ src/skins/psos+/task.c |2 ++ src/skins/uitron/task.c |9 +++-- 6 files changed,

[Xenomai-core] [PATCH 3/3] latency: account for and signal involuntary mode switches.

2010-01-16 Thread Gilles Chanteperdrix
--- src/testsuite/latency/latency.c | 103 +++--- 1 files changed, 73 insertions(+), 30 deletions(-) diff --git a/src/testsuite/latency/latency.c b/src/testsuite/latency/latency.c index f82a072..9af785e 100644 --- a/src/testsuite/latency/latency.c +++

[Xenomai-core] [PATCH 1/3] nucleus: allow xnlock debugging even on UP kernels

2010-01-16 Thread Gilles Chanteperdrix
--- include/asm-generic/bits/pod.h |2 +- include/asm-generic/system.h | 19 +-- include/nucleus/queue.h| 16 ksrc/nucleus/intr.c|4 ++-- ksrc/nucleus/pod.c | 16 ksrc/skins/posix/signal.c |

Re: [Xenomai-core] [PATCH xenomai-2.5 0/3] rtcan: mscan: new OF platform driver for MPC521x and MPC5200

2010-01-15 Thread Gilles Chanteperdrix
Wolfgang Grandegger wrote: From: Wolfgang Grandegger w...@denx.de This patch series adds RT-Socket-CAN support for the MSCAN on the MPC512x from Freescale by introducing a new OF platform driver for both, the MPC521x and MPC5200, while still keeping the old driver for the MPC5200 for

Re: [Xenomai-core] [PATCH xenomai-2.5 0/3] rtcan: mscan: new OF platform driver for MPC521x and MPC5200

2010-01-15 Thread Gilles Chanteperdrix
Wolfgang Grandegger wrote: Gilles Chanteperdrix wrote: Wolfgang Grandegger wrote: From: Wolfgang Grandegger w...@denx.de This patch series adds RT-Socket-CAN support for the MSCAN on the MPC512x from Freescale by introducing a new OF platform driver for both, the MPC521x and MPC5200, while

Re: [Xenomai-core] [PATCH xenomai-2.5 3/3] rtcan: mscan: new OF platform driver for MPC521x and MPC5200

2010-01-14 Thread Gilles Chanteperdrix
Wolfgang Grandegger wrote: Wolfgang Grandegger wrote: pdir=../send-rtcan-mscan-mpc5xxx/ sprefix=PATCH xenomai-2.5 commitid=b197fe0f370d92ee1838b370fbf927ca50a0e573 subject=rtcan: mscan: new OF platform driver for MPC521x and MPC5200 blurb=\ This patch series adds RT-Socket-CAN support for

Re: [Xenomai-core] [PATCH 1/1] rtdk: various fixes.

2010-01-13 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: When exiting a process, rtdk buffers are not flushed. Fix that by introducing a destructor for the library which flushes the buffers. When forking, if the main thread has an rt_printf buffer

Re: [Xenomai-core] [PATCH 1/1] rtdk: various fixes.

2010-01-11 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: When exiting a process, rtdk buffers are not flushed. Fix that by introducing a destructor for the library which flushes the buffers. When forking, if the main thread has an rt_printf buffer, it is reused by the child, which is a good thing

Re: [Xenomai-core] [PATCH 1/1] rtdk: various fixes.

2010-01-11 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: When exiting a process, rtdk buffers are not flushed. Fix that by introducing a destructor for the library which flushes the buffers. When forking, if the main thread has an rt_printf buffer

Re: [Xenomai-core] [PATCH 1/1] rtdk: various fixes.

2010-01-11 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: When exiting a process, rtdk buffers are not flushed. Fix that by introducing a destructor for the library which flushes the buffers. When forking, if the main thread has an rt_printf buffer

[Xenomai-core] Latency spots due to involuntary mode switches to secondary mode.

2010-01-08 Thread Gilles Chanteperdrix
Hi, due to bugs, it may happen that the latency test spots are due to involuntary mode switches to secondary mode. This is bad, because users testing xenomai quickly on their platform may find a bad latency, and go quickly to conclusions without even posting a mail on the mailing lists.

[Xenomai-core] [PATCH 1/1] rtdk: various fixes.

2010-01-08 Thread Gilles Chanteperdrix
When exiting a process, rtdk buffers are not flushed. Fix that by introducing a destructor for the library which flushes the buffers. When forking, if the main thread has an rt_printf buffer, it is reused by the child, which is a good thing, however, it is not emptied, so could cause the same

Re: [Xenomai-core] Build problem with xenomai-2.4 git head

2009-12-30 Thread Gilles Chanteperdrix
Wolfgang Grandegger wrote: Hello, I get the following error when building GIT head of xenomai-2.4 for PowerPC: Making all in cyclic make[3]: Entering directory `/work/wolf/pdm360ng/xenomai-2.4/src/testsuite/cyclic' /bin/sh ../../../libtool --tag=CC --mode=link

Re: [Xenomai-core] Build problem with xenomai-2.4 git head

2009-12-30 Thread Gilles Chanteperdrix
Wolfgang Grandegger wrote: Hello, I get the following error when building GIT head of xenomai-2.4 for PowerPC: Making all in cyclic make[3]: Entering directory `/work/wolf/pdm360ng/xenomai-2.4/src/testsuite/cyclic' /bin/sh ../../../libtool --tag=CC --mode=link

[Xenomai-core] pull request

2009-12-28 Thread Gilles Chanteperdrix
The following changes since commit e1db93a63545cb99b8f615b69aff22920fa0ee39: Philippe Gerum (1): blackfin: export atomic set/clear mask fns are available in the git repository at: git://git.xenomai.org/xenomai-gch.git for-head Gilles Chanteperdrix (3): analogy: comment out

Re: [Xenomai-core] [PATCH 2/2] Testcase for the xnvdso mechanism

2009-12-28 Thread Gilles Chanteperdrix
Gilles Chanteperdrix wrote: Wolfgang Mauerer wrote: Gilles Chanteperdrix wrote: Wolfgang Mauerer wrote: This testcase checks if the value in xnvdso-features matches the value of XNVDSO_FEATURES, that is, if the information is correctly transferred from kernel to userland. Notice

Re: [Xenomai-core] Build tests: analogy, blackfin, rtcan and nios2.

2009-12-26 Thread Gilles Chanteperdrix
Alexis Berlemont wrote: Hi Gilles, Gilles Chanteperdrix wrote: Alexis Berlemont wrote: Hi Gilles, Gilles Chanteperdrix wrote: Hi, Since I started talking about it, I have run build tests fixing a few things here and there. The current status is this (still at the same place: http

Re: [Xenomai-core] Build tests: analogy, blackfin, rtcan and nios2.

2009-12-26 Thread Gilles Chanteperdrix
Philippe Gerum wrote: On Sat, 2009-12-26 at 19:09 +0100, Gilles Chanteperdrix wrote: Alexis Berlemont wrote: Hi Gilles, Gilles Chanteperdrix wrote: Alexis Berlemont wrote: Hi Gilles, Gilles Chanteperdrix wrote: Hi, Since I started talking about it, I have run build tests fixing a few

Re: [Xenomai-core] [PATCH 2/2] Testcase for the xnvdso mechanism

2009-12-23 Thread Gilles Chanteperdrix
Wolfgang Mauerer wrote: This testcase checks if the value in xnvdso-features matches the value of XNVDSO_FEATURES, that is, if the information is correctly transferred from kernel to userland. Notice that the approach will fail once configurations are supported that know of multiple

Re: [Xenomai-core] [PATCH 2/2] Testcase for the xnvdso mechanism

2009-12-23 Thread Gilles Chanteperdrix
Wolfgang Mauerer wrote: Gilles Chanteperdrix wrote: Wolfgang Mauerer wrote: This testcase checks if the value in xnvdso-features matches the value of XNVDSO_FEATURES, that is, if the information is correctly transferred from kernel to userland. Notice that the approach will fail once

Re: [Xenomai-core] Build tests: analogy, blackfin, rtcan and nios2.

2009-12-23 Thread Gilles Chanteperdrix
Patrice Kadionik wrote: Gilles Chanteperdrix a écrit : Hi, Since I started talking about it, I have run build tests fixing a few things here and there. The current status is this (still at the same place: http://sisyphus.hd.free.fr/~gilles/bx): Hi, I've watched your log file

Re: [Xenomai-core] Build tests: analogy, blackfin, rtcan and nios2.

2009-12-23 Thread Gilles Chanteperdrix
Alexis Berlemont wrote: Hi Gilles, Gilles Chanteperdrix wrote: Hi, Since I started talking about it, I have run build tests fixing a few things here and there. The current status is this (still at the same place: http://sisyphus.hd.free.fr/~gilles/bx): * analogy: I have tried to disable

Re: [Xenomai-core] [PATCH] Add support for sharing kernel/userland data between Xenomai and Linux

2009-12-22 Thread Gilles Chanteperdrix
wolfgang.maue...@siemens.com wrote: From: Wolfgang Mauerer wolfgang.maue...@siemens.com A new structure (struct xnshared) is introduced. It allows us to share generic data between user and kernel of Linux and Xenomai; a bitmap of feature flags located at the beginning of the structure

[Xenomai-core] Build tests: analogy, blackfin, rtcan and nios2.

2009-12-22 Thread Gilles Chanteperdrix
Hi, Since I started talking about it, I have run build tests fixing a few things here and there. The current status is this (still at the same place: http://sisyphus.hd.free.fr/~gilles/bx): * analogy: I have tried to disable some parts of analogy when compiling on machines without CONFIG_PCI,

[Xenomai-core] Pull request: build fixes.

2009-12-22 Thread Gilles Chanteperdrix
The following changes since commit 0cb257bf7393b5a53eb35b021b95730bd40dd561: Philippe Gerum (1): Merge commit 'gilles' are available in the git repository at: git://git.xenomai.org/xenomai-gch.git for-head Gilles Chanteperdrix (3): arith: avoid ARM Linux do_div compile-time

Re: [Xenomai-core] Build tests: analogy, blackfin, rtcan and nios2.

2009-12-22 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: * rtcan: on blackfin we seem to have a conflict with rtcan. The warning is about CAN_ERR_MASK, sure blackfin is a bit strange to define this in core headers which are included everywhere. This said, not prefixing a Xenomai symbol with something

Re: [Xenomai-core] [PATCH] Add support for sharing kernel/userland data between Xenomai and Linux

2009-12-22 Thread Gilles Chanteperdrix
Gilles Chanteperdrix wrote: wolfgang.maue...@siemens.com wrote: +/* + * We re-use the global semaphore heap to provide a multi-purpose shared + * memory area between Xenomai and Linux - for both kernel and userland + */ +void __init xnheap_init_shared(void) +{ +xnshared = (struct

Re: [Xenomai-core] [PATCH] Add support for sharing kernel/userland data between Xenomai and Linux

2009-12-22 Thread Gilles Chanteperdrix
Wolfgang Mauerer wrote: +enum xnshared_features { +/* XNSHARED_FEAT_A = 1, + XNSHARED_FEAT_B, */ + XNSHARED_MAX_FEATURES, +}; Xenomai style is to use defines bit with the bit shifted directly, so, XNSHARED_FEAT_A would rather be 0x0001, and I am not sure an enum can be 64

Re: [Xenomai-core] Build tests: analogy, blackfin, rtcan and nios2.

2009-12-22 Thread Gilles Chanteperdrix
Wolfgang Grandegger wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: * rtcan: on blackfin we seem to have a conflict with rtcan. The warning is about CAN_ERR_MASK, sure blackfin is a bit strange to define this in core headers which are included everywhere

Re: [Xenomai-core] Build tests: analogy, blackfin, rtcan and nios2.

2009-12-22 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Wolfgang Grandegger wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: * rtcan: on blackfin we seem to have a conflict with rtcan. The warning is about CAN_ERR_MASK, sure blackfin is a bit strange to define

Re: [Xenomai-core] [PATCH] Add support for sharing kernel/userland data between Xenomai and Linux

2009-12-22 Thread Gilles Chanteperdrix
Wolfgang Mauerer wrote: Gilles Chanteperdrix wrote: Wolfgang Mauerer wrote: +enum xnshared_features { +/* XNSHARED_FEAT_A = 1, + XNSHARED_FEAT_B, */ + XNSHARED_MAX_FEATURES, +}; Xenomai style is to use defines bit with the bit shifted directly, so, XNSHARED_FEAT_A would rather

Re: [Xenomai-core] [PATCH] Add support for sharing kernel/userland data between Xenomai and Linux

2009-12-22 Thread Gilles Chanteperdrix
Wolfgang Mauerer wrote: Gilles Chanteperdrix wrote: Wolfgang Mauerer wrote: Gilles Chanteperdrix wrote: Wolfgang Mauerer wrote: +enum xnshared_features { +/* XNSHARED_FEAT_A = 1, + XNSHARED_FEAT_B, */ + XNSHARED_MAX_FEATURES, +}; Xenomai style is to use defines bit

Re: [Xenomai-core] Remove outdated x86 adeos patches

2009-12-21 Thread Gilles Chanteperdrix
Philippe Gerum wrote: On Mon, 2009-12-21 at 09:58 +0100, Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Hi Philippe, as adeos-ipipe-2.4.35.5-i386-1.3-05.patch and adeos-ipipe-2.6.29.5-x86-2.4-02.patch are no longer up to date /wrt to latest i-pipe fixes, I would suggest

Re: [Xenomai-core] Xenomai-git Digest, Vol 9, Issue 40

2009-12-21 Thread Gilles Chanteperdrix
Jan Kiszka wrote: xenomai-git-requ...@gna.org wrote: Date: Mon, 21 Dec 2009 16:04:33 +0100 From: GIT version control g...@xenomai.org Subject: [Xenomai-git] Gilles Chanteperdrix : rtcan: use the new pci_ids header for pci rtcan drivers To: xenomai-...@gna.org Message-ID: e1nmjoh-0003st

[Xenomai-core] build tests pull request.

2009-12-20 Thread Gilles Chanteperdrix
variables Gilles Chanteperdrix (9): nmi: fix build for linux 2.4 analogy: fix build for 2.4 kernel rtcan: make rtcan pci board depend on CONFIG_PCI posix: add missing space to Config.in xconfig 2.4: make xconfig work again with linux 2.4 build: fix prepare

Re: [Xenomai-core] Remove outdated x86 adeos patches

2009-12-20 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Hi Philippe, as adeos-ipipe-2.4.35.5-i386-1.3-05.patch and adeos-ipipe-2.6.29.5-x86-2.4-02.patch are no longer up to date /wrt to latest i-pipe fixes, I would suggest to remove them for 2.5-final. Avoids that people trap into known issues. What latest fixes? Are they

Re: [Xenomai-core] Build tests.

2009-12-16 Thread Gilles Chanteperdrix
Philippe Gerum wrote: On Mon, 2009-12-14 at 14:32 +0100, Gilles Chanteperdrix wrote: Hi, I am working on automated build tests of several configurations of Xenomai head. While running them, I found a few issues, and would need acks, since it is in parts others maintain. Alex: https

Re: [Xenomai-core] Build tests.

2009-12-15 Thread Gilles Chanteperdrix
Philippe Gerum wrote: On Mon, 2009-12-14 at 14:32 +0100, Gilles Chanteperdrix wrote: Hi, I am working on automated build tests of several configurations of Xenomai head. While running them, I found a few issues, and would need acks, since it is in parts others maintain. Alex: https

Re: [Xenomai-core] Realtime gettimeofday()

2009-12-15 Thread Gilles Chanteperdrix
Richard Cochran wrote: On Wed, Dec 02, 2009 at 02:23:39PM +0100, Gilles Chanteperdrix wrote: This issue has been discussed several times, but never a lot. We have a simple solution: starting with 2.4 (if I remember correctly) xenomai provides clock_settime, so you can simply rely

Re: [Xenomai-core] Vague bug report(s) on 2.5-head

2009-12-14 Thread Gilles Chanteperdrix
Peter Soetens wrote: Hi guys, I'm using the master branch, 4f42de74 with Linux 2.6.31.1 and the adeos patch from that tree. My app links with both -lnative and -lposix with the wrappers (using xeno-config). I'm experiencing a segfault within pthread_cancel() when calling

[Xenomai-core] Build tests.

2009-12-14 Thread Gilles Chanteperdrix
Hi, I am working on automated build tests of several configurations of Xenomai head. While running them, I found a few issues, and would need acks, since it is in parts others maintain. Alex: https://mail.gna.org/public/xenomai-git/2009-12/msg00112.html Wolfgang:

Re: [Xenomai-core] Build tests.

2009-12-14 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Hi, I am working on automated build tests of several configurations of Xenomai head. While running them, I found a few issues, and would need acks, since it is in parts others maintain. Alex: https://mail.gna.org/public/xenomai-git/2009-12

Re: [Xenomai-core] [i.MX27] imx serial driver

2009-12-13 Thread Gilles Chanteperdrix
Paolo Bernini wrote: Hello all, first of all I introduce myself: I am Paolo Bernini and I am a student of University of Pisa. While working on my thesis I wrote a real time driver for i.MX special serial devices based on current implementation of 16550A. It is very simple, it has several

Re: [Xenomai-core] Realtime gettimeofday()

2009-12-07 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Philippe Gerum wrote: On Thu, 2009-12-03 at 22:42 +0100, Gilles Chanteperdrix wrote: Wolfgang Mauerer wrote: Gilles Chanteperdrix wrote: Wolfgang Mauerer wrote: Hi, On 03.12.2009, at 14:14, Gilles Chanteperdrix gilles.chanteperd...@xenomai.org wrote: Wolfgang

[Xenomai-core] [pull request] signals handling and posix fixes.

2009-12-04 Thread Gilles Chanteperdrix
The following changes since commit 4f42de74f9b9a1d29093ba695e5ae0ff4a66a132: Philippe Gerum (1): x86: upgrade I-pipe support to 2.6.31.1-x86-2.4-07 are available in the git repository at: git+ssh://git.xenomai.org/xenomai-gch.git for-head Gilles Chanteperdrix (2): signals

Re: [Xenomai-core] [pull request] signals handling and posix fixes.

2009-12-04 Thread Gilles Chanteperdrix
://git.xenomai.org/xenomai-gch.git for-head Gilles Chanteperdrix (3): signals: reduce signals handling memory footprint posix: cosmetic cleanup of pthread_cond_*wait posix: revert commit 58c1b922a96fedaef110c925a0dddb0e86dbcaf4 Peter Soetens (1): posix: Fix __wrap_select() when timeout

[Xenomai-core] [pull request] assorted backports for the 2.4 branch.

2009-12-04 Thread Gilles Chanteperdrix
The following changes since commit 0b6b63885e91bd18c0aa31c935a0a1a5d44ef152: Philippe Gerum (1): blackfin: fix all syscall templates are available in the git repository at: git+ssh://git.xenomai.org/xenomai-gch.git for-2.4 Gilles Chanteperdrix (5): posix: fix pthread_cond_wait

Re: [Xenomai-core] Realtime gettimeofday()

2009-12-03 Thread Gilles Chanteperdrix
Wolfgang Mauerer wrote: The kernel need to synchronize with user land, so the problem is (almost) the same as with obtaining the original data from Linux directly: user land can only use a retry or a smart fall-back mechanism to obtain consistent data. Well, ok, I imagine something like a

Re: [Xenomai-core] Realtime gettimeofday()

2009-12-03 Thread Gilles Chanteperdrix
Wolfgang Mauerer wrote: Hi, Gilles Chanteperdrix wrote: Wolfgang Mauerer wrote: So that means, in essence, that you would accept probabilistic algorithms in realtime context? Ah, today's troll! though it seems that I have to replace Jan this time ;-) As I think I explained, the use

Re: [Xenomai-core] Realtime gettimeofday()

2009-12-03 Thread Gilles Chanteperdrix
Wolfgang Mauerer wrote: Hi, On 03.12.2009, at 14:14, Gilles Chanteperdrix gilles.chanteperd...@xenomai.org wrote: Wolfgang Mauerer wrote: Hi, Gilles Chanteperdrix wrote: Wolfgang Mauerer wrote: So that means, in essence, that you would accept probabilistic algorithms in realtime

Re: [Xenomai-core] Realtime gettimeofday()

2009-12-03 Thread Gilles Chanteperdrix
Wolfgang Mauerer wrote: Gilles Chanteperdrix wrote: Wolfgang Mauerer wrote: Hi, On 03.12.2009, at 14:14, Gilles Chanteperdrix gilles.chanteperd...@xenomai.org wrote: Wolfgang Mauerer wrote: Hi, Gilles Chanteperdrix wrote: Wolfgang Mauerer wrote: So that means, in essence

Re: [Xenomai-core] [pull request] Signals support.

2009-12-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Hi, here come the pull request for user-space signals support. The simple solution; handling signals upon system call return, has been implemented since the other solution (handling signals upon any return to user-space) required to change

Re: [Xenomai-core] Realtime gettimeofday()

2009-12-02 Thread Gilles Chanteperdrix
Wolfgang Mauerer wrote: Hi, we'd like to implement a gettimeofday() mechanism that works in realtime context, both from user- and kernelland. Most importantly, the correctins made to the wall time by the NTP protcol on Linux must be transferred into the Xenomai domain. Yes, the real issue

Re: [Xenomai-core] Realtime gettimeofday()

2009-12-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Wolfgang Mauerer wrote: Hi, we'd like to implement a gettimeofday() mechanism that works in realtime context, both from user- and kernelland. Most importantly, the correctins made to the wall time by the NTP protcol on Linux must be transferred

Re: [Xenomai-core] Realtime gettimeofday()

2009-12-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Why? It delivers us the core mechanism we need for the rest as well - and it does not require fancy I-pipe hooks. Because relying on the vdso/vsyscall only works on x86. Whereas implementing clock slew down/acceleration at nucleus level and simply sharing data between kernel

Re: [Xenomai-core] Realtime gettimeofday()

2009-12-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Why? It delivers us the core mechanism we need for the rest as well - and it does not require fancy I-pipe hooks. Because relying on the vdso/vsyscall only works on x86. Whereas implementing clock slew down/acceleration

Re: [Xenomai-core] Realtime gettimeofday()

2009-12-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Why? It delivers us the core mechanism we need for the rest as well - and it does not require fancy I-pipe hooks. Because relying on the vdso/vsyscall only works on x86. Whereas

Re: [Xenomai-core] [pull request] Signals support.

2009-12-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Hi, here come the pull request for user-space signals support. The simple solution; handling signals upon system call return, has been implemented since the other solution (handling signals upon any return to user-space

Re: [Xenomai-core] [pull request] Signals support.

2009-12-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Hi, here come the pull request for user-space signals support. The simple solution; handling signals upon system call return, has been implemented since the other solution

Re: [Xenomai-core] Realtime gettimeofday()

2009-12-02 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: Why? It delivers us the core mechanism we need for the rest as well - and it does not require fancy I-pipe hooks. Because relying

Re: [Xenomai-core] Realtime gettimeofday()

2009-12-02 Thread Gilles Chanteperdrix
Gilles Chanteperdrix wrote: Jan Kiszka wrote: I surely don't want to duplicate ntp code, just the results it spits out (e.g. into the vdso page). Ok, good point, we can avoid duplicating ntp code, but the vdso page trick only works on two architectures. So, IMO, the nucleus should get

Re: [Xenomai-core] Realtime gettimeofday()

2009-12-02 Thread Gilles Chanteperdrix
Wolfgang Mauerer wrote: Gilles Chanteperdrix wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: I surely don't want to duplicate ntp code, just the results it spits out (e.g. into the vdso page). Ok, good point, we can avoid duplicating ntp code, but the vdso page trick only works on two

Re: [Xenomai-core] Realtime gettimeofday()

2009-12-02 Thread Gilles Chanteperdrix
Gilles Chanteperdrix wrote: Wolfgang Mauerer wrote: Gilles Chanteperdrix wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: I surely don't want to duplicate ntp code, just the results it spits out (e.g. into the vdso page). Ok, good point, we can avoid duplicating ntp code, but the vdso

[Xenomai-core] [pull request] Signals support.

2009-12-01 Thread Gilles Chanteperdrix
the signal support. The following changes since commit 5a29ba38d7563097b73f53615fb3fcb7a7e5a6a5: Philippe Gerum (1): nucleus: initialize heap-stat_link holder are available in the git repository at: git+ssh://git.xenomai.org/xenomai-gch.git for-head Gilles Chanteperdrix (12): bind

Re: [Xenomai-core] [pull request] Signals support.

2009-12-01 Thread Gilles Chanteperdrix
Gilles Chanteperdrix wrote: Hi, here come the pull request for user-space signals support. The simple solution; handling signals upon system call return, has been implemented since the other solution (handling signals upon any return to user-space) required to change the I-pipe patch

Re: [Xenomai-core] select: native tasks with posix skin mqueues

2009-11-30 Thread Gilles Chanteperdrix
Peter Soetens wrote: On Thu, Nov 5, 2009 at 02:46, Gilles Chanteperdrix gilles.chanteperd...@xenomai.org wrote: Peter Soetens wrote: Hi, I'm creating my RT threads using the native API and I'm creating mqueues, wrapped to the pthread_rt library. I can read and write the mqueue (and it goes

Re: [Xenomai-core] [Xenomai-git] Jan Kiszka : nucleus: Include all heaps in statistics

2009-11-16 Thread Gilles Chanteperdrix
GIT version control wrote: +void xnheap_set_label(xnheap_t *heap, const char *label, ...) +{ + va_list args; + spl_t s; + + va_start(args, label); + + xnlock_get_irqsave(nklock, s); + vsnprintf(heap-label, sizeof(heap-label), label, args); +

Re: [Xenomai-core] [Xenomai-git] Jan Kiszka : nucleus: Include all heaps in statistics

2009-11-16 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: GIT version control wrote: +void xnheap_set_label(xnheap_t *heap, const char *label, ...) +{ + va_list args; + spl_t s; + + va_start(args, label); + + xnlock_get_irqsave(nklock, s); + vsnprintf(heap-label, sizeof(heap-label), label

[Xenomai-core] Replace bind.h with a convenience library.

2009-11-15 Thread Gilles Chanteperdrix
Hi, in preparation for adding more code common to all skins (signals handling), I split bind.h into three files, which are compiled as a convenience library linked to every skin library. I have pushed this first modification for review, you can see the changes here:

Re: [Xenomai-core] [pull request] heap reference and trivial build fixes

2009-11-10 Thread Gilles Chanteperdrix
Jan Kiszka wrote: The following changes since commit 6d7d6bc436ef3d1fb51fa8de06d4ecf004e3b6a5: Gilles Chanteperdrix (1): nucleus: defer selector block deletion to an APC. are available in the git repository at: git://git.xenomai.org/xenomai-jki.git for-upstream Jan Kiszka

Re: [Xenomai-core] [pull request] heap reference and trivial build fixes

2009-11-10 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jan Kiszka wrote: The following changes since commit 6d7d6bc436ef3d1fb51fa8de06d4ecf004e3b6a5: Gilles Chanteperdrix (1): nucleus: defer selector block deletion to an APC. are available in the git repository at: git

Re: [Xenomai-core] switches between hard real time and soft real time

2009-11-10 Thread Gilles Chanteperdrix
Anisha Kaul wrote: hi, Hi, Please do not reply to an unrelated mail when asking a new question. Mail clients which do proper threading, such as the mailing list archives will show it in the same thread as the mail you reply to. Is there any command or technique to know when your kernel

Re: [Xenomai-core] Function for writing to serial port through Xenomai API

2009-11-09 Thread Gilles Chanteperdrix
Anisha Kaul wrote: Dear all, Hi, I know that outb() being a linux system call can be used to write to the serial/parallel ports. Currently I am working on a real time operating system with Xenomai and a micro kernel. If I use outb() for port access, control will shift to the soft-real

Re: [Xenomai-core] Context-sharing semaphores

2009-11-09 Thread Gilles Chanteperdrix
Remco den Breeje wrote: Hi all, I'm having trouble trying to share a semaphore that is created in user-space context with a rtdm-driver that runs in kernel-space. I was hoping you could explain me what I'm doing wrong. I'm using a posix-skin based user-space Xenomai application that runs

Re: [Xenomai-core] Context-sharing semaphores

2009-11-09 Thread Gilles Chanteperdrix
Remco den Breeje wrote: Attached you find an example. No. There is nothing attached. -- Gilles ___ Xenomai-core mailing list Xenomai-core@gna.org https://mail.gna.org/listinfo/xenomai-core

Re: [Xenomai-core] Context-sharing semaphores

2009-11-09 Thread Gilles Chanteperdrix
Remco den Breeje wrote: Classic. Ok. I see nothing wrong, I will have a look at this tonight. -- Gilles ___ Xenomai-core mailing list Xenomai-core@gna.org https://mail.gna.org/listinfo/xenomai-core

Re: [Xenomai-core] Context-sharing semaphores

2009-11-09 Thread Gilles Chanteperdrix
Remco den Breeje wrote: Classic. Ah. Sorry. Found the bug in the mean time. It is in the Makefile. You do not pass the compilation flags for compilation for Xenomai posix skin. So, your user space application uses plain linux semaphores. See: doc/txt/pse51-skin.txt in xenomai sources or:

Re: [Xenomai-core] Context-sharing semaphores

2009-11-09 Thread Gilles Chanteperdrix
Remco den Breeje wrote: On Mon, Nov 9, 2009 at 3:49 PM, Gilles Chanteperdrix gilles.chanteperd...@xenomai.org wrote: Ah. Sorry. Found the bug in the mean time. It is in the Makefile. You do not pass the compilation flags for compilation for Xenomai posix skin. So, your user space application

Re: [Xenomai-core] [PATCH] hal: Ensure atomicity of rthal_local_irq_disabled

2009-11-09 Thread Gilles Chanteperdrix
Jan Kiszka wrote: [Patch is now also available in 'for-upstream'] ipipe_test_pipeline_from is not atomic /wrt reading the current cpu number (or an offset for the per-cpu area) and actually reading the virtualized interrupt state. Work around this by disabling hard IRQs while accessing this

Re: [Xenomai-core] Fwd: How to fix static priority to processes known in advance

2009-11-04 Thread Gilles Chanteperdrix
tarek ben ali wrote: -- Forwarded message -- From: *tarek ben ali* tarekben...@gmail.com mailto:tarekben...@gmail.com Date: 2009/11/3 Subject: How to fix static priority to processes known in advance To: xenomai-core@gna.org mailto:xenomai-core@gna.org Hi All, I am

Re: [Xenomai-core] BUG: scheduling while atomic

2009-11-04 Thread Gilles Chanteperdrix
cagnul...@tin.it wrote: I've tried with your patch and asking to do latency test with 1000ns but It is 1000us, not 1000ns. No platform running xenomai is able to sustain a task with a 1000ns period. the result is still the same :( Do you have any other ideas? I'm very lost in space :( The

Re: [Xenomai-core] Error in pthread_make_periodic_np

2009-11-04 Thread Gilles Chanteperdrix
Rubén González del Pozo wrote: Hello all, I am working with Xenomai 2.4.9.1 on Kernel 2.6.30. I try to test the pperiodic example and I always get the error code 3 in pthread_make_periodic_np function: ESRCH - invalid thread. Why I get that code? Thanks a lot, It is hard to say why it

Re: [Xenomai-core] a problem about hpet device

2009-11-04 Thread Gilles Chanteperdrix
Guanghui, Cheng wrote: Hello: I need to use hpet device as my clock event source in my os and i have mapped this device to local place. But when i read the configuration or value all the bit is 1. Is it something wrong? Excuse me, but what is the relation with Xenomai? --

Re: [Xenomai-core] select: native tasks with posix skin mqueues

2009-11-04 Thread Gilles Chanteperdrix
Peter Soetens wrote: Hi, I'm creating my RT threads using the native API and I'm creating mqueues, wrapped to the pthread_rt library. I can read and write the mqueue (and it goes through Xenomai), but when I select() on a receiving mqd_t, the select() calls returns that there is data

Re: [Xenomai-core] BUG: scheduling while atomic

2009-11-03 Thread Gilles Chanteperdrix
cagnul...@tin.it wrote: Hi, i've got a system running kernel 2.6.22 on a ARM9 / Freescale i.MX27 The system running well, but every time i run latency it hangs. It occurs with rtprint too. Could you help me? See: https://mail.gna.org/public/xenomai-core/2009-08/msg00021.html And you can not

Re: [Xenomai-core] lots of mode switches in xenomai-head tree?

2009-11-02 Thread Gilles Chanteperdrix
Stefan Schaal wrote: Hi Jan, you pointer to the 4a2cb7b817 help! We had -lrtdk before - lpthread -lpthread_rt in our compile statement. Just in 2.4.8, this seems to make no difference. Do you use the wrap-link.sh script, or is this order change unrelated? --

Re: [Xenomai-core] [PULL REQUEST] Analogy: many bugfixes

2009-10-27 Thread Gilles Chanteperdrix
Alexis Berlemont wrote: Hi Philippe, Sorry, I forgot the prefix rule for the short log for many commits. I will take more care starting from now. You can edit commit messages with git rebase --interactive Of course, if you want to push the changes on the server, you will have to use git

Re: [Xenomai-core] [PATCH 1/2] nucleus: Add semaphore heap statistics

2009-10-19 Thread Gilles Chanteperdrix
Jan Kiszka wrote: This extends /proc/xenomai/heap with statistics about the global as well as all per-process semaphore heaps. This is helpful to track down the reason for ENOMEM (system or sem heap full?) and to find out that we are leaking memory from the global heap on automatic native

Re: [Xenomai-core] [PATCH v2 2/3] nucleus: Include all heaps in statistics

2009-10-19 Thread Gilles Chanteperdrix
Jan Kiszka wrote: @@ -234,12 +239,65 @@ int xnheap_init(xnheap_t *heap, appendq(heap-extents, extent-link); + vsnprintf(heap-name, sizeof(heap-name), name, args); + + spin_lock(heapq_lock); + appendq(heapq, heap-stat_link); + spin_unlock(heapq_lock); You can not

Re: [Xenomai-core] [Xenomai-help] select: native tasks with posix skin mqueues

2009-10-02 Thread Gilles Chanteperdrix
Peter Soetens wrote: On Thu, Oct 1, 2009 at 17:34, Gilles Chanteperdrix gilles.chanteperd...@xenomai.org wrote: Peter Soetens wrote: On Thu, Oct 1, 2009 at 16:47, Gilles Chanteperdrix gilles.chanteperd...@xenomai.org wrote: Peter Soetens wrote: Hi, I'm creating my RT threads using

[Xenomai-core] FCSE patch.

2009-10-02 Thread Gilles Chanteperdrix
Hi, for those interested into the FCSE patch, as told in the paper presented to the XUM (but that is a detail which I forgot to mention in the presentation), the FCSE patch was split into several parts (10 actually) and submitted to the linux arm kernel mailing list. You may find the post here:

Re: [Xenomai-core] FCSE patch.

2009-10-02 Thread Gilles Chanteperdrix
Henri Roosen wrote: Hi Gilles, We are using the FCSE on our at91sam9263 boards because we need the lowest latency. Our measurements show almost a factor of 2 in latency reduction, which is very similar to what you presented at the XUM. Good to know. Are there any known issues with FCSE

Re: [Xenomai-core] [Xenomai-help] select: native tasks with posix skin mqueues

2009-10-02 Thread Gilles Chanteperdrix
Gilles Chanteperdrix wrote: Peter Soetens wrote: On Thu, Oct 1, 2009 at 17:34, Gilles Chanteperdrix gilles.chanteperd...@xenomai.org wrote: Peter Soetens wrote: On Thu, Oct 1, 2009 at 16:47, Gilles Chanteperdrix gilles.chanteperd...@xenomai.org wrote: Peter Soetens wrote: Hi, I'm

<    1   2   3   4   5   6   7   8   9   10   >