* [Xenomai-core] Xenomai integration to LTTng and LTTV
@ 2006-06-13 8:50 Jean-Olivier Villemure
2006-06-13 11:14 ` Jan Kiszka
2006-06-13 13:01 ` Philippe Gerum
0 siblings, 2 replies; 3+ messages in thread
From: Jean-Olivier Villemure @ 2006-06-13 8:50 UTC (permalink / raw)
To: xenomai, ltt-dev
Hello,
I'm currently working on my diploma thesis which will finish in December
2006. The first goal of my project is to integrate Xenomai events to
LTTng, a task quite simple since creating new events in LTTng is not
very difficult. The second goal is to create a new module in the viewer,
LTTV, to analyse these specifics events.
Our idea about the LTTV module is to create a new controlflow module
representing realtime task behavior by identifying the start, end,
suspend, resume, period, etc...The difference with the current
controlflow is that we will not be showing the states of the process,
but there will be a line for each task (multiple realtime tasks by
process) and identifiers for each important events. Eventualy it will be
good to detected problems relating to periodic tasks. If I have enough
time, it could also be a good idea to add some statistics.
If you have any idea relating to Xenomai or LTTng/LTTV, I will
considerate them.
Thank you!
Jean-Olivier Villemure
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-core] Xenomai integration to LTTng and LTTV
2006-06-13 8:50 [Xenomai-core] Xenomai integration to LTTng and LTTV Jean-Olivier Villemure
@ 2006-06-13 11:14 ` Jan Kiszka
2006-06-13 13:01 ` Philippe Gerum
1 sibling, 0 replies; 3+ messages in thread
From: Jan Kiszka @ 2006-06-13 11:14 UTC (permalink / raw)
To: Jean-Olivier Villemure; +Cc: ltt-dev, xenomai
[-- Attachment #1: Type: text/plain, Size: 1620 bytes --]
Jean-Olivier Villemure wrote:
> Hello,
>
> I'm currently working on my diploma thesis which will finish in December
> 2006. The first goal of my project is to integrate Xenomai events to
> LTTng, a task quite simple since creating new events in LTTng is not
> very difficult.
Does this mean we will see a basic but usable LTTng over recent
I-pipe/Xenomai soon? I'm only curious... 8)
> The second goal is to create a new module in the viewer,
> LTTV, to analyse these specifics events.
>
> Our idea about the LTTV module is to create a new controlflow module
> representing realtime task behavior by identifying the start, end,
> suspend, resume, period, etc...The difference with the current
> controlflow is that we will not be showing the states of the process,
> but there will be a line for each task (multiple realtime tasks by
> process) and identifiers for each important events. Eventualy it will be
> good to detected problems relating to periodic tasks. If I have enough
> time, it could also be a good idea to add some statistics.
Could such an extension also be interesting for the native real-time
Linux project (PREEMPT_RT)? I'm asking because, if yes, you may try to
gain input from that community as well (=>LKML). This doesn't mean that
you have to implement such support, just keeping the approach open for
an integration. Finding and meeting common requirements is always a good
thing and can help even more people.
>
> If you have any idea relating to Xenomai or LTTng/LTTV, I will
> considerate them.
>
> Thank you!
> Jean-Olivier Villemure
>
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-core] Xenomai integration to LTTng and LTTV
2006-06-13 8:50 [Xenomai-core] Xenomai integration to LTTng and LTTV Jean-Olivier Villemure
2006-06-13 11:14 ` Jan Kiszka
@ 2006-06-13 13:01 ` Philippe Gerum
1 sibling, 0 replies; 3+ messages in thread
From: Philippe Gerum @ 2006-06-13 13:01 UTC (permalink / raw)
To: Jean-Olivier Villemure; +Cc: ltt-dev, xenomai
Jean-Olivier Villemure wrote:
> Hello,
>
> I'm currently working on my diploma thesis which will finish in December
> 2006. The first goal of my project is to integrate Xenomai events to
> LTTng, a task quite simple since creating new events in LTTng is not
> very difficult. The second goal is to create a new module in the viewer,
> LTTV, to analyse these specifics events.
>
> Our idea about the LTTV module is to create a new controlflow module
> representing realtime task behavior by identifying the start, end,
> suspend, resume, period, etc...The difference with the current
> controlflow is that we will not be showing the states of the process,
> but there will be a line for each task (multiple realtime tasks by
> process) and identifiers for each important events. Eventualy it will be
> good to detected problems relating to periodic tasks. If I have enough
> time, it could also be a good idea to add some statistics.
>
> If you have any idea relating to Xenomai or LTTng/LTTV, I will
> considerate them.
The overall idea of getting RT thread-awareness - in terms of behaviour
- is a fundamentally good one. The key in easily pinpointing problems
with the help of any tracer is to have a linear view of events (i.e.
regardless of the context), but also a context-sensitive view (by
thread, by cpu, by action on a particular synchronzation object, with or
without asynchronous events listed), and above all, being able to switch
from one to another in a snap.
Additionally, representing graphically the interrupt states as they
preempt thread contexts would be very useful to get a clearer view of
potential race windows. This also means that getting the name of the
preempted code/routines instead of the simple task identifier would be
very interesting. This would somehow look like what the I-pipe tracer
does using an in-kernel mcount() instrumentation, but with
thread-awareness and context sensitivity added, to filter out unwanted
events.
In any case, problems with tracers is almost never the lack of available
data, but rather having way too many data available to be interpreted
easily. We need a tool that gathers related events (synchronous /
asynchronous) and allow us to look at them in different ways.
Regarding Xenomai in particular, I'd suggest to focus on the nucleus
interface (xnpod_*) for building the list of traceable core events, and
allow for extending those events following the skin abstraction. I.e.
xnpod_suspend_thread() would catch any attempt to block a thread (and
subsequent wake up on exit), whilst e.g. pthread_mutex_lock(),
sc_tsuspend() or taskSuspend() would catch the upper logic based on the
former, for the POSIX, VRTX or VxWorks interfaces/skins.
Going this way is likely to ease the adaptation of that work on top of
preempt-rt too, since the underlying semantics and levels of abstraction
would be strictly compatible.
The good news doing so would be that the day Xenomai skins are rebased
on a preempt-rt kernel, such tool would still work with very few changes
in this configuration, because the nucleus layer will still be present,
even if implemented differently to leverage native preemption.
--
Philippe.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-06-13 13:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-13 8:50 [Xenomai-core] Xenomai integration to LTTng and LTTV Jean-Olivier Villemure
2006-06-13 11:14 ` Jan Kiszka
2006-06-13 13:01 ` Philippe Gerum
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.