From: Joerg Albert <jal2@domain.hid>
To: xenomai@xenomai.org
Subject: [Xenomai-help] Xenomai 2.5.1: trace_mark usable on 2.6.30.1 without LTT patch?
Date: Fri, 23 Apr 2010 10:17:55 +0000 (UTC) [thread overview]
Message-ID: <loom.20100423T115628-343@domain.hid> (raw)
Hi,
I run Xenomai 2.5.1 on top of ipipe-2.6.30-powerpc-2.7-01 from
http://git.denx.de/ipipe-2.6.git with Adeos updated from 2.7-01 to 2.7-06.
Platform is a MPC8533.
In order to track down a problem I'd like to use trace_mark() (with my own probe
function), but I'm a bit confused by the code in
include/asm-generic/xenomai/wrappers.h:
#ifdef CONFIG_LTT
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
#define trace_mark(channel, ev, fmt, args...) \
MARK(channel##_##ev, fmt , ##args)
#else /* >= 2.6.24 */
#include <linux/marker.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,27)
#undef trace_mark
#define trace_mark(channel, ev, fmt, args...) \
__trace_mark(0, channel##_##ev, NULL, fmt, ## args)
#endif /* < 2.6.27 */
#endif /* >= 2.6.24 */
#else /* !CONFIG_LTT */
#undef trace_mark
#define trace_mark(channel, ev, fmt, args...) do { } while (0)
#endif /* !CONFIG_LTT */
My kernel doesn't provide CONFIG_LTT and its trace_mark() implementation in
include/linux/marker.h is:
#define trace_mark(name, format, args...)
Does this imply that I have trace_mark inside the Xenomai code only after
applying some additional LTT patch to the kernel?
next reply other threads:[~2010-04-23 10:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-23 10:17 Joerg Albert [this message]
2010-04-23 12:15 ` [Xenomai-help] Xenomai 2.5.1: trace_mark usable on 2.6.30.1 without LTT patch? Jan Kiszka
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=loom.20100423T115628-343@domain.hid \
--to=jal2@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.