All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Sebastien DI MERCURIO <sebastien.di-mercurio@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] How to check task activation ?
Date: Fri, 06 Feb 2009 15:48:17 +0100	[thread overview]
Message-ID: <498C4DB1.3010206@domain.hid> (raw)
In-Reply-To: <3FA3B82E3C8A4CAABABE6EBABF2FA4B5@domain.hid>

Sebastien DI MERCURIO wrote:
> Hello,
>  
> Is there a way to get task scheduling log in xenomai ? Something like a
> log in /proc/xenomai, telling which task was activated at which time,
> and then which other task was activated .... would be fine?
>

No. You can do it yourself using the task callouts in kernel space (namely
TSWITCH). If you are running on top of the VxWorks skin, then the taskHookLib is
available from kernel space. If you are running on top of the native API,
rt_task_add_hook() is an equivalent. The idea would be to create a small module
using the native API in kernel space as well, that registers a TSWITCH scheduler
hook. The hook routine would emit a record via a message pipe (RT_PIPE) for each
event, which a plain Linux process would collect by reading on the user-space
end of the pipe.

Note: this will obviously cause overhead.

The other option is to either use LTTng or the I-pipe tracer, but you would
collect a lot of data, aside of the TSWITCH events. YMMV.

> Other point: is there some kind of monitoring tool (a bit like windriver
> Windview) working on xenomai ?

No.

>  
> Best regards
>  
> ------------------------------------------------------------------------
> *Sébastien DI MERCURIO*
> DGEI - Bureau 108 - 1er étage
> Institut National des Sciences Appliquées
> 135 Avenue de Rangueil, 31077, Toulouse cedex 4
> Tel: 05 61 55 98 34
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help


-- 
Philippe.


  reply	other threads:[~2009-02-06 14:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-06 14:29 [Xenomai-help] How to check task activation ? Sebastien DI MERCURIO
2009-02-06 14:48 ` Philippe Gerum [this message]
2009-02-06 15:01   ` Jan Kiszka
2009-02-06 15:59     ` Sebastien DI MERCURIO
2009-02-06 15:42   ` Sebastien DI MERCURIO

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=498C4DB1.3010206@domain.hid \
    --to=rpm@xenomai.org \
    --cc=sebastien.di-mercurio@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.