lkml.org 
[lkml]   [2010]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Notification when a task is created/exits
From
Hi Kame,

>
>  1. use NETLINK and catch task create/exit in userland.
>    But this means "catch" is asyncronous.
>
This does not sounds like a possible solution to me in my setup. Using netlink
and having an user space component to do this job might be an over kill in what
I am doing.

>  2. implement cgroup subsystem
>    AFAIK, in the latest kernel, cgroup subsystem can be implemented as module.
>    cgroup has fork/exit handler.
>    And you can implement some useful controls for tasks you watch via
>    cgroup's control interface.
>

This sounds close to what I have in mind, but unfortunately I dont
have any idea what is cgroup
subsystem. How to implement cgroup subsystem? Can you give pointers to
some existing code
or document? Also, using this mechanism can we monitor each thread created in
user space? I.e. it is only a fork handler or even a
pthread_create/clone can be tracked this way.


> Thanks,
> -Kame
>
>
>> -Leo.
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> Please read the FAQ at  http://www.tux.org/lkml/
>>
>
>



--


-Leo.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2010-02-17 04:19    [W:0.041 / U:3.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site