Lines Matching refs:layout_len
282 h->layout_len = bswap_32(h->layout_len); in btf_bswap_hdr()
357 if (btf->hdr.layout_len == 0) in btf_parse_hdr()
368 btf->hdr.layout_off, btf->hdr.layout_len); in btf_parse_hdr()
371 if ((long long)btf->hdr.layout_off + btf->hdr.layout_len > btf->hdr.str_off || in btf_parse_hdr()
374 btf->hdr.layout_off, btf->hdr.layout_len, btf->hdr.str_off); in btf_parse_hdr()
400 if (!btf->hdr.layout_len) in btf_parse_layout_sec()
403 if (btf->hdr.layout_len % sizeof(struct btf_layout) != 0) { in btf_parse_layout_sec()
410 struct btf_layout *l, *end = btf->layout + btf->hdr.layout_len; in btf_parse_layout_sec()
422 __u32 l_cnt = btf->hdr.layout_len / sizeof(struct btf_layout); in btf_type_size_unknown()
433 l_cnt = base_btf->hdr.layout_len / sizeof(struct btf_layout); in btf_type_size_unknown()
1262 hdr->layout_len = sizeof(layouts); in btf_new_empty()
1809 data_sz += hdr->layout_len; in btf_get_raw_data()
1837 memcpy(p, btf->layout, hdr->layout_len); in btf_get_raw_data()
1839 struct btf_layout *l, *end = p + hdr->layout_len; in btf_get_raw_data()
1844 p += hdr->layout_len; in btf_get_raw_data()
2016 if (btf->hdr.layout_len) { in btf_ensure_modifiable()
2017 layout = malloc(btf->hdr.layout_len); in btf_ensure_modifiable()
2021 btf->hdr.layout_len); in btf_ensure_modifiable()
2137 btf->hdr.str_off = btf->hdr.layout_off + btf->hdr.layout_len; in btf_hdr_update_type_len()
5698 d->btf->hdr.str_off = d->btf->hdr.type_off + d->btf->hdr.type_len + d->btf->hdr.layout_len; in btf_dedup_compact_types()
5700 d->btf->hdr.layout_len + d->btf->hdr.str_len; in btf_dedup_compact_types()