This is the mail archive of the
systemtap@sources.redhat.com
mailing list for the systemtap project.
Re: kprobes problem
- From: Baruch Even <baruch at ev-en dot org>
- To: systemtap at sources dot redhat dot com
- Date: Sat, 12 Mar 2005 02:45:16 +0000
- Subject: Re: kprobes problem
- References: <42324F4C.9010307@ev-en.org>
Baruch Even wrote:
I've got a jprobe working on the entry of the function and wanted a
kprobe at the end of the function, on the ret instruction.
I've extracted with a script the offset of the ret instruction but when
hitting the probe the kernel oopses.
If I move the trap a few instructions earlier to a point where there is
an instruction with more than one byte[1], everything works. I can do
that but I can't really automate it as I wanted.
If I move the kprobe one byte before the ret (on an instruction
boundary) it still works, so it's not just that I'm on a single byte
instruction.
Baruch