Home
last modified time | relevance | path

Searched refs:kind_flag (Results 1 – 5 of 5) sorted by relevance

/linux-6.6.21/tools/testing/selftests/bpf/
Dtest_btf.h9 #define BTF_INFO_ENC(kind, kind_flag, vlen) \ argument
10 ((!!(kind_flag) << 31) | ((kind) << 24) | ((vlen) & BTF_MAX_VLEN))
21 #define BTF_FWD_ENC(name, kind_flag) \ argument
22 BTF_TYPE_ENC(name, BTF_INFO_ENC(BTF_KIND_FWD, kind_flag, 0), 0)
/linux-6.6.21/Documentation/bpf/
Dbtf.rst104 * bit 31: kind_flag, currently used by
130 * ``info.kind_flag``: 0
182 * ``info.kind_flag``: 0
194 * ``info.kind_flag``: 0
239 * ``info.kind_flag``: 0 or 1
257 If the type info ``kind_flag`` is not set, the offset contains only bit offset
263 If the ``kind_flag`` is set, the ``btf_member.offset`` contains both member
275 The following kernel patch introduced ``kind_flag`` and explained why both
285 * ``info.kind_flag``: 0 for unsigned, 1 for signed
310 * ``info.kind_flag``: 0 for struct, 1 for union
[all …]
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dsyscall.c21 #define BTF_INFO_ENC(kind, kind_flag, vlen) \ argument
22 ((!!(kind_flag) << 31) | ((kind) << 24) | ((vlen) & BTF_MAX_VLEN))
/linux-6.6.21/tools/bpf/bpftool/
Dbtf_dumper.c471 int kind_flag; in btf_dumper_struct() local
479 kind_flag = BTF_INFO_KFLAG(t->info); in btf_dumper_struct()
488 if (kind_flag) { in btf_dumper_struct()
/linux-6.6.21/tools/lib/bpf/
Dlibbpf_internal.h61 #define BTF_INFO_ENC(kind, kind_flag, vlen) \ argument
62 ((!!(kind_flag) << 31) | ((kind) << 24) | ((vlen) & BTF_MAX_VLEN))