Since this is an experimental API, all of these tags are not exposed in libbpf, but hidden in the bpf_experimental.h header in the selftests directory. Once enough field experience has been gained with this API, it can graduate to stable and can be baked into UAPI.s Signed-off-by: Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx> --- tools/testing/selftests/bpf/bpf_experimental.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/bpf/bpf_experimental.h b/tools/testing/selftests/bpf/bpf_experimental.h index 60fe48df4f68..21f12c510db4 100644 --- a/tools/testing/selftests/bpf/bpf_experimental.h +++ b/tools/testing/selftests/bpf/bpf_experimental.h @@ -3,6 +3,10 @@ #include <bpf/bpf_tracing.h> #include <bpf/bpf_helpers.h> +#define __contains(kind, name, node) __attribute__((btf_decl_tag("contains:" #kind ":" #name ":" #node))) +#define __kernel __attribute__((btf_decl_tag("kernel"))) +#define __local __attribute__((btf_type_tag("local"))) + #else struct bpf_list_head { -- 2.34.1