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

From: Guillaume Thouvenin
Date: Tue Feb 08 2005 - 03:37:18 EST


On Mon, 2005-02-07 at 15:46 -0800, Andrew Morton wrote:
> Guillaume Thouvenin <guillaume.thouvenin@xxxxxxxx> wrote:
> >
> > 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?

Yes it does.

> 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()?

There isn't good reason and as kobject_uevent is here to notify user
space application by sending event through the netlink interface we can
add a new event (KOBJ_FORK) and send the fork creation by using this
interface. I agree with your comment and I'm working on this solution.

Thank you very much for your help,
Regards,

Guillaume

-
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/