• Home
  • Raw
  • Download

Lines Matching refs:hdr_len

208 	h->hdr_len = bswap_32(h->hdr_len);  in btf_bswap_hdr()
227 if (bswap_32(hdr->hdr_len) != sizeof(struct btf_header)) { in btf_parse_hdr()
229 bswap_32(hdr->hdr_len)); in btf_parse_hdr()
238 if (btf->raw_size < hdr->hdr_len) { in btf_parse_hdr()
240 hdr->hdr_len, btf->raw_size); in btf_parse_hdr()
244 meta_left = btf->raw_size - hdr->hdr_len; in btf_parse_hdr()
793 btf->hdr->hdr_len = sizeof(struct btf_header); in btf_new_empty()
797 btf->types_data = btf->raw_data + btf->hdr->hdr_len; in btf_new_empty()
798 btf->strs_data = btf->raw_data + btf->hdr->hdr_len; in btf_new_empty()
847 btf->strs_data = btf->raw_data + btf->hdr->hdr_len + btf->hdr->str_off; in btf_new()
848 btf->types_data = btf->raw_data + btf->hdr->hdr_len + btf->hdr->type_off; in btf_new()
1280 data_sz = hdr->hdr_len + hdr->type_len + hdr->str_len; in btf_get_raw_data()
1286 memcpy(p, hdr, hdr->hdr_len); in btf_get_raw_data()
1289 p += hdr->hdr_len; in btf_get_raw_data()
1539 hdr = malloc(btf->hdr->hdr_len); in btf_ensure_modifiable()
1544 memcpy(hdr, btf->hdr, btf->hdr->hdr_len); in btf_ensure_modifiable()
2488 info = btf_ext->data + btf_ext->hdr->hdr_len + ext_sec->off; in btf_ext_setup_info()
2602 if (data_size < offsetofend(struct btf_ext_header, hdr_len) || in btf_ext_parse_hdr()
2603 data_size < hdr->hdr_len) { in btf_ext_parse_hdr()
2626 if (data_size == hdr->hdr_len) { in btf_ext_parse_hdr()
2663 if (btf_ext->hdr->hdr_len < offsetofend(struct btf_ext_header, line_info_len)) { in btf_ext__new()
2676 if (btf_ext->hdr->hdr_len < offsetofend(struct btf_ext_header, core_relo_len)) { in btf_ext__new()
4411 d->btf->raw_size = d->btf->hdr->hdr_len + d->btf->hdr->type_len + d->btf->hdr->str_len; in btf_dedup_compact_types()