Lines Matching refs:data_sz
1248 __u32 data_sz; in btf_get_raw_data() local
1257 data_sz = hdr->hdr_len + hdr->type_len + hdr->str_len; in btf_get_raw_data()
1258 data = calloc(1, data_sz); in btf_get_raw_data()
1286 *size = data_sz; in btf_get_raw_data()
1296 __u32 data_sz; in btf__raw_data() local
1299 data = btf_get_raw_data(btf, &data_sz, btf->swapped_endian); in btf__raw_data()
1303 btf->raw_size = data_sz; in btf__raw_data()
1308 *size = data_sz; in btf__raw_data()
1539 static int btf_commit_type(struct btf *btf, int data_sz) in btf_commit_type() argument
1547 btf->hdr->type_len += data_sz; in btf_commit_type()
1548 btf->hdr->str_off += data_sz; in btf_commit_type()
1639 int data_sz, sz, cnt, i, err, old_strs_len; in btf__add_btf() local
1656 data_sz = src_btf->hdr->type_len; in btf__add_btf()
1660 t = btf_add_type_mem(btf, data_sz); in btf__add_btf()
1675 memcpy(t, src_btf->types_data, data_sz); in btf__add_btf()
1711 btf->hdr->type_len += data_sz; in btf__add_btf()
1712 btf->hdr->str_off += data_sz; in btf__add_btf()
1723 memset(btf->types_data + btf->hdr->type_len, 0, data_sz); in btf__add_btf()