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

This change introduces a new function, libbpf_bpf_attach_type_str, to
the public libbpf API. The function allows users to get a string
representation for a bpf_attach_type 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-8-deso@posteo.net
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.h
tools/lib/bpf/libbpf.map