diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2021-02-26 21:22:47 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2021-03-04 17:58:15 -0800 |
commit | 8fd886911a6a99acf4a8facf619a2e7b5225be78 (patch) | |
tree | 2c6630058940877f8d7a7f44397ffa22841d8b63 /tools/include | |
parent | 86a35af628e539f7ae9796f1984761e8d3232ac0 (diff) | |
download | linux-8fd886911a6a99acf4a8facf619a2e7b5225be78.tar.gz linux-8fd886911a6a99acf4a8facf619a2e7b5225be78.tar.bz2 linux-8fd886911a6a99acf4a8facf619a2e7b5225be78.zip |
bpf: Add BTF_KIND_FLOAT to uapi
Add a new kind value and expand the kind bitfield.
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210226202256.116518-2-iii@linux.ibm.com
Diffstat (limited to 'tools/include')
-rw-r--r-- | tools/include/uapi/linux/btf.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/include/uapi/linux/btf.h b/tools/include/uapi/linux/btf.h index 5a667107ad2c..d27b1708efe9 100644 --- a/tools/include/uapi/linux/btf.h +++ b/tools/include/uapi/linux/btf.h @@ -52,7 +52,7 @@ struct btf_type { }; }; -#define BTF_INFO_KIND(info) (((info) >> 24) & 0x0f) +#define BTF_INFO_KIND(info) (((info) >> 24) & 0x1f) #define BTF_INFO_VLEN(info) ((info) & 0xffff) #define BTF_INFO_KFLAG(info) ((info) >> 31) @@ -72,7 +72,8 @@ struct btf_type { #define BTF_KIND_FUNC_PROTO 13 /* Function Proto */ #define BTF_KIND_VAR 14 /* Variable */ #define BTF_KIND_DATASEC 15 /* Section */ -#define BTF_KIND_MAX BTF_KIND_DATASEC +#define BTF_KIND_FLOAT 16 /* Floating point */ +#define BTF_KIND_MAX BTF_KIND_FLOAT #define NR_BTF_KINDS (BTF_KIND_MAX + 1) /* For some specific BTF_KIND, "struct btf_type" is immediately |