mirror of
https://github.com/netdata/libbpf.git
synced 2026-04-06 00:29:07 +08:00
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. Signed-off-by: Ihor Solodrai <ihor.solodrai@linux.dev> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20250130201239.1429648-3-ihor.solodrai@linux.dev
This commit is contained in:
committed by
Andrii Nakryiko
parent
32bda80136
commit
2b8b896bca
@@ -36,7 +36,8 @@ struct btf_type {
|
|||||||
* bits 24-28: kind (e.g. int, ptr, array...etc)
|
* bits 24-28: kind (e.g. int, ptr, array...etc)
|
||||||
* bits 29-30: unused
|
* bits 29-30: unused
|
||||||
* bit 31: kind_flag, currently used by
|
* bit 31: kind_flag, currently used by
|
||||||
* struct, union, enum, fwd and enum64
|
* struct, union, enum, fwd, enum64,
|
||||||
|
* decl_tag and type_tag
|
||||||
*/
|
*/
|
||||||
__u32 info;
|
__u32 info;
|
||||||
/* "size" is used by INT, ENUM, STRUCT, UNION, DATASEC and ENUM64.
|
/* "size" is used by INT, ENUM, STRUCT, UNION, DATASEC and ENUM64.
|
||||||
|
|||||||
Reference in New Issue
Block a user