| /linux-6.15/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-6.15/tools/bpf/bpftool/Documentation/ |
| H A D | bpftool-btf.rst | 103 'pad' type_id=3 bits_offset=0 104 'sock' type_id=4 bits_offset=64 158 'a' type_id=3 bits_offset=0 159 'b' type_id=4 bits_offset=0 164 'arr_field' type_id=8 bits_offset=40 165 'fwd_field' type_id=10 bits_offset=192 249 'alert' type_id=393 bits_offset=0 250 'ara' type_id=56050 bits_offset=256 252 'addr' type_id=16 bits_offset=0 253 'type' type_id=56053 bits_offset=32 [all …]
|
| H A D | bpftool-gen.rst | 418 [7] INT 'char' size=1 bits_offset=0 nr_bits=8 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 447 'args' type_id=4 bits_offset=128 449 'pid' type_id=1 bits_offset=17920 [all …]
|
| /linux-6.15/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-6.15/tools/lib/bpf/ |
| H A D | btf_dump.c | 1709 __u8 bits_offset, 1755 __u8 bits_offset, in btf_dump_get_bitfield_value() argument 1777 nr_copy_bits = bit_sz + bits_offset; in btf_dump_get_bitfield_value() 1781 nr_copy_bits = t->size * 8 - bits_offset; in btf_dump_get_bitfield_value() 1796 __u8 bits_offset, in btf_dump_bitfield_check_zero() argument 1813 __u8 bits_offset, in btf_dump_bitfield_data() argument 1870 __u8 bits_offset) in btf_dump_int_data() argument 2264 __u8 bits_offset, in btf_dump_type_data_check_overflow() argument 2323 __u8 bits_offset, in btf_dump_type_data_check_zero() argument 2380 bits_offset, 0); in btf_dump_type_data_check_zero() [all …]
|
| H A D | libbpf_internal.h | 80 #define BTF_INT_ENC(encoding, bits_offset, nr_bits) \ argument 81 ((encoding) << 24 | (bits_offset) << 16 | (nr_bits)) 82 #define BTF_TYPE_INT_ENC(name, encoding, bits_offset, bits, sz) \ argument 84 BTF_INT_ENC(encoding, bits_offset, bits) 85 #define BTF_MEMBER_ENC(name, type, bits_offset) (name), (type), (bits_offset) argument
|
| /linux-6.15/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-6.15/Documentation/bpf/ |
| H A D | btf.rst | 952 [1] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED 954 'f1' type_id=1 bits_offset=0 955 'f2' type_id=1 bits_offset=32 965 [1] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED 970 [1] INT 'long unsigned int' size=8 bits_offset=0 nr_bits=64 encoding=(none) 971 [2] INT 'int' size=4 bits_offset=0 nr_bits=32 encoding=SIGNED 973 'f1' type_id=2 bits_offset=0 974 'f2' type_id=2 bits_offset=32 1115 a type_id=2 bitfield_size=2 bits_offset=0 1116 b type_id=2 bitfield_size=3 bits_offset=2 [all …]
|
| 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)
|
| /linux-6.15/kernel/bpf/ |
| H A D | btf.c | 2377 nr_copy_bits = nr_bits + bits_offset; in btf_bitfield_show() 2383 left_shift_bits = bits_offset; in btf_bitfield_show() 2396 void *data, u8 bits_offset, in btf_int_bits_show() argument 2414 u32 type_id, void *data, u8 bits_offset, in btf_int_show() argument 2775 u32 type_id, void *data, u8 bits_offset, in btf_var_show() argument 2784 u32 type_id, void *data, u8 bits_offset, in btf_ptr_show() argument 3063 bits_offset, show); in __btf_array_show() 3076 u32 type_id, void *data, u8 bits_offset, in btf_array_show() argument 4374 u32 type_id, void *data, u8 bits_offset, in btf_enum_show() argument 4840 void *data, u8 bits_offset, in btf_datasec_show() argument [all …]
|
| H A D | core.c | 292 const u32 bits_offset = SHA1_BLOCK_SIZE - sizeof(__be64); in bpf_prog_calc_tag() local 344 bits = (__be64 *)(todo + bsize + bits_offset); in bpf_prog_calc_tag()
|