Re: [PATCHv6 bpf-next 07/16] libbpf: Add support for uprobe multi session attach

From: Andrii Nakryiko
Date: Thu Oct 10 2024 - 22:21:50 EST


On Thu, Oct 10, 2024 at 1:11 PM Jiri Olsa <jolsa@xxxxxxxxxx> wrote:
>
> Adding support to attach program in uprobe session mode
> with bpf_program__attach_uprobe_multi function.
>
> Adding session bool to bpf_uprobe_multi_opts struct that allows
> to load and attach the bpf program via uprobe session.
> the attachment to create uprobe multi session.
>
> Also adding new program loader section that allows:
> SEC("uprobe.session/bpf_fentry_test*")
>
> and loads/attaches uprobe program as uprobe session.
>
> Adding sleepable hook (uprobe.session.s) as well.
>
> Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx>
> ---
> tools/lib/bpf/bpf.c | 1 +
> tools/lib/bpf/libbpf.c | 18 ++++++++++++++++--
> tools/lib/bpf/libbpf.h | 4 +++-
> 3 files changed, 20 insertions(+), 3 deletions(-)
>

Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx>

[...]