All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] rt_task_catch and rt_hook in user space?
@ 2006-03-16 20:15 Alessandro Pittaluga
  2006-03-17  7:59 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Alessandro Pittaluga @ 2006-03-16 20:15 UTC (permalink / raw)
  To: xenomai

Hi to everybody,

Anyone knows why the rt_task_catch and rt_hook is not available in the native
library?

rt_task_catch seems to me the only clean way to define signal handlers on 
per-thread basis, but it is not included in the user space lib, although the 
doc states that the service should be available to user space tasks.

The hooks (registered on context switch) are very useful to calculate number 
of switches, consumed cpu time and so on..

Is there any plan to implement them in user space?

 
Many Thanks

Alessandro



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

* Re: [Xenomai-help] rt_task_catch and rt_hook in user space?
  2006-03-16 20:15 [Xenomai-help] rt_task_catch and rt_hook in user space? Alessandro Pittaluga
@ 2006-03-17  7:59 ` Philippe Gerum
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2006-03-17  7:59 UTC (permalink / raw)
  To: Alessandro Pittaluga; +Cc: xenomai

Alessandro Pittaluga wrote:
> Hi to everybody,
> 
> Anyone knows why the rt_task_catch and rt_hook is not available in the native
> library?

These routines are registering user callouts the nucleus invokes from kernel 
space, so we cannot make them available from user-space at the moment. Maybe this 
situation will improve when asynchronous calls of user-space routines are made 
available in the future, e.g. for dealing with real-time signals without resorting 
to switching to Linux first.

> 
> rt_task_catch seems to me the only clean way to define signal handlers on 
> per-thread basis, but it is not included in the user space lib, although the 
> doc states that the service should be available to user space tasks.
> 

The doc is wrong regarding rt_task_catch(). Only rt_task_notify() is accessible 
from user-space.

> The hooks (registered on context switch) are very useful to calculate number 
> of switches, consumed cpu time and so on..
> 
> Is there any plan to implement them in user space?
>

Yes; no ETA though.

>  
> Many Thanks
> 
> Alessandro
> 
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
> 


-- 

Philippe.


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

end of thread, other threads:[~2006-03-17  7:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-16 20:15 [Xenomai-help] rt_task_catch and rt_hook in user space? Alessandro Pittaluga
2006-03-17  7:59 ` 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.