Re: [PATCHv2 bpf-next 1/9] uprobe: Add support for session consumer
From: Peter Zijlstra
Date: Mon Jul 08 2024 - 05:43:40 EST
On Fri, Jul 05, 2024 at 03:38:12PM +0200, Jiri Olsa wrote:
> > Agreed. BTW, even if the uprobe is removed, the ret_handler should be called?
> > I think both 1 and 2 case, we should skip ret_handler.
>
> do you mean what happens when the uretprobe is installed and its consumer
> is unregistered before it's triggered?
>
> I think it won't get executed, because the consumer is removed right away,
> even if the uprobe object stays because the return_instance holds ref to it
Yep, that is my understanding too. RI keeps the uprobe object around,
but the consumers can go at any time.