From: Philippe Gerum <rpm@xenomai.org>
To: Kent Borg <kentborg@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] syslog safe?
Date: Tue, 25 Apr 2006 22:58:34 +0200 [thread overview]
Message-ID: <444E8D7A.30900@domain.hid> (raw)
In-Reply-To: <20060425143711.E5934@domain.hid>
Kent Borg wrote:
> On Tue, Apr 25, 2006 at 07:52:48PM +0200, Philippe Gerum wrote:
>
>>No problem using it, but it will trigger an automatic switch to
>>secondary mode in order to issue the right Linux syscalls. The thread
>>will switch back to primary automatically again as soon as a (usually
>>blocking) Xenomai syscall is issued.
>
>
> And, looking at strace output, it appears that is a syslog() is too
> low a priority to be logged it doesn't make a system call and so will
> not drop us out of realtime.
>
>
Do not trust strace there, it heavily relies on other glibc services,
like buffered I/O, which might issue syscalls under various conditions.
For instance, internal mutex locking might cause a syscall to deal with
any contended request, or malloc called indirectly might ask for
extending the caller's data segment, and so on. Additionally, some
syslog flags, like LOG_CONS, do cause file I/O.
--
Philippe.
prev parent reply other threads:[~2006-04-25 20:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-25 17:40 [Xenomai-help] syslog safe? Kent Borg
2006-04-25 17:52 ` Philippe Gerum
2006-04-25 18:37 ` Kent Borg
2006-04-25 20:58 ` Philippe Gerum [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=444E8D7A.30900@domain.hid \
--to=rpm@xenomai.org \
--cc=kentborg@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.