libbpf: Introduce libbpf_bpf_prog_type_str
authorDaniel Müller <deso@posteo.net>
Mon, 23 May 2022 23:04:17 +0000 (23:04 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 2 Jun 2022 23:26:10 +0000 (16:26 -0700)
commitd18616e7aa940414312d63de918ab2204d82a20e
treead8faca9a22090c0c20778e2340ecc3bdc004bd3
parentcc1685546df87d9872e1ccef5bf56ac5262be0b1
libbpf: Introduce libbpf_bpf_prog_type_str

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