Re: [PATCH 3/3] uprobes: make uprobe_register() return struct uprobe *

From: Oleg Nesterov
Date: Wed Jul 10 2024 - 15:22:25 EST


On 07/10, Jiri Olsa wrote:
>
> > @@ -3180,10 +3181,8 @@ static void bpf_uprobe_unregister(struct path *path, struct bpf_uprobe *uprobes,
> > {
> > u32 i;
> >
> > - for (i = 0; i < cnt; i++) {
> > - uprobe_unregister(d_real_inode(path->dentry), uprobes[i].offset,
> > - &uprobes[i].consumer);
> > - }
>
> nice, we could also drop path argument now

Indeed, I missed that. Will send V2 when/if this makes any sense.

Thanks!

Oleg.