Re: [RFC][PATCH 2.6.11-rc3-mm1] Relay Fork Module

From: Andrew Morton
Date: Mon Feb 07 2005 - 18:43:14 EST


Guillaume Thouvenin <guillaume.thouvenin@xxxxxxxx> wrote:
>
> Hello,
>
> This module sends a signal to one or several processes (in user
> space) when a fork occurs in the kernel. It relays information about
> forks (parent and child pid) to a user space application.
>
> ...
> This patch is used by the Enhanced Linux System Accounting tool that
> can be downloaded from http://elsa.sf.net

So this permits ELSA to maintain a complete picture of the process/thread
hierarchy? I guess that fits into the "do it in userspace" mantra -
certainly hooking into fork() is a minimal way of doing this, although I
wonder what the limitations are.

Implementation-wise: there's a lot of code there and the interface is a bit
awkward. Why not just feed that kobject you have there into
kobject_uevent()?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/