Skip to contentSkip to conversation

2.6.16-rc1-mm5: explanation text for kretprobe-kretprobe-booster.patch

DISCUSSION Chuck Ebbert 1 participant 1 message Feb 7, 2006

lore
Share & tools
lore
#0 lore raw

In kretprobe-kretprobe-booster.patch:

Quoted 4 lines

From: Masami Hiramatsu <[email protected]>

What does this do?

Here's a description:

In normal operation, kretprobe makes a target function return to trampoline code. A kprobe (called trampoline_probe) has been inserted in the trampoline code. When the kernel hits this kprobe, it calls kretprobe's handler and it returns to the original return address.

Kretprobe-booster removes the trampoline_probe. It allows the trampoline code to call kretprobe's handler directly instead of invoking kprobe. The trampoline code returns to the original return address.

Signature · 1 line
Chuck