Searched refs:byte_sz (Results 1 – 3 of 3) sorted by relevance
/third_party/libbpf/src/ |
D | relo_core.c | 686 __u32 byte_off, byte_sz, bit_off, bit_sz, field_type_id; in bpf_core_calc_field_relo() local 737 byte_sz = mt->size; in bpf_core_calc_field_relo() 738 byte_off = bit_off / 8 / byte_sz * byte_sz; in bpf_core_calc_field_relo() 740 while (bit_off + bit_sz - byte_off * 8 > byte_sz * 8) { in bpf_core_calc_field_relo() 741 if (byte_sz >= 8) { in bpf_core_calc_field_relo() 747 byte_sz *= 2; in bpf_core_calc_field_relo() 748 byte_off = bit_off / 8 / byte_sz * byte_sz; in bpf_core_calc_field_relo() 754 byte_sz = sz; in bpf_core_calc_field_relo() 756 bit_sz = byte_sz * 8; in bpf_core_calc_field_relo() 770 *field_sz = byte_sz; in bpf_core_calc_field_relo() [all …]
|
D | btf.c | 1870 int btf__add_int(struct btf *btf, const char *name, size_t byte_sz, int encoding) argument 1879 if (!byte_sz || (byte_sz & (byte_sz - 1)) || byte_sz > 16) 1903 t->size = byte_sz; 1905 *(__u32 *)(t + 1) = (encoding << 24) | (byte_sz * 8); 1918 int btf__add_float(struct btf *btf, const char *name, size_t byte_sz) argument 1928 if (byte_sz != 2 && byte_sz != 4 && byte_sz != 8 && byte_sz != 12 && 1929 byte_sz != 16) 1946 t->size = byte_sz; 2084 int btf__add_struct(struct btf *btf, const char *name, __u32 byte_sz) argument 2086 return btf_add_composite(btf, BTF_KIND_STRUCT, name, byte_sz); [all …]
|
D | btf.h | 176 LIBBPF_API int btf__add_int(struct btf *btf, const char *name, size_t byte_sz, int encoding); 177 LIBBPF_API int btf__add_float(struct btf *btf, const char *name, size_t byte_sz); 214 LIBBPF_API int btf__add_datasec(struct btf *btf, const char *name, __u32 byte_sz); 216 __u32 offset, __u32 byte_sz);
|