Home
last modified time | relevance | path

Searched refs:bits_offset (Results 1 – 3 of 3) sorted by relevance

/tools/testing/selftests/bpf/
Dtest_btf.h13 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument
14 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
15 #define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ argument
17 BTF_INT_ENC(encoding, bits_offset, bits)
39 #define BTF_MEMBER_ENC(name, type, bits_offset) \ argument
40 (name), (type), (bits_offset)
42 #define BTF_MEMBER_OFFSET(bitfield_size, bits_offset) \ argument
43 ((bitfield_size) << 24 | (bits_offset))
/tools/bpf/bpftool/Documentation/
Dbpftool-btf.rst93 'pad' type_id=3 bits_offset=0
94 'sock' type_id=4 bits_offset=64
95 [3] INT 'long long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none)
146 'a' type_id=3 bits_offset=0
147 'b' type_id=4 bits_offset=0
148 [3] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED
150 'const_int_field' type_id=5 bits_offset=0
151 'bitfield_field' type_id=3 bits_offset=32 bitfield_size=4
152 'arr_field' type_id=8 bits_offset=40
153 'fwd_field' type_id=10 bits_offset=192
[all …]
/tools/lib/bpf/
Dlibbpf_internal.h17 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument
18 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
19 #define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ argument
21 BTF_INT_ENC(encoding, bits_offset, bits)
22 #define BTF_MEMBER_ENC(name, type, bits_offset) (name), (type), (bits_offset) argument