Home
last modified time | relevance | path

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

/linux/tools/lib/bpf/
A Dbtf_dump.c815 int align, i, bit_sz; in btf_is_struct_packed() local
1515 __u8 bit_sz);
1561 __u8 bit_sz, in btf_dump_get_bitfield_value() argument
1602 __u8 bit_sz) in btf_dump_bitfield_check_zero() argument
1619 __u8 bit_sz) in btf_dump_bitfield_data() argument
1914 __u8 bit_sz; in btf_dump_struct_data() local
2087 __u8 bit_sz) in btf_dump_type_data_check_zero() argument
2112 if (bit_sz) in btf_dump_type_data_check_zero()
2195 __u8 bit_sz) in btf_dump_dump_type_data() argument
2230 if (bit_sz) in btf_dump_dump_type_data()
[all …]
A 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()
A Dlibbpf.c1699 int bit_sz = ext->kcfg.sz * 8; in is_kcfg_value_in_range() local
1717 return v + (1ULL << (bit_sz - 1)) < (1ULL << bit_sz); in is_kcfg_value_in_range()
1719 return (v >> bit_sz) == 0; in is_kcfg_value_in_range()
/linux/tools/testing/selftests/bpf/
A Dbtf_helpers.c127 __u32 bit_off, bit_sz; in fprintf_btf_type_raw() local
130 bit_sz = btf_member_bitfield_size(t, i); in fprintf_btf_type_raw()
133 if (bit_sz) in fprintf_btf_type_raw()
134 fprintf(out, " bitfield_size=%u", bit_sz); in fprintf_btf_type_raw()
/linux/tools/bpf/bpftool/
A Dbtf.c179 __u32 bit_off, bit_sz; in dump_btf_type() local
183 bit_sz = BTF_MEMBER_BITFIELD_SIZE(m->offset); in dump_btf_type()
186 bit_sz = 0; in dump_btf_type()
194 if (bit_sz) { in dump_btf_type()
196 bit_sz); in dump_btf_type()
202 if (bit_sz) in dump_btf_type()
203 printf(" bitfield_size=%u", bit_sz); in dump_btf_type()

Completed in 31 milliseconds