Lines Matching defs:off
1756 int off;
1759 off = btf__find_str(btf->base_btf, s);
1760 if (off != -ENOENT)
1761 return off;
1768 off = strset__find_str(btf->strs_set, s);
1769 if (off < 0)
1770 return libbpf_err(off);
1772 return btf->start_str_off + off;
1782 int off;
1785 off = btf__find_str(btf->base_btf, s);
1786 if (off != -ENOENT)
1787 return off;
1793 off = strset__add_str(btf->strs_set, s);
1794 if (off < 0)
1795 return libbpf_err(off);
1799 return btf->start_str_off + off;
1837 int off, err;
1848 off = btf__add_str(p->dst, btf__str_by_offset(p->src, *str_off));
1849 if (off < 0)
1850 return off;
1856 err = hashmap__append(p->str_off_map, *str_off, off);
1861 *str_off = off;
1914 __u32 *off;
1939 off = btf_add_type_offs_mem(btf, cnt);
1940 if (!off)
1960 *off = t - btf->types_data;
1974 off++;
2910 __u32 off;
2930 if (ext_sec->off & 0x03) {
2936 info = btf_ext->data + btf_ext->hdr->hdr_len + ext_sec->off;
2940 pr_debug("%s section (off:%u len:%u) is beyond the end of the ELF section .BTF.ext\n",
2941 ext_sec->desc, ext_sec->off, ext_sec->len);
3011 .off = btf_ext->hdr->func_info_off,
3024 .off = btf_ext->hdr->line_info_off,
3037 .off = btf_ext->hdr->core_relo_off,
3565 int off, err;
3582 off = strset__add_str(d->strs_set, s);
3583 if (off < 0)
3584 return off;
3586 *str_off_ptr = d->btf->start_str_off + off;