Lines Matching refs:data_sz
1193 __u32 data_sz; in btf_get_raw_data() local
1202 data_sz = hdr->hdr_len + hdr->type_len + hdr->str_len; in btf_get_raw_data()
1203 data = calloc(1, data_sz); in btf_get_raw_data()
1231 *size = data_sz; in btf_get_raw_data()
1241 __u32 data_sz; in btf__raw_data() local
1244 data = btf_get_raw_data(btf, &data_sz, btf->swapped_endian); in btf__raw_data()
1248 btf->raw_size = data_sz; in btf__raw_data()
1253 *size = data_sz; in btf__raw_data()
1570 static int btf_commit_type(struct btf *btf, int data_sz) in btf_commit_type() argument
1578 btf->hdr->type_len += data_sz; in btf_commit_type()
1579 btf->hdr->str_off += data_sz; in btf_commit_type()
1650 int data_sz, sz, cnt, i, err, old_strs_len; in btf__add_btf() local
1667 data_sz = src_btf->hdr->type_len; in btf__add_btf()
1671 t = btf_add_type_mem(btf, data_sz); in btf__add_btf()
1681 memcpy(t, src_btf->types_data, data_sz); in btf__add_btf()
1717 btf->hdr->type_len += data_sz; in btf__add_btf()
1718 btf->hdr->str_off += data_sz; in btf__add_btf()
1727 memset(btf->types_data + btf->hdr->type_len, 0, data_sz); in btf__add_btf()