diff options
author | Yonghong Song <yhs@fb.com> | 2021-11-11 17:26:14 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-11-11 17:41:11 -0800 |
commit | 2dc1e488e5cdfd937554ca81fd46ad874d244b3f (patch) | |
tree | 2de96bc5f014fd7c0b7a45eb93397bfdff344338 /tools/lib/bpf/libbpf_internal.h | |
parent | 8c42d2fa4eeab6c37a0b1b1aa7a2715248ef4f34 (diff) | |
download | linux-2dc1e488e5cdfd937554ca81fd46ad874d244b3f.tar.bz2 |
libbpf: Support BTF_KIND_TYPE_TAG
Add libbpf support for BTF_KIND_TYPE_TAG.
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211112012614.1505315-1-yhs@fb.com
Diffstat (limited to 'tools/lib/bpf/libbpf_internal.h')
-rw-r--r-- | tools/lib/bpf/libbpf_internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lib/bpf/libbpf_internal.h b/tools/lib/bpf/libbpf_internal.h index c1e34794b829..f7ac349650a1 100644 --- a/tools/lib/bpf/libbpf_internal.h +++ b/tools/lib/bpf/libbpf_internal.h @@ -73,6 +73,8 @@ BTF_TYPE_ENC(name, BTF_INFO_ENC(BTF_KIND_FLOAT, 0, 0), sz) #define BTF_TYPE_DECL_TAG_ENC(value, type, component_idx) \ BTF_TYPE_ENC(value, BTF_INFO_ENC(BTF_KIND_DECL_TAG, 0, 0), type), (component_idx) +#define BTF_TYPE_TYPE_TAG_ENC(value, type) \ + BTF_TYPE_ENC(value, BTF_INFO_ENC(BTF_KIND_TYPE_TAG, 0, 0), type) #ifndef likely #define likely(x) __builtin_expect(!!(x), 1) |