/linux/tools/testing/selftests/bpf/ |
H A D | test_btf.h | 15 #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))
|
/linux/tools/bpf/bpftool/Documentation/ |
H A D | bpftool-btf.rst | 98 'pad' type_id=3 bits_offset=0 99 'sock' type_id=4 bits_offset=64 100 [3] INT 'long long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none) 153 'a' type_id=3 bits_offset=0 154 'b' type_id=4 bits_offset=0 155 [3] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED 157 'const_int_field' type_id=5 bits_offset=0 158 'bitfield_field' type_id=3 bits_offset=32 bitfield_size=4 159 'arr_field' type_id=8 bits_offset=40 160 'fwd_field' type_id=10 bits_offset=192 [all …]
|
H A D | bpftool-gen.rst | 412 [1] INT 'long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none) 418 [7] INT 'char' size=1 bits_offset=0 nr_bits=8 encoding=(none) 420 [9] INT 'unsigned int' size=4 bits_offset=0 nr_bits=32 encoding=(none) 429 'ent' type_id=3 bits_offset=0 430 'id' type_id=7 bits_offset=64 431 'args' type_id=9 bits_offset=128 432 '__data' type_id=12 bits_offset=512 434 'type' type_id=4 bits_offset=0 435 'flags' type_id=5 bits_offset=16 436 'preempt_count' type_id=5 bits_offset=24 [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | syscall.c | 31 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument 32 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits)) 33 #define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ argument 35 BTF_INT_ENC(encoding, bits_offset, bits)
|
/linux/tools/lib/bpf/ |
H A D | btf_dump.c | 1705 __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 2260 __u8 bits_offset, in btf_dump_type_data_check_overflow() argument [all …]
|
H A D | libbpf_internal.h | 79 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument 80 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits)) 81 #define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ argument 83 BTF_INT_ENC(encoding, bits_offset, bits) 84 #define BTF_MEMBER_ENC(name, type, bits_offset) (name), (type), (bits_offset) argument
|
/linux/include/rdma/ |
H A 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/kernel/bpf/ |
H A D | btf.c | 2373 static void btf_bitfield_show(void *data, u8 bits_offset, in btf_bitfield_show() argument 2381 nr_copy_bits = nr_bits + bits_offset; in btf_bitfield_show() 2387 left_shift_bits = bits_offset; in btf_bitfield_show() 2400 void *data, u8 bits_offset, in btf_int_bits_show() argument 2411 total_bits_offset = bits_offset + BTF_INT_OFFSET(int_data); in btf_int_bits_show() 2413 bits_offset = BITS_PER_BYTE_MASKED(total_bits_offset); in btf_int_bits_show() 2414 btf_bitfield_show(data, bits_offset, nr_bits, show); in btf_int_bits_show() 2418 u32 type_id, void *data, u8 bits_offset, in btf_int_show() argument 2431 if (bits_offset || BTF_INT_OFFSET(int_data) || in btf_int_show() 2433 btf_int_bits_show(btf, t, safe_data, bits_offset, show); in btf_int_show() [all …]
|
H A D | core.c | 291 const u32 bits_offset = SHA1_BLOCK_SIZE - sizeof(__be64); in bpf_prog_calc_tag() local 343 bits = (__be64 *)(todo + bsize + bits_offset); in bpf_prog_calc_tag()
|
/linux/Documentation/bpf/ |
H A D | llvm_reloc.rst | 435 'a' type_id=3 bits_offset=0 436 'b' type_id=3 bits_offset=32 437 'c' type_id=4 bits_offset=64 bitfield_size=15 438 [3] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED 439 [4] INT 'unsigned int' size=4 bits_offset=0 nr_bits=32 encoding=(none)
|
H A D | btf.rst | 1023 a type_id=2 bitfield_size=2 bits_offset=0 1024 b type_id=2 bitfield_size=3 bits_offset=2 1025 c type_id=2 bitfield_size=2 bits_offset=5
|