History

docs/bpf: Document the semantics of BTF tags with kind_flag

Explain the meaning of kind_flag in BTF type_tags and decl_tags. Update uapi btf.h kind_flag comment to reflect the changes.

Ihor Solodrai committed 1 year ago

Commit ea70faa1 parent 51d1b1d3 files · +25 −6Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/btf.h+2−1
@@ -36,7 +36,8 @@ struct btf_type { · 35 unmodified lines
36 * bits 24-28: kind (e.g. int, ptr, array...etc)36 * bits 24-28: kind (e.g. int, ptr, array...etc)
37 * bits 29-30: unused37 * bits 29-30: unused
38 * bit 31: kind_flag, currently used by38 * bit 31: kind_flag, currently used by
39 * struct, union, enum, fwd and enum6439 * struct, union, enum, fwd, enum64,
40 * decl_tag and type_tag
40 */41 */
41 __u32 info;42 __u32 info;
42 /* "size" is used by INT, ENUM, STRUCT, UNION, DATASEC and ENUM64.43 /* "size" is used by INT, ENUM, STRUCT, UNION, DATASEC and ENUM64.