uretprobes: Return probe exit, invoke handlers
authorAnton Arapov <anton@redhat.com>
Wed, 3 Apr 2013 16:00:36 +0000 (18:00 +0200)
committerOleg Nesterov <oleg@redhat.com>
Sat, 13 Apr 2013 13:31:57 +0000 (15:31 +0200)
commitfec8898d86ad0fb4d2161fc89885fa52da1e8b72
tree93232f5c2b1eb2d4e4d0d8ef11dd502b18d530a5
parent0dfd0eb8e4d72ded8b21f4fee74ba5547408cbe9
uretprobes: Return probe exit, invoke handlers

Uretprobe handlers are invoked when the trampoline is hit, on completion
the trampoline is replaced with the saved return address and the uretprobe
instance deleted.

TODO: handle_trampoline() assumes that ->return_instances is always valid.
We should teach it to handle longjmp() which can invalidate the pending
return_instance's. This is nontrivial, we will try to do this in a separate
series.

Signed-off-by: Anton Arapov <anton@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
kernel/events/uprobes.c