/Linux-v5.15/tools/testing/selftests/bpf/ |
D | test_btf.h | 13 #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))
|
/Linux-v5.15/tools/bpf/bpftool/Documentation/ |
D | bpftool-btf.rst | 99 'pad' type_id=3 bits_offset=0 100 'sock' type_id=4 bits_offset=64 101 [3] INT 'long long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none) 154 'a' type_id=3 bits_offset=0 155 'b' type_id=4 bits_offset=0 156 [3] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED 158 'const_int_field' type_id=5 bits_offset=0 159 'bitfield_field' type_id=3 bits_offset=32 bitfield_size=4 160 'arr_field' type_id=8 bits_offset=40 161 'fwd_field' type_id=10 bits_offset=192 [all …]
|
/Linux-v5.15/tools/testing/selftests/bpf/progs/ |
D | syscall.c | 24 #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)
|
/Linux-v5.15/tools/lib/bpf/ |
D | libbpf_internal.h | 62 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument 63 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits)) 64 #define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ argument 66 BTF_INT_ENC(encoding, bits_offset, bits) 67 #define BTF_MEMBER_ENC(name, type, bits_offset) (name), (type), (bits_offset) argument
|
D | btf_dump.c | 1512 __u8 bits_offset, 1558 __u8 bits_offset, in btf_dump_get_bitfield_value() argument 1578 nr_copy_bits = bit_sz + bits_offset; in btf_dump_get_bitfield_value() 1600 __u8 bits_offset, in btf_dump_bitfield_check_zero() argument 1606 err = btf_dump_get_bitfield_value(d, t, data, bits_offset, bit_sz, &check_num); in btf_dump_bitfield_check_zero() 1617 __u8 bits_offset, in btf_dump_bitfield_data() argument 1623 err = btf_dump_get_bitfield_value(d, t, data, bits_offset, bit_sz, &print_num); in btf_dump_bitfield_data() 1668 __u8 bits_offset) in btf_dump_int_data() argument 2036 __u8 bits_offset) in btf_dump_type_data_check_overflow() argument 2065 if (data + bits_offset / 8 + size > d->typed_dump->data_end) in btf_dump_type_data_check_overflow() [all …]
|
/Linux-v5.15/include/rdma/ |
D | ibta_vol1_c12.h | 13 #define CM_FIELD_BLOC(field_struct, byte_offset, bits_offset, width) \ argument 15 (byte_offset + sizeof(struct ib_mad_hdr)), bits_offset, \
|
/Linux-v5.15/kernel/bpf/ |
D | btf.c | 2126 static void btf_bitfield_show(void *data, u8 bits_offset, in btf_bitfield_show() argument 2134 nr_copy_bits = nr_bits + bits_offset; in btf_bitfield_show() 2140 left_shift_bits = bits_offset; in btf_bitfield_show() 2153 void *data, u8 bits_offset, in btf_int_bits_show() argument 2164 total_bits_offset = bits_offset + BTF_INT_OFFSET(int_data); in btf_int_bits_show() 2166 bits_offset = BITS_PER_BYTE_MASKED(total_bits_offset); in btf_int_bits_show() 2167 btf_bitfield_show(data, bits_offset, nr_bits, show); in btf_int_bits_show() 2171 u32 type_id, void *data, u8 bits_offset, in btf_int_show() argument 2184 if (bits_offset || BTF_INT_OFFSET(int_data) || in btf_int_show() 2186 btf_int_bits_show(btf, t, safe_data, bits_offset, show); in btf_int_show() [all …]
|
D | core.c | 267 const u32 bits_offset = SHA1_BLOCK_SIZE - sizeof(__be64); in bpf_prog_calc_tag() local 319 bits = (__be64 *)(todo + bsize + bits_offset); in bpf_prog_calc_tag()
|
/Linux-v5.15/Documentation/bpf/ |
D | btf.rst | 893 a type_id=2 bitfield_size=2 bits_offset=0 894 b type_id=2 bitfield_size=3 bits_offset=2 895 c type_id=2 bitfield_size=2 bits_offset=5
|