[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240710193245.GF9228@redhat.com>
Date: Wed, 10 Jul 2024 21:32:45 +0200
From: Oleg Nesterov <oleg@...hat.com>
To: Andrii Nakryiko <andrii.nakryiko@...il.com>
Cc: andrii@...nel.org, mhiramat@...nel.org, peterz@...radead.org,
clm@...a.com, jolsa@...nel.org, mingo@...nel.org,
paulmck@...nel.org, rostedt@...dmis.org,
linux-kernel@...r.kernel.org, linux-trace-kernel@...r.kernel.org
Subject: Re: [PATCH 1/3] uprobes: kill uprobe_register_refctr()
On 07/10, Andrii Nakryiko wrote:
>
> LGTM with few nits below.
>
> Acked-by: Andrii Nakryiko <andrii@...nel.org>
Thanks for looking at this.
> > @@ -3477,7 +3477,7 @@ int bpf_uprobe_multi_link_attach(const union bpf_attr *attr, struct bpf_prog *pr
> > &bpf_uprobe_multi_link_lops, prog);
> >
> > for (i = 0; i < cnt; i++) {
> > - err = uprobe_register_refctr(d_real_inode(link->path.dentry),
> > + err = uprobe_register(d_real_inode(link->path.dentry),
> > uprobes[i].offset,
> > uprobes[i].ref_ctr_offset,
> > &uprobes[i].consumer);
>
> please adjust indentation here
OK,
> > - if (tu->ref_ctr_offset)
> > - ret = uprobe_register_refctr(tu->inode, tu->offset,
> > - tu->ref_ctr_offset, &tu->consumer);
> > - else
> > - ret = uprobe_register(tu->inode, tu->offset, &tu->consumer);
> > -
> > + ret = uprobe_register(tu->inode, tu->offset, tu->ref_ctr_offset,
> > + &tu->consumer);
>
> doesn't fit under 100 characters? If it does, please keep as a single line.
OK, will do.
Oleg.
Powered by blists - more mailing lists