All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] How to check task activation ?
@ 2009-02-06 14:29 Sebastien DI MERCURIO
  2009-02-06 14:48 ` Philippe Gerum
  0 siblings, 1 reply; 5+ messages in thread
From: Sebastien DI MERCURIO @ 2009-02-06 14:29 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 528 bytes --]

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?
 
Other point: is there some kind of monitoring tool (a bit like windriver
Windview) working on xenomai ?
 
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
 

[-- Attachment #2: Type: text/html, Size: 1677 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-help] How to check task activation ?
  2009-02-06 14:29 [Xenomai-help] How to check task activation ? Sebastien DI MERCURIO
@ 2009-02-06 14:48 ` Philippe Gerum
  2009-02-06 15:01   ` Jan Kiszka
  2009-02-06 15:42   ` Sebastien DI MERCURIO
  0 siblings, 2 replies; 5+ messages in thread
From: Philippe Gerum @ 2009-02-06 14:48 UTC (permalink / raw)
  To: Sebastien DI MERCURIO; +Cc: xenomai

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-help] How to check task activation ?
  2009-02-06 14:48 ` Philippe Gerum
@ 2009-02-06 15:01   ` Jan Kiszka
  2009-02-06 15:59     ` Sebastien DI MERCURIO
  2009-02-06 15:42   ` Sebastien DI MERCURIO
  1 sibling, 1 reply; 5+ messages in thread
From: Jan Kiszka @ 2009-02-06 15:01 UTC (permalink / raw)
  To: rpm; +Cc: xenomai

Philippe Gerum wrote:
> 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.

LTTV from the LTTng project can serve as such, though the Xenomai events
are not graphically visualized. It's unclear if we will ever see this
for LTTV as there is now activity towards an Eclipse plugin for LTTng
which will probably be the better place for extensions.

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-help] How to check task activation ?
  2009-02-06 14:48 ` Philippe Gerum
  2009-02-06 15:01   ` Jan Kiszka
@ 2009-02-06 15:42   ` Sebastien DI MERCURIO
  1 sibling, 0 replies; 5+ messages in thread
From: Sebastien DI MERCURIO @ 2009-02-06 15:42 UTC (permalink / raw)
  To: rpm; +Cc: xenomai

Thank you. I will have a look at TSWITCh and taskHookLib 

-----Message d'origine-----
De : Philippe Gerum [mailto:rpm@xenomai.org
Envoyé : vendredi 6 février 2009 15:48
À : Sebastien DI MERCURIO
Cc : xenomai@xenomai.org
Objet : Re: [Xenomai-help] How to check task activation ?

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.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai-help] How to check task activation ?
  2009-02-06 15:01   ` Jan Kiszka
@ 2009-02-06 15:59     ` Sebastien DI MERCURIO
  0 siblings, 0 replies; 5+ messages in thread
From: Sebastien DI MERCURIO @ 2009-02-06 15:59 UTC (permalink / raw)
  To: 'Jan Kiszka', rpm; +Cc: xenomai

I have took a look at LTTV and the tool may fulfill my needs.

Thank you for the information.

-----Message d'origine-----
De : Jan Kiszka [mailto:jan.kiszka@domain.hid
Envoyé : vendredi 6 février 2009 16:02
À : rpm@xenomai.org
Cc : Sebastien DI MERCURIO; xenomai@xenomai.org
Objet : Re: How to check task activation ?

Philippe Gerum wrote:
> 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.

LTTV from the LTTng project can serve as such, though the Xenomai events are
not graphically visualized. It's unclear if we will ever see this for LTTV
as there is now activity towards an Eclipse plugin for LTTng which will
probably be the better place for extensions.

Jan

--
Siemens AG, Corporate Technology, CT SE 2 Corporate Competence Center
Embedded Linux



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-02-06 15:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-06 14:29 [Xenomai-help] How to check task activation ? Sebastien DI MERCURIO
2009-02-06 14:48 ` Philippe Gerum
2009-02-06 15:01   ` Jan Kiszka
2009-02-06 15:59     ` Sebastien DI MERCURIO
2009-02-06 15:42   ` Sebastien DI MERCURIO

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.