diff options
| author | Jiri Olsa <[email protected]> | 2024-04-30 11:28:28 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2024-04-30 16:45:53 +0000 |
| commit | 7b94965429f2fa32a83e1275c6bf6ed0add08603 (patch) | |
| tree | 92edffe018c8abf1adce83fe45250bb7ce80d067 /tools/lib/bpf/libbpf.c | |
| parent | libbpf: Add support for kprobe session attach (diff) | |
| download | kernel-7b94965429f2fa32a83e1275c6bf6ed0add08603.tar.gz kernel-7b94965429f2fa32a83e1275c6bf6ed0add08603.zip | |
libbpf: Add kprobe session attach type name to attach_type_name
Adding kprobe session attach type name to attach_type_name,
so libbpf_bpf_attach_type_str returns proper string name for
BPF_TRACE_KPROBE_SESSION attach type.
Signed-off-by: Jiri Olsa <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
| -rw-r--r-- | tools/lib/bpf/libbpf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c index 16dae279a900..7667671187e9 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_SESSION] = "trace_kprobe_session", }; static const char * const link_type_name[] = { |
