Re: [PATCH bpf-next 5/7] libbpf: Add kprobe session attach type name to attach_type_name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 23, 2024 at 05:27:06PM -0700, Andrii Nakryiko wrote:
> On Mon, Apr 22, 2024 at 5:13 AM Jiri Olsa <jolsa@xxxxxxxxxx> wrote:
> >
> > Adding kprobe session attach type name to attach_type_name,
> > so libbpf_bpf_attach_type_str returns proper string name for
> > BPF_TRACE_KPROBE_MULTI_SESSION attach type.
> >
> > Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx>
> > ---
> >  tools/lib/bpf/libbpf.c | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c
> > index ca605240205f..9bf6cccb3443 100644
> > --- a/tools/lib/bpf/libbpf.c
> > +++ b/tools/lib/bpf/libbpf.c
> > @@ -132,6 +132,7 @@ static const char * const attach_type_name[] = {
> >         [BPF_TRACE_UPROBE_MULTI]        = "trace_uprobe_multi",
> >         [BPF_NETKIT_PRIMARY]            = "netkit_primary",
> >         [BPF_NETKIT_PEER]               = "netkit_peer",
> > +       [BPF_TRACE_KPROBE_MULTI_SESSION]        = "trace_kprobe_multi_session",
> 
> we got to shorten this to just BPF_TRACE_KPROBE_SESSION :)

ook :)

jirka

> 
> 
> >  };
> >
> >  static const char * const link_type_name[] = {
> > --
> > 2.44.0
> >




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux