All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Jan Kiszka <jan.kiszka@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: Re: [Xenomai-core] CONFIG_XENO_OPT_DEBUG_LEVEL
Date: Mon, 27 Mar 2006 16:34:24 +0200	[thread overview]
Message-ID: <4427F7F0.7040309@domain.hid> (raw)
In-Reply-To: <44267889.8040301@domain.hid>

Jan Kiszka wrote:
> 
> 
> Here is an attempt to base the activation of XENO_ASSERT on a subsystem
> debug switch at compile time, applied on RTDM.
> 
> The procedure of adding a new system for XENO_ASSERT usage would be to
> define the required kbuild switch according to the naming scheme
> CONFIG_XENO_OPT_DEBUG_subsystem, include nucleus/assert.h, and add
> "#define CONFIG_XENO_OPT_DEBUG_subsystem 0" for the unset case.
> XENO_ASSERT is new called with (subsystem, condition, action). If we
> invent further debugging macros, they could be controlled in a similar way.
> 
> What do you think?
> 

I like the flexibity this approach brings (even if I think that the 
context checking in drvlib.c should be done unconditionally, regardless 
of the debug mode -- but that's probably a matter of personal taste). 
I've merged this patch, so that we can further use this debug 
infrastructure in other sub-systems. Thanks.

-- 

Philippe.


      reply	other threads:[~2006-03-27 14:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-20 18:58 [Xenomai-core] CONFIG_XENO_OPT_DEBUG_LEVEL Jan Kiszka
2006-03-20 20:54 ` Philippe Gerum
2006-03-20 23:34   ` Jan Kiszka
2006-03-21  8:01     ` Philippe Gerum
2006-03-26 11:18       ` Jan Kiszka
2006-03-27 14:34         ` 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=4427F7F0.7040309@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.