Searched refs:kind_flag (Results 1 – 4 of 4) sorted by relevance
| /Linux-v5.4/tools/testing/selftests/bpf/ |
| D | test_btf.h | 7 #define BTF_INFO_ENC(kind, kind_flag, vlen) \ argument 8 ((!!(kind_flag) << 31) | ((kind) << 24) | ((vlen) & BTF_MAX_VLEN)) 19 #define BTF_FWD_ENC(name, kind_flag) \ argument 20 BTF_TYPE_ENC(name, BTF_INFO_ENC(BTF_KIND_FWD, kind_flag, 0), 0)
|
| /Linux-v5.4/Documentation/bpf/ |
| D | btf.rst | 100 * bit 31: kind_flag, currently used by 126 * ``info.kind_flag``: 0 178 * ``info.kind_flag``: 0 190 * ``info.kind_flag``: 0 235 * ``info.kind_flag``: 0 or 1 253 If the type info ``kind_flag`` is not set, the offset contains only bit offset 259 If the ``kind_flag`` is set, the ``btf_member.offset`` contains both member 271 The following kernel patch introduced ``kind_flag`` and explained why both 281 * ``info.kind_flag``: 0 302 * ``info.kind_flag``: 0 for struct, 1 for union [all …]
|
| /Linux-v5.4/tools/lib/bpf/ |
| D | libbpf_internal.h | 14 #define BTF_INFO_ENC(kind, kind_flag, vlen) \ argument 15 ((!!(kind_flag) << 31) | ((kind) << 24) | ((vlen) & BTF_MAX_VLEN))
|
| /Linux-v5.4/tools/bpf/bpftool/ |
| D | btf_dumper.c | 270 int kind_flag; in btf_dumper_struct() local 278 kind_flag = BTF_INFO_KFLAG(t->info); in btf_dumper_struct() 287 if (kind_flag) { in btf_dumper_struct()
|