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 :) > }; > > static const char * const link_type_name[] = { > -- > 2.44.0 >