]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Introduce libbpf_bpf_link_type_str
authorDaniel Müller <deso@posteo.net>
Mon, 23 May 2022 23:04:26 +0000 (23:04 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 2 Jun 2022 23:26:33 +0000 (16:26 -0700)
commit53c7b7b2f6728e9c12d3c4c61e0f868a6a8c1264
tree1f53ac89fdf96ece712a6c3e733dcfc8cd4dec10
parent854a393b73ee05c2186e28fc92064d86d77c7cb8
libbpf: Introduce libbpf_bpf_link_type_str

This change introduces a new function, libbpf_bpf_link_type_str, to the
public libbpf API. The function allows users to get a string
representation for a bpf_link_type enum variant.

Signed-off-by: Daniel Müller <deso@posteo.net>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Quentin Monnet <quentin@isovalent.com>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20220523230428.3077108-11-deso@posteo.net
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.h
tools/lib/bpf/libbpf.map