Searched refs:BTF_INT_BITS (Results 1 – 11 of 11) sorted by relevance
| /Linux-v6.6/tools/bpf/bpftool/ |
| D | btf_dumper.c | 382 int nr_bits = BTF_INT_BITS(int_type); in btf_dumper_int_bits() 403 nr_bits = BTF_INT_BITS(*int_type); in btf_dumper_int() 419 if (BTF_INT_BITS(*int_type) == 64) in btf_dumper_int() 421 else if (BTF_INT_BITS(*int_type) == 32) in btf_dumper_int() 423 else if (BTF_INT_BITS(*int_type) == 16) in btf_dumper_int() 425 else if (BTF_INT_BITS(*int_type) == 8) in btf_dumper_int() 432 if (BTF_INT_BITS(*int_type) == 64) in btf_dumper_int() 434 else if (BTF_INT_BITS(*int_type) == 32) in btf_dumper_int() 436 else if (BTF_INT_BITS(*int_type) == 16) in btf_dumper_int() 438 else if (BTF_INT_BITS(*int_type) == 8) in btf_dumper_int()
|
| D | btf.c | 128 jsonw_uint_field(w, "nr_bits", BTF_INT_BITS(v)); in dump_btf_type() 132 t->size, BTF_INT_OFFSET(v), BTF_INT_BITS(v), in dump_btf_type()
|
| /Linux-v6.6/tools/include/uapi/linux/ |
| D | btf.h | 94 #define BTF_INT_BITS(VAL) ((VAL) & 0x000000ff) macro
|
| /Linux-v6.6/include/uapi/linux/ |
| D | btf.h | 94 #define BTF_INT_BITS(VAL) ((VAL) & 0x000000ff) macro
|
| /Linux-v6.6/Documentation/bpf/ |
| D | btf.rst | 139 #define BTF_INT_BITS(VAL) ((VAL) & 0x000000ff) 151 The ``BTF_INT_BITS()`` specifies the number of actual bits held by this int 152 type. For example, a 4-bit bitfield encodes ``BTF_INT_BITS()`` equals to 4. 153 The ``btf_type.size * 8`` must be equal to or greater than ``BTF_INT_BITS()`` 154 for the type. The maximum value of ``BTF_INT_BITS()`` is 128. 161 * the int type has ``BTF_INT_OFFSET() = 2`` and ``BTF_INT_BITS() = 4`` 171 * the int type has ``BTF_INT_OFFSET() = 0`` and ``BTF_INT_BITS() = 4`` 261 ``BTF_INT_BITS()`` encodes the bitfield size. 273 * ``BTF_INT_BITS()`` must be equal to ``{1,2,4,8,16} * 8``.
|
| /Linux-v6.6/kernel/trace/ |
| D | trace_probe.c | 328 && BTF_INT_BITS(intdata) == 8; in btf_type_is_char_ptr() 347 && BTF_INT_BITS(intdata) == 8; in btf_type_is_char_array() 406 switch (BTF_INT_BITS(intdata)) { in fetch_type_from_btf_type() 417 switch (BTF_INT_BITS(intdata)) { in fetch_type_from_btf_type() 428 ctx->last_bitsize = BTF_INT_BITS(intdata); in fetch_type_from_btf_type()
|
| /Linux-v6.6/tools/lib/bpf/ |
| D | btf.h | 476 return BTF_INT_BITS(*(__u32 *)(t + 1)); in btf_int_bits()
|
| /Linux-v6.6/kernel/bpf/ |
| D | local_storage.c | 407 if (BTF_INT_BITS(int_data) != 64 || BTF_INT_OFFSET(int_data)) in cgroup_storage_check_btf()
|
| D | bpf_local_storage.c | 724 if (BTF_INT_BITS(int_data) != 32 || BTF_INT_OFFSET(int_data)) in bpf_local_storage_map_check_btf()
|
| D | btf.c | 847 nr_bits = BTF_INT_BITS(int_data); in btf_type_int_is_regular() 878 nr_bits = BTF_INT_BITS(int_data); in btf_member_is_reg_int() 2093 nr_copy_bits = BTF_INT_BITS(int_data) + in btf_int_check_member() 2132 nr_int_data_bits = BTF_INT_BITS(int_data); in btf_int_check_kflag_member() 2199 nr_bits = BTF_INT_BITS(int_data) + BTF_INT_OFFSET(int_data); in btf_int_check_meta() 2240 BTF_INT_BITS(int_data), in btf_int_log() 2341 u8 nr_bits = BTF_INT_BITS(int_data); in btf_int_bits_show() 2361 u8 nr_bits = BTF_INT_BITS(int_data); in btf_int_show()
|
| D | arraymap.c | 514 if (BTF_INT_BITS(int_data) != 32 || BTF_INT_OFFSET(int_data)) in array_map_check_btf()
|