From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Andreas Glatz <andi.glatz@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Debug/trace tools for xenomai applications.
Date: Sun, 14 Nov 2010 16:36:17 +0100 [thread overview]
Message-ID: <4CE001F1.5090207@domain.hid> (raw)
In-Reply-To: <AANLkTingEZJdsJDb6nuOc3TmAfpyHSE6FXT5WE=L_GV-@domain.hid>
Andreas Glatz wrote:
>> Now my question is: how do I investigate an issue like this? In other words,
>> which are the best tools since this code involves both user and kernel space
>> debugging.
>> Are there some trace tools available that are able to generate a kind of
>> sequence / trace of what is happing over time.
>>
>> I also have other issues that are not consistently reproducible. For this
>> kind of problems trace tools would also be useful.
>>
>
> I have debugged such issues with LTTng ( http://lttng.org/ ). There
> are trace points in the Xenomai nucleus ( grep -rw xn_nucleus
> /path/to/xenomai/* ) and skins (at least the native skin). You could
> for example set up 'one-shot' tracing where events are continuously
> added to the Lttng event ring buffer until a condition is satisfied
> (i.e. your error condition) and analyse it either with Lttv or by
> looking at the textual output.
>
> It takes some time to set things up. You need (1) to add the LTTng
> patches to your kernel and recompile the whole thing. In general,
> there are just LTTng patches for vanilla kernels available. So you
> have to expect some manual work there. (2) You have to compile the
> user-space daemon for your target: You need it to control the tracing.
> (3) Lttv for your host (if you like a little bit of comfort when
> analysing your traces).
Other means of debugging are gdb in user-space, and the I-pipe tracer in
kernel-space:
http://www.xenomai.org/index.php/I-pipe:Tracer
--
Gilles.
next prev parent reply other threads:[~2010-11-14 15:36 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-14 11:27 [Xenomai-help] Debug/trace tools for xenomai applications Andreas Glatz
2010-11-14 15:36 ` Gilles Chanteperdrix [this message]
[not found] <mailman.45.1289905237.25153.xenomai@xenomai.org>
2010-11-16 11:46 ` Andreas Glatz
2010-11-17 8:43 ` Philippe Gerum
2010-11-17 9:42 ` Jan Kiszka
-- strict thread matches above, loose matches on Subject: below --
2010-11-14 0:24 ronny meeus
2010-11-15 9:30 ` Philippe Gerum
2010-11-15 13:10 ` Gilles Chanteperdrix
2010-11-15 15:07 ` Philippe Gerum
2010-11-15 20:26 ` ronny meeus
2010-11-15 20:56 ` Philippe Gerum
2010-11-17 13:49 ` ronny meeus
2010-11-17 14:01 ` Philippe Gerum
2010-11-17 15:00 ` ronny meeus
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=4CE001F1.5090207@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=andi.glatz@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.