From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] [PATCH] separate queue debugging switch
Date: Tue, 14 Feb 2006 19:20:06 +0100 [thread overview]
Message-ID: <43F21F56.4080602@domain.hid> (raw)
In-Reply-To: <43F219C9.2030903@domain.hid>
Jan Kiszka wrote:
> Philippe Gerum wrote:
>
>>Jan Kiszka wrote:
>>
>>>Hi,
>>>
>>>while XENO_OPT_DEBUG is generally a useful switch for tracing potential
>>>issues in the core and the skins, it also introduces high latencies via
>>>the queue debugging feature (due to checks iterating over whole queues).
>>>
>>>This patch introduces separate control over queue debugging so that you
>>>can have debug checks without too dramatic slowdowns.
>>>
>>
>>Maybe it's time to introduce debug levels, so that we could reuse them
>>in order to
>>add more (selectable) debug instrumentation; queue debugging could then
>>be given a
>>certain level (likely something like CONFIG_XENO_DEBUG_LEVEL=8712 for
>>this one...), instead of going for a specific conditional each time we
>>introduce new checks?
>>
>
>
> Hmm, this means someone have to define what should be printed at which
> level - tend to be hard decisions... Often it is at least as much useful
> to have debug groups so that specific parts can be excluded from
> debugging. I'm pro such groups (one would be those queues e.g.) but
> contra too many levels (2, at most 3).
>
Ack, selection by increasingly verbose/high-overhead groups is what I have in mind.
> At this chance, I would also suggest to introduce some ASSERT macro (per
> group, per level). That could be used to instrument the core with
> runtime checks. But it could also be quickly removed at compilation
> time, reducing the code size (e.g. checks at the nucleus layer against
> buggy skins or at RTDM layer against rough drivers).
>
I'm not opposed to that, if we keep the noise / signal ratio of those assertions
at the reasonable low-level throughout the code, and don't use this to enforce
silly parametrical checks.
> Jan
>
--
Philippe.
next prev parent reply other threads:[~2006-02-14 18:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-14 11:35 [Xenomai-core] [PATCH] separate queue debugging switch Jan Kiszka
2006-02-14 12:39 ` Jan Kiszka
2006-02-14 16:20 ` Gilles Chanteperdrix
2006-02-14 17:40 ` Philippe Gerum
2006-02-14 17:56 ` Jan Kiszka
2006-02-14 18:20 ` Philippe Gerum [this message]
2006-02-15 9:56 ` Jan Kiszka
2006-02-15 12:11 ` Philippe Gerum
2006-02-16 0:41 ` Jan Kiszka
2006-02-16 14:27 ` Philippe Gerum
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=43F21F56.4080602@domain.hid \
--to=rpm@xenomai.org \
--cc=jan.kiszka@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.