Kprobes support for accessing args upon return

Jun Koi junkoi2004@gmail.com
Sun Dec 17 19:08:00 GMT 2006


BTW, is there any way to know if a kernel is compiled with or without
the "frame pointer" option? (I suppose that we dont have the .config
file at hand)

Thanks,
Jun

On 12/16/06, Jun Koi <junkoi2004@gmail.com> wrote:
> Hi Jim,
>
> On 06 Dec 2006 14:32:40 -0800, Jim Keniston <jkenisto@us.ibm.com> wrote:
> > As promised, here (once again) is a pointer to the kretprobes patch
> > (against 2.6.13) that adds an optional "data pouch" to a
> > kretprobe_instance. This makes it easy for data such as arg values to be
> > saved upon function entry and recalled upon return.  This was written by
> > Kevin Stafford and smoke-tested by me.
>
> This patch would be very useful. However, there is a doubt: You access
> function args by ESP. That would not work if the kernel compiled
> without "frame pointer" option.
>
> But this patch is worthy to be merged IMO.
>
> regards,
> J
>



More information about the Systemtap mailing list