Re: Multiple kprobes per address

From: Rusty Lynch (
Date: Mon Nov 11 2002 - 13:35:56 EST

I was really only concerned with multiple consumers of kprobes. So if
I were to create some tool that used kpobes to hook into the kernel, and
someone else were to create another tool that solved a different problem
but also used kprobes then the two tools wouldn't play nice with each other.


----- Original Message -----
From: "Vamsi Krishna S ." <>
To: "Rusty Lynch" <>
Cc: <>
Sent: Monday, November 11, 2002 12:05 AM
Subject: Re: Multiple kprobes per address

> Hi,
> On Fri, Nov 08, 2002 at 01:00:26PM -0800, Rusty Lynch wrote:
> > I noticed that kprobes is designed around the idea of only allowing
> > a single probe point per probe address. Why not allow multiple probe
> > points for a given probe address? Is it a way of limiting complexity?
> >
> We didn't think it would be useful and conceptually, it is simpler to
> think of one probe at an address.
> > It looks like it would be fairly straight forward to change
> > to be get_kprobes(addr) where it returns a list of probe points
> > with the address, and then tweak do_int3 to work through the entire
> > Would such a change be acceptable?
> >
> It will be trivial to add this, but why? Is there a good reason
> for wanting to do this (multiple kprobes at same address) as opposed
> to doing all you want done on a probe hit in a single handler?
> Regards,
> Vamsi.
> --
> Vamsi Krishna S.
> Linux Technology Center,
> IBM Software Lab, Bangalore.
> Ph: +91 80 5044959
> Internet:

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Fri Nov 15 2002 - 22:00:23 EST