What you need is to put a trampoline of sorts at the start of the
function, this is similar to what kprobe does, the difference would be
that kprobe places an int3 and you'll need to place a direct call to
your replacing method. At the end of your function you need to call the
original method, either bby temporarily restoring the original location
or by copying it to another place and running it there.

Hotpatching a reentrant function while timesharing is on is a really bad idea imho.

Peter

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to