Home
last modified time | relevance | path

Searched refs:bit_sz (Results 1 – 5 of 5) sorted by relevance

/tools/lib/bpf/
Dbtf_dump.c824 int max_align = 1, align, i, bit_sz; in btf_is_struct_packed() local
832 bit_sz = btf_member_bitfield_size(t, i); in btf_is_struct_packed()
833 if (align && bit_sz == 0 && m->offset % (8 * align) != 0) in btf_is_struct_packed()
1604 __u8 bit_sz);
1650 __u8 bit_sz, in btf_dump_get_bitfield_value() argument
1669 nr_copy_bits = bit_sz + bits_offset; in btf_dump_get_bitfield_value()
1681 right_shift_bits = 64 - bit_sz; in btf_dump_get_bitfield_value()
1692 __u8 bit_sz) in btf_dump_bitfield_check_zero() argument
1697 err = btf_dump_get_bitfield_value(d, t, data, bits_offset, bit_sz, &check_num); in btf_dump_bitfield_check_zero()
1709 __u8 bit_sz) in btf_dump_bitfield_data() argument
[all …]
Drelo_core.c566 __u32 byte_off, byte_sz, bit_off, bit_sz, field_type_id; in bpf_core_calc_field_relo() local
613 bit_sz = btf_member_bitfield_size(t, acc->idx); in bpf_core_calc_field_relo()
615 bitfield = bit_sz > 0; in bpf_core_calc_field_relo()
620 while (bit_off + bit_sz - byte_off * 8 > byte_sz * 8) { in bpf_core_calc_field_relo()
636 bit_sz = byte_sz * 8; in bpf_core_calc_field_relo()
666 *val = 64 - (bit_off + bit_sz - byte_off * 8); in bpf_core_calc_field_relo()
672 *val = 64 - bit_sz; in bpf_core_calc_field_relo()
Dlibbpf.c1610 int bit_sz = ext->kcfg.sz * 8; in is_kcfg_value_in_range() local
1628 return v + (1ULL << (bit_sz - 1)) < (1ULL << bit_sz); in is_kcfg_value_in_range()
1630 return (v >> bit_sz) == 0; in is_kcfg_value_in_range()
/tools/testing/selftests/bpf/
Dbtf_helpers.c126 __u32 bit_off, bit_sz; in fprintf_btf_type_raw() local
129 bit_sz = btf_member_bitfield_size(t, i); in fprintf_btf_type_raw()
132 if (bit_sz) in fprintf_btf_type_raw()
133 fprintf(out, " bitfield_size=%u", bit_sz); in fprintf_btf_type_raw()
/tools/bpf/bpftool/
Dbtf.c182 __u32 bit_off, bit_sz; in dump_btf_type() local
186 bit_sz = BTF_MEMBER_BITFIELD_SIZE(m->offset); in dump_btf_type()
189 bit_sz = 0; in dump_btf_type()
197 if (bit_sz) { in dump_btf_type()
199 bit_sz); in dump_btf_type()
205 if (bit_sz) in dump_btf_type()
206 printf(" bitfield_size=%u", bit_sz); in dump_btf_type()