Skip to contentSkip to conversation

My work on Xenomai integration to LTTng / LTTV

Xenomai-core Jean-Olivier Villemure 3 participants 3 messages Oct 31, 2006 – Nov 1, 2006

lore
Share & tools
lore
#0 lore raw

Hello,

I'm currently working on the integration of Xenomai tracing in LTTng (Linux Trace Toolkit Next Generation) and the event viewing in LTTV (Linux Trace Toolkit Viewer).

At this moment, I 'm tracing events about task handling, period and soon, mutex and semaphore synchronization.

Inserting traqcing points in Xenomai nucleus is not very difficult, my main work is focus on the controlflow viewer module of LTTV. At this moment, we can open a trace and view:
- Task state : init, started, running, suspended, overrunning (period miss)
- Period timer tick for periodic task
- Textual information about the task (name, period, priority, birth)
- Mutex/semaphore owned by specific task
- Soon task waiting on mutex/semaphore

Look at the screenshot to have a better idea.

The next step will be to generate some statistics, for this step I will need your help. As Xenomai users, which kind of stats would you want to compute?

After that, I'll study the possibilities of simulating an execution trace from an existing trace by modifying some parameters (period length, ...)

Any ideas are welcome!

Jean-Olivier Villemure

#1 lore raw
Quoted 8 lines · Jean-Olivier Villemure

Hello,

I'm currently working on the integration of Xenomai tracing in LTTng (Linux Trace Toolkit Next Generation) and the event viewing in LTTV (Linux Trace Toolkit Viewer).

At this moment, I 'm tracing events about task handling, period and soon, mutex and semaphore synchronization.

Wow, great news!

Quoted 11 lines

Inserting traqcing points in Xenomai nucleus is not very difficult, my main work is focus on the controlflow viewer module of LTTV. At this moment, we can open a trace and view:
- Task state : init, started, running, suspended, overrunning (period miss)
- Period timer tick for periodic task
- Textual information about the task (name, period, priority, birth)
- Mutex/semaphore owned by specific task
- Soon task waiting on mutex/semaphore

Quoted 5 lines

Look at the screenshot to have a better idea.

The next step will be to generate some statistics, for this step I will need your help. As Xenomai users, which kind of stats would you want to compute?

- CPU usage (see /proc/xenomai/stat for average numbers, but we should now be able to precisely calculate them for a specific period)
- Waiting times after activation (maybe one can define deadlines later and verify them)
- Number of preemptions per second or whatever while a task is runnable
- Number of blockades a task faces due to unavailable resources (mutexes, semaphores, etc.)

...just to through some first ideas in.

Quoted 6 lines

After that, I'll study the possibilities of simulating an execution trace from an existing trace by modifying some parameters (period length, ...)

Any ideas are welcome!

So you have an integrated I-pipe+LTTng patch which is able to record events under any context and push them to Linux non-RT user-space, right? How does this work, what impact does it have (also compared to the I-pipe tracer, which is not light-weight)? And, most important, when will we be able to see some code (ipipe add-on patch)? Would be good to assess how this could be integrated on the long term into I-pipe/Xenomai, at least until required LTTng parts become mainstream.

Jan

#2 lore raw
Quoted 6 lines · Jan Kiszka
Quoted 4 lines · Jean-Olivier Villemure

The next step will be to generate some statistics, for this step I will need your help. As Xenomai users, which kind of stats would you want to compute?

Quoted 7 lines

- CPU usage (see /proc/xenomai/stat for average numbers, but we should now be able to precisely calculate them for a specific period)
- Waiting times after activation (maybe one can define deadlines later and verify them)
- Number of preemptions per second or whatever while a task is runnable
- Number of blockades a task faces due to unavailable resources (mutexes, semaphores, etc.)

- Average number of elements linked to the readyq per second (some kind of loadavg for us, i.e. answers the question "should the user switch to the scalable scheduler?")
- Average number of outstanding timers per second (i.e. answers the question "should the user switch to the binary heap-based timer management?").
- Total number of timers missing their wakeup date from more than a given threshold.
- Pressure on the system heap (average and max, probably).
- Transfer rate on message pipes (i.e. nucleus/pipe.c); at some point, it would be interesting to extend this to skins exposing data channels (e.g. native API's queues, POSIX mqueues).

Signature · 1 line
Philippe.