Message ID | 20230424160447.2005755-6-jolsa@kernel.org (mailing list archive) |
---|---|
State | RFC |
Delegated to: | BPF |
Headers | show |
Series | bpf: Add multi uprobe link | expand |
On Mon, Apr 24, 2023 at 9:05 AM Jiri Olsa <jolsa@kernel.org> wrote: > > Adding new uprobe_multi attach type and link names, > so the functions can resolve the new values. > > Signed-off-by: Jiri Olsa <jolsa@kernel.org> > --- Acked-by: Andrii Nakryiko <andrii@kernel.org> > tools/lib/bpf/libbpf.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c > index 1cbacf9e71f3..b5bde1f19831 100644 > --- a/tools/lib/bpf/libbpf.c > +++ b/tools/lib/bpf/libbpf.c > @@ -117,6 +117,7 @@ static const char * const attach_type_name[] = { > [BPF_PERF_EVENT] = "perf_event", > [BPF_TRACE_KPROBE_MULTI] = "trace_kprobe_multi", > [BPF_STRUCT_OPS] = "struct_ops", > + [BPF_TRACE_UPROBE_MULTI] = "trace_uprobe_multi", > }; > > static const char * const link_type_name[] = { > @@ -131,6 +132,7 @@ static const char * const link_type_name[] = { > [BPF_LINK_TYPE_KPROBE_MULTI] = "kprobe_multi", > [BPF_LINK_TYPE_STRUCT_OPS] = "struct_ops", > [BPF_LINK_TYPE_NETFILTER] = "netfilter", > + [BPF_LINK_TYPE_UPROBE_MULTI] = "uprobe_multi", > }; > > static const char * const map_type_name[] = { > -- > 2.40.0 >
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index 1cbacf9e71f3..b5bde1f19831 100644 --- a/tools/lib/bpf/libbpf.c +++ b/tools/lib/bpf/libbpf.c @@ -117,6 +117,7 @@ static const char * const attach_type_name[] = { [BPF_PERF_EVENT] = "perf_event", [BPF_TRACE_KPROBE_MULTI] = "trace_kprobe_multi", [BPF_STRUCT_OPS] = "struct_ops", + [BPF_TRACE_UPROBE_MULTI] = "trace_uprobe_multi", }; static const char * const link_type_name[] = { @@ -131,6 +132,7 @@ static const char * const link_type_name[] = { [BPF_LINK_TYPE_KPROBE_MULTI] = "kprobe_multi", [BPF_LINK_TYPE_STRUCT_OPS] = "struct_ops", [BPF_LINK_TYPE_NETFILTER] = "netfilter", + [BPF_LINK_TYPE_UPROBE_MULTI] = "uprobe_multi", }; static const char * const map_type_name[] = {
Adding new uprobe_multi attach type and link names, so the functions can resolve the new values. Signed-off-by: Jiri Olsa <jolsa@kernel.org> --- tools/lib/bpf/libbpf.c | 2 ++ 1 file changed, 2 insertions(+)