Re: [PATCH] Add module load profile hook

Rusty Russell (rusty@rustcorp.com.au)
Mon, 24 Feb 2003 11:33:34 +1100


In message <20030221005412.GA95016@compsoc.man.ac.uk> you write:
> On Fri, Feb 21, 2003 at 11:33:46AM +1100, Rusty Russell wrote:
>
> > Sure, but I think I prefer a more generic notifier mechanism anyway,
> > which oprofile can use as well as other mechanisms.
> >
> > Say, module_notifier with a MODULE_LOADED, MODULE_INITIALIZED,
> > MODULE_UNLOADING, MODULE_GONE?
>
> What needs this ?

I was thinking those who want to roll their own two-stage init and
delete. I wouldn't implement them all at first, but putting a
notifier in is simple, and it can be expanded later.

ie. you'd just implement MODULE_INITIALIZED, and leave the rest.

Fair?
Rusty.

--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
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/