Home
last modified time | relevance | path

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

/tools/testing/selftests/bpf/
Dtest_btf.h15 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument
16 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
17 #define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ argument
19 BTF_INT_ENC(encoding, bits_offset, bits)
41 #define BTF_MEMBER_ENC(name, type, bits_offset) \ argument
42 (name), (type), (bits_offset)
45 #define BTF_MEMBER_OFFSET(bitfield_size, bits_offset) \ argument
46 ((bitfield_size) << 24 | (bits_offset))
/tools/bpf/bpftool/Documentation/
Dbpftool-btf.rst102 'pad' type_id=3 bits_offset=0
103 'sock' type_id=4 bits_offset=64
104 [3] INT 'long long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none)
157 'a' type_id=3 bits_offset=0
158 'b' type_id=4 bits_offset=0
159 [3] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED
161 'const_int_field' type_id=5 bits_offset=0
162 'bitfield_field' type_id=3 bits_offset=32 bitfield_size=4
163 'arr_field' type_id=8 bits_offset=40
164 'fwd_field' type_id=10 bits_offset=192
[all …]
Dbpftool-gen.rst388 [1] INT 'long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none)
394 [7] INT 'char' size=1 bits_offset=0 nr_bits=8 encoding=(none)
396 [9] INT 'unsigned int' size=4 bits_offset=0 nr_bits=32 encoding=(none)
405 'ent' type_id=3 bits_offset=0
406 'id' type_id=7 bits_offset=64
407 'args' type_id=9 bits_offset=128
408 '__data' type_id=12 bits_offset=512
410 'type' type_id=4 bits_offset=0
411 'flags' type_id=5 bits_offset=16
412 'preempt_count' type_id=5 bits_offset=24
[all …]
/tools/testing/selftests/bpf/progs/
Dsyscall.c24 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument
25 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
26 #define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ argument
28 BTF_INT_ENC(encoding, bits_offset, bits)
/tools/lib/bpf/
Dlibbpf_internal.h78 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument
79 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits))
80 #define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ argument
82 BTF_INT_ENC(encoding, bits_offset, bits)
83 #define BTF_MEMBER_ENC(name, type, bits_offset) (name), (type), (bits_offset) argument
Dbtf_dump.c1705 __u8 bits_offset,
1751 __u8 bits_offset, in btf_dump_get_bitfield_value() argument
1773 nr_copy_bits = bit_sz + bits_offset; in btf_dump_get_bitfield_value()
1777 nr_copy_bits = t->size * 8 - bits_offset; in btf_dump_get_bitfield_value()
1792 __u8 bits_offset, in btf_dump_bitfield_check_zero() argument
1798 err = btf_dump_get_bitfield_value(d, t, data, bits_offset, bit_sz, &check_num); in btf_dump_bitfield_check_zero()
1809 __u8 bits_offset, in btf_dump_bitfield_data() argument
1815 err = btf_dump_get_bitfield_value(d, t, data, bits_offset, bit_sz, &print_num); in btf_dump_bitfield_data()
1866 __u8 bits_offset) in btf_dump_int_data() argument
2255 __u8 bits_offset, in btf_dump_type_data_check_overflow() argument
[all …]