Lines Matching refs:str_off

225 	h->str_off = bswap_32(h->str_off);
259 if (meta_left < (long long)hdr->str_off + hdr->str_len) {
264 if ((long long)hdr->type_off + hdr->type_len > hdr->str_off) {
266 hdr->type_off, hdr->type_len, hdr->str_off, hdr->str_len);
460 static int btf_validate_str(const struct btf *btf, __u32 str_off, const char *what, __u32 type_id)
464 s = btf__str_by_offset(btf, str_off);
466 pr_warn("btf: type [%u]: invalid %s (string offset %u)\n", type_id, what, str_off);
1149 btf->strs_data = btf->raw_data + btf->hdr->hdr_len + btf->hdr->str_off;
1917 btf->hdr->str_off += data_sz;
1928 static int btf_rewrite_str(struct btf_pipe *p, __u32 *str_off)
1933 if (!*str_off) /* nothing to do for empty strings */
1937 hashmap__find(p->str_off_map, *str_off, &mapped_off)) {
1938 *str_off = mapped_off;
1942 off = btf__add_str(p->dst, btf__str_by_offset(p->src, *str_off));
1950 err = hashmap__append(p->str_off_map, *str_off, off);
1955 *str_off = off;
1963 __u32 *str_off;
1984 while ((str_off = btf_field_iter_next(&it))) {
1985 err = btf_rewrite_str(p, str_off);
2046 __u32 *type_id, *str_off;
2062 while ((str_off = btf_field_iter_next(&it))) {
2063 err = btf_rewrite_str(&p, str_off);
2098 btf->hdr->str_off += data_sz;
2434 btf->hdr->str_off += sz;
2544 btf->hdr->str_off += sz;
2616 btf->hdr->str_off += sz;
2855 btf->hdr->str_off += sz;
2992 btf->hdr->str_off += sz;
3863 __u32 *str_off;
3869 while ((str_off = btf_field_iter_next(&it))) {
3870 r = fn(str_off, ctx);
3889 __u32 str_off = *str_off_ptr;
3894 if (str_off == 0 || str_off < d->btf->start_str_off)
3897 s = btf__str_by_offset(d->btf, str_off);
5409 d->btf->hdr->str_off = d->btf->hdr->type_len;