Re: [Xenomai-core] RFC: use a pool of pre-allocated buffers in rt_printf

2011-06-23 Thread Jan Kiszka
On 2011-06-22 23:55, Gilles Chanteperdrix wrote: Hi, I would like to better integrate rtdk and the posix skin by forcibly wrapping the calls to malloc/free and also wrap printf to call rt_printf. However, currently, rt_printf can not really be used as a drop-in replacement of

Re: [Xenomai-core] RFC: use a pool of pre-allocated buffers in rt_printf

2011-06-23 Thread Gilles Chanteperdrix
On 06/23/2011 09:38 AM, Jan Kiszka wrote: +#ifdef CONFIG_XENO_FASTSYNCH +if (xeno_get_current() != XN_NO_HANDLE +!(xeno_get_current_mode() XNRELAX) buf_pool_get()) { +struct print_buffer *old; + +old = buf_pool_get(); +while (old != buffer)

Re: [Xenomai-core] RFC: use a pool of pre-allocated buffers in rt_printf

2011-06-23 Thread Jan Kiszka
On 2011-06-23 11:05, Gilles Chanteperdrix wrote: On 06/23/2011 09:38 AM, Jan Kiszka wrote: +#ifdef CONFIG_XENO_FASTSYNCH + if (xeno_get_current() != XN_NO_HANDLE + !(xeno_get_current_mode() XNRELAX) buf_pool_get()) { + struct print_buffer *old; + + old =

Re: [Xenomai-core] [PULL] native: Fix msendq fastlock leakage

2011-06-23 Thread Jan Kiszka
On 2011-06-20 19:07, Jan Kiszka wrote: On 2011-06-19 15:00, Gilles Chanteperdrix wrote: On 06/19/2011 01:17 PM, Gilles Chanteperdrix wrote: On 06/19/2011 12:14 PM, Gilles Chanteperdrix wrote: I am working on this ppd cleanup issue again, I am asking for help to find a fix in -head for all

Re: [Xenomai-core] [PULL] native: Fix msendq fastlock leakage

2011-06-23 Thread Gilles Chanteperdrix
On 06/23/2011 11:37 AM, Jan Kiszka wrote: On 2011-06-20 19:07, Jan Kiszka wrote: On 2011-06-19 15:00, Gilles Chanteperdrix wrote: On 06/19/2011 01:17 PM, Gilles Chanteperdrix wrote: On 06/19/2011 12:14 PM, Gilles Chanteperdrix wrote: I am working on this ppd cleanup issue again, I am asking

Re: [Xenomai-core] RFC: use a pool of pre-allocated buffers in rt_printf

2011-06-23 Thread Gilles Chanteperdrix
On 06/23/2011 11:09 AM, Jan Kiszka wrote: On 2011-06-23 11:05, Gilles Chanteperdrix wrote: On 06/23/2011 09:38 AM, Jan Kiszka wrote: +#ifdef CONFIG_XENO_FASTSYNCH + if (xeno_get_current() != XN_NO_HANDLE + !(xeno_get_current_mode() XNRELAX) buf_pool_get()) { + struct

Re: [Xenomai-core] RFC: use a pool of pre-allocated buffers in rt_printf

2011-06-23 Thread Gilles Chanteperdrix
On 06/23/2011 01:36 PM, Jan Kiszka wrote: On 2011-06-23 13:29, Gilles Chanteperdrix wrote: On 06/23/2011 11:09 AM, Jan Kiszka wrote: On 2011-06-23 11:05, Gilles Chanteperdrix wrote: On 06/23/2011 09:38 AM, Jan Kiszka wrote: +#ifdef CONFIG_XENO_FASTSYNCH +if (xeno_get_current() !=

Re: [Xenomai-core] [PULL] native: Fix msendq fastlock leakage

2011-06-23 Thread Philippe Gerum
On Thu, 2011-06-23 at 20:13 +0200, Philippe Gerum wrote: On Thu, 2011-06-23 at 19:32 +0200, Gilles Chanteperdrix wrote: On 06/23/2011 01:15 PM, Jan Kiszka wrote: On 2011-06-23 13:11, Gilles Chanteperdrix wrote: On 06/23/2011 11:37 AM, Jan Kiszka wrote: On 2011-06-20 19:07, Jan Kiszka

Re: [Xenomai-core] [PULL] native: Fix msendq fastlock leakage

2011-06-23 Thread Philippe Gerum
On Thu, 2011-06-23 at 19:32 +0200, Gilles Chanteperdrix wrote: On 06/23/2011 01:15 PM, Jan Kiszka wrote: On 2011-06-23 13:11, Gilles Chanteperdrix wrote: On 06/23/2011 11:37 AM, Jan Kiszka wrote: On 2011-06-20 19:07, Jan Kiszka wrote: On 2011-06-19 15:00, Gilles Chanteperdrix wrote: On

Re: [Xenomai-core] [PULL] native: Fix msendq fastlock leakage

2011-06-23 Thread Gilles Chanteperdrix
On 06/23/2011 08:24 PM, Philippe Gerum wrote: On Thu, 2011-06-23 at 20:13 +0200, Philippe Gerum wrote: On Thu, 2011-06-23 at 19:32 +0200, Gilles Chanteperdrix wrote: On 06/23/2011 01:15 PM, Jan Kiszka wrote: On 2011-06-23 13:11, Gilles Chanteperdrix wrote: On 06/23/2011 11:37 AM, Jan Kiszka

Re: [Xenomai-core] [PULL] native: Fix msendq fastlock leakage

2011-06-23 Thread Gilles Chanteperdrix
On 06/23/2011 11:37 AM, Jan Kiszka wrote: On 2011-06-20 19:07, Jan Kiszka wrote: On 2011-06-19 15:00, Gilles Chanteperdrix wrote: On 06/19/2011 01:17 PM, Gilles Chanteperdrix wrote: On 06/19/2011 12:14 PM, Gilles Chanteperdrix wrote: I am working on this ppd cleanup issue again, I am asking