All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] [PULL] rt-puts fix, mprotect testsuite
@ 2012-04-04 12:56 Jan Kiszka
  2012-04-04 13:02 ` Gilles Chanteperdrix
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jan Kiszka @ 2012-04-04 12:56 UTC (permalink / raw)
  To: xenomai-core

The following changes since commit 0ef2410a2c9cf7102dead861241bd2d9957e4433:

  Mask signals in rt_print:printer_loop() (2012-04-02 00:16:41 +0200)

are available in the git repository at:
  git://git.xenomai.org/xenomai-jki.git for-upstream

Jan Kiszka (3):
      Append missing newline to rt_[f]puts output
      testsuite: Add rt-print buffer flushes to native error paths
      Add regression test for mprotect on pinned memory

 src/skins/common/rt_print.c                |    7 ++-
 src/testsuite/regression/native/check.h    |    2 +
 src/testsuite/regression/native/leaks.c    |    1 +
 src/testsuite/regression/posix/Makefile.am |    2 +-
 src/testsuite/regression/posix/Makefile.in |   15 ++++-
 src/testsuite/regression/posix/check.h     |   10 +++
 src/testsuite/regression/posix/mprotect.c  |   97 ++++++++++++++++++++++++++++
 7 files changed, 129 insertions(+), 5 deletions(-)
 create mode 100644 src/testsuite/regression/posix/mprotect.c


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-core] [PULL] rt-puts fix, mprotect testsuite
  2012-04-04 12:56 [Xenomai-core] [PULL] rt-puts fix, mprotect testsuite Jan Kiszka
@ 2012-04-04 13:02 ` Gilles Chanteperdrix
  2012-04-04 13:12   ` Jan Kiszka
  2012-04-15 16:48 ` Gilles Chanteperdrix
  2012-04-15 17:09 ` Gilles Chanteperdrix
  2 siblings, 1 reply; 7+ messages in thread
From: Gilles Chanteperdrix @ 2012-04-04 13:02 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

On 04/04/2012 02:56 PM, Jan Kiszka wrote:
> The following changes since commit 0ef2410a2c9cf7102dead861241bd2d9957e4433:
> 
>   Mask signals in rt_print:printer_loop() (2012-04-02 00:16:41 +0200)
> 
> are available in the git repository at:
>   git://git.xenomai.org/xenomai-jki.git for-upstream
> 
> Jan Kiszka (3):
>       Append missing newline to rt_[f]puts output
>       testsuite: Add rt-print buffer flushes to native error paths

As I said, I do not agree with calling rt_print_flush_buffers outside of
xenomai libs. If you want to avoid the issue you should use rt_printf only.

-- 
					    Gilles.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-core] [PULL] rt-puts fix, mprotect testsuite
  2012-04-04 13:02 ` Gilles Chanteperdrix
@ 2012-04-04 13:12   ` Jan Kiszka
  2012-04-04 13:23     ` Gilles Chanteperdrix
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Kiszka @ 2012-04-04 13:12 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai-core

On 2012-04-04 15:02, Gilles Chanteperdrix wrote:
> On 04/04/2012 02:56 PM, Jan Kiszka wrote:
>> The following changes since commit 0ef2410a2c9cf7102dead861241bd2d9957e4433:
>>
>>   Mask signals in rt_print:printer_loop() (2012-04-02 00:16:41 +0200)
>>
>> are available in the git repository at:
>>   git://git.xenomai.org/xenomai-jki.git for-upstream
>>
>> Jan Kiszka (3):
>>       Append missing newline to rt_[f]puts output
>>       testsuite: Add rt-print buffer flushes to native error paths
> 
> As I said, I do not agree with calling rt_print_flush_buffers outside of
> xenomai libs.

rt_print_flush_buffers is a Xenomai API function that we export for
quite a while now. The rt_* functions are about explicit control when
what is invoked, both in the native skin and in what used to be rtdk.
Also, you can't avoid this function when you interact with libraries
that are unwrapped.

That said, I can fix that minor issue in leaks differently if you insist.

Jan

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-core] [PULL] rt-puts fix, mprotect testsuite
  2012-04-04 13:12   ` Jan Kiszka
@ 2012-04-04 13:23     ` Gilles Chanteperdrix
  2012-04-04 13:38       ` Jan Kiszka
  0 siblings, 1 reply; 7+ messages in thread
From: Gilles Chanteperdrix @ 2012-04-04 13:23 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

On 04/04/2012 03:12 PM, Jan Kiszka wrote:
> On 2012-04-04 15:02, Gilles Chanteperdrix wrote:
>> On 04/04/2012 02:56 PM, Jan Kiszka wrote:
>>> The following changes since commit 0ef2410a2c9cf7102dead861241bd2d9957e4433:
>>>
>>>   Mask signals in rt_print:printer_loop() (2012-04-02 00:16:41 +0200)
>>>
>>> are available in the git repository at:
>>>   git://git.xenomai.org/xenomai-jki.git for-upstream
>>>
>>> Jan Kiszka (3):
>>>       Append missing newline to rt_[f]puts output
>>>       testsuite: Add rt-print buffer flushes to native error paths
>>
>> As I said, I do not agree with calling rt_print_flush_buffers outside of
>> xenomai libs.
> 
> rt_print_flush_buffers is a Xenomai API function that we export for
> quite a while now. The rt_* functions are about explicit control when
> what is invoked, both in the native skin and in what used to be rtdk.
> Also, you can't avoid this function when you interact with libraries
> that are unwrapped.
> 
> That said, I can fix that minor issue in leaks differently if you insist.

I added rt_print_flush_buffers for xenomai 2.6.0, in order to implement
systematic wrapping of printf by the posix skin, my intent was not to
really export it. From my point of view, having to call this flush
function all over the place reveals a problem in the application. If you
use always printf or always rt_printf, you do not need to call this
function.

-- 
					    Gilles.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-core] [PULL] rt-puts fix, mprotect testsuite
  2012-04-04 13:23     ` Gilles Chanteperdrix
@ 2012-04-04 13:38       ` Jan Kiszka
  0 siblings, 0 replies; 7+ messages in thread
From: Jan Kiszka @ 2012-04-04 13:38 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai-core

On 2012-04-04 15:23, Gilles Chanteperdrix wrote:
> On 04/04/2012 03:12 PM, Jan Kiszka wrote:
>> On 2012-04-04 15:02, Gilles Chanteperdrix wrote:
>>> On 04/04/2012 02:56 PM, Jan Kiszka wrote:
>>>> The following changes since commit 0ef2410a2c9cf7102dead861241bd2d9957e4433:
>>>>
>>>>   Mask signals in rt_print:printer_loop() (2012-04-02 00:16:41 +0200)
>>>>
>>>> are available in the git repository at:
>>>>   git://git.xenomai.org/xenomai-jki.git for-upstream
>>>>
>>>> Jan Kiszka (3):
>>>>       Append missing newline to rt_[f]puts output
>>>>       testsuite: Add rt-print buffer flushes to native error paths
>>>
>>> As I said, I do not agree with calling rt_print_flush_buffers outside of
>>> xenomai libs.
>>
>> rt_print_flush_buffers is a Xenomai API function that we export for
>> quite a while now. The rt_* functions are about explicit control when
>> what is invoked, both in the native skin and in what used to be rtdk.
>> Also, you can't avoid this function when you interact with libraries
>> that are unwrapped.
>>
>> That said, I can fix that minor issue in leaks differently if you insist.
> 
> I added rt_print_flush_buffers for xenomai 2.6.0, in order to implement
> systematic wrapping of printf by the posix skin, my intent was not to
> really export it. From my point of view, having to call this flush
> function all over the place reveals a problem in the application. If you
> use always printf or always rt_printf, you do not need to call this
> function.

Still, there are those use cases where you cannot replace the print
functions. So it remains useful.

Jan

-- 
Siemens AG, Corporate Technology, CT T DE IT 1
Corporate Competence Center Embedded Linux


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-core] [PULL] rt-puts fix, mprotect testsuite
  2012-04-04 12:56 [Xenomai-core] [PULL] rt-puts fix, mprotect testsuite Jan Kiszka
  2012-04-04 13:02 ` Gilles Chanteperdrix
@ 2012-04-15 16:48 ` Gilles Chanteperdrix
  2012-04-15 17:09 ` Gilles Chanteperdrix
  2 siblings, 0 replies; 7+ messages in thread
From: Gilles Chanteperdrix @ 2012-04-15 16:48 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

On 04/04/2012 02:56 PM, Jan Kiszka wrote:
> The following changes since commit 0ef2410a2c9cf7102dead861241bd2d9957e4433:
> 
>   Mask signals in rt_print:printer_loop() (2012-04-02 00:16:41 +0200)
> 
> are available in the git repository at:
>   git://git.xenomai.org/xenomai-jki.git for-upstream
> 
> Jan Kiszka (3):
>       Append missing newline to rt_[f]puts output
>       testsuite: Add rt-print buffer flushes to native error paths
>       Add regression test for mprotect on pinned memory

Merged. Thanks.

-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-core] [PULL] rt-puts fix, mprotect testsuite
  2012-04-04 12:56 [Xenomai-core] [PULL] rt-puts fix, mprotect testsuite Jan Kiszka
  2012-04-04 13:02 ` Gilles Chanteperdrix
  2012-04-15 16:48 ` Gilles Chanteperdrix
@ 2012-04-15 17:09 ` Gilles Chanteperdrix
  2 siblings, 0 replies; 7+ messages in thread
From: Gilles Chanteperdrix @ 2012-04-15 17:09 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai-core

On 04/04/2012 02:56 PM, Jan Kiszka wrote:
> The following changes since commit 0ef2410a2c9cf7102dead861241bd2d9957e4433:
> 
>   Mask signals in rt_print:printer_loop() (2012-04-02 00:16:41 +0200)
> 
> are available in the git repository at:
>   git://git.xenomai.org/xenomai-jki.git for-upstream
> 
> Jan Kiszka (3):
>       Append missing newline to rt_[f]puts output

Actually, only puts requires an additional newline, not fputs.

-- 
                                                                Gilles.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-04-15 17:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-04 12:56 [Xenomai-core] [PULL] rt-puts fix, mprotect testsuite Jan Kiszka
2012-04-04 13:02 ` Gilles Chanteperdrix
2012-04-04 13:12   ` Jan Kiszka
2012-04-04 13:23     ` Gilles Chanteperdrix
2012-04-04 13:38       ` Jan Kiszka
2012-04-15 16:48 ` Gilles Chanteperdrix
2012-04-15 17:09 ` Gilles Chanteperdrix

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.