summaryrefslogtreecommitdiff
path: root/tools/lib/bpf/libbpf.map
diff options
context:
space:
mode:
authorIhor Solodrai <ihor.solodrai@linux.dev>2025-01-30 12:12:34 -0800
committerAndrii Nakryiko <andrii@kernel.org>2025-02-05 16:17:59 -0800
commit51d1b1d42841c557dabde5b140ae20774591e6dc (patch)
treed240b93fc34bd7db41970dbe247fe0db6e823e42 /tools/lib/bpf/libbpf.map
parent03f3aa4a6b664270d502c7fb44c634cbe250261e (diff)
downloadlinux-next-51d1b1d42841c557dabde5b140ae20774591e6dc.tar.gz
linux-next-51d1b1d42841c557dabde5b140ae20774591e6dc.zip
libbpf: Introduce kflag for type_tags and decl_tags in BTF
Add the following functions to libbpf API: * btf__add_type_attr() * btf__add_decl_attr() These functions allow to add to BTF the type tags and decl tags with info->kflag set to 1. The kflag indicates that the tag directly encodes an __attribute__ and not a normal tag. See Documentation/bpf/btf.rst changes in the subsequent patch for details on the semantics. Suggested-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Reviewed-by: Alan Maguire <alan.maguire@oracle.com> Acked-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20250130201239.1429648-2-ihor.solodrai@linux.dev
Diffstat (limited to 'tools/lib/bpf/libbpf.map')
-rw-r--r--tools/lib/bpf/libbpf.map2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf.map b/tools/lib/bpf/libbpf.map
index a8b2936a1646..b5a838de6f47 100644
--- a/tools/lib/bpf/libbpf.map
+++ b/tools/lib/bpf/libbpf.map
@@ -436,4 +436,6 @@ LIBBPF_1.6.0 {
bpf_linker__add_buf;
bpf_linker__add_fd;
bpf_linker__new_fd;
+ btf__add_decl_attr;
+ btf__add_type_attr;
} LIBBPF_1.5.0;