Lines Matching refs:str_len
217 h->str_len = bswap_32(h->str_len); in btf_bswap_hdr()
250 if (meta_left < (long long)hdr->str_off + hdr->str_len) { in btf_parse_hdr()
257 hdr->type_off, hdr->type_len, hdr->str_off, hdr->str_len); in btf_parse_hdr()
273 const char *end = start + btf->hdr->str_len; in btf_parse_str_sec()
275 if (btf->base_btf && hdr->str_len == 0) in btf_parse_str_sec()
277 if (!hdr->str_len || hdr->str_len - 1 > BTF_MAX_STR_OFFSET || end[-1]) { in btf_parse_str_sec()
796 btf->start_str_off = base_btf->hdr->str_len; in btf_new_empty()
814 btf->hdr->str_len = base_btf ? 0 : 1; /* empty string at offset 0 */ in btf_new_empty()
846 btf->start_str_off = base_btf->hdr->str_len; in btf_new()
1202 data_sz = hdr->hdr_len + hdr->type_len + hdr->str_len; in btf_get_raw_data()
1228 memcpy(p, btf_strs_data(btf), hdr->str_len); in btf_get_raw_data()
1229 p += hdr->str_len; in btf_get_raw_data()
1264 else if (offset - btf->start_str_off < btf->hdr->str_len) in btf__str_by_offset()
1473 set = strset__new(BTF_MAX_STR_OFFSET, btf->strs_data, btf->hdr->str_len); in btf_ensure_modifiable()
1488 if (btf->hdr->str_len == 0) in btf_ensure_modifiable()
1490 if (!btf->base_btf && btf->hdr->str_len == 1) in btf_ensure_modifiable()
1554 btf->hdr->str_len = strset__data_size(btf->strs_set); in btf__add_str()
1665 old_strs_len = btf->hdr->str_len; in btf__add_btf()
1728 memset(btf->strs_data + old_strs_len, 0, btf->hdr->str_len - old_strs_len); in btf__add_btf()
1732 btf->hdr->str_len = old_strs_len; in btf__add_btf()
3322 d->btf->hdr->str_len = strset__data_size(d->strs_set); in btf_dedup_strings()
4463 d->btf->raw_size = d->btf->hdr->hdr_len + d->btf->hdr->type_len + d->btf->hdr->str_len; in btf_dedup_compact_types()