Re: [RFC PATCH v3 5/6] uretprobes: invoke return probe handlers

2013-03-02 Thread Oleg Nesterov
On 02/28, Anton Arapov wrote: > > @@ -1576,8 +1622,8 @@ static void handle_swbp(struct pt_regs *regs) > > if (!uprobe) { > if (is_swbp > 0) { > - /* No matching uprobe; signal SIGTRAP. */ > - send_sig(SIGTRAP, current, 0); > +

[RFC PATCH v3 5/6] uretprobes: invoke return probe handlers

2013-02-28 Thread Anton Arapov
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. v3: - protected uprobe with refcounter. See put_uprobe() in handle_uretprobe() that reflects increment in prepare_uretprobe() v2: