Lines Matching refs:str_off
362 int err, str_off; in init_output_elf() local
410 str_off = strset__add_str(linker->strtab_strs, sec->sec_name); in init_output_elf()
411 if (str_off < 0) in init_output_elf()
412 return str_off; in init_output_elf()
418 sec->shdr->sh_name = str_off; in init_output_elf()
451 str_off = strset__add_str(linker->strtab_strs, sec->sec_name); in init_output_elf()
452 if (str_off < 0) in init_output_elf()
453 return str_off; in init_output_elf()
458 sec->shdr->sh_name = str_off; in init_output_elf()
1074 static int check_btf_str_off(__u32 *str_off, void *ctx) in check_btf_str_off() argument
1079 s = btf__str_by_offset(btf, *str_off); in check_btf_str_off()
1098 __u32 *type_id, *str_off; in linker_sanity_check_btf() local
1113 while ((str_off = btf_field_iter_next(&it))) { in linker_sanity_check_btf()
1114 if (!btf__str_by_offset(obj->btf, *str_off)) in linker_sanity_check_btf()
2634 int rec_sz, str_off, i; in linker_append_btf_ext() local
2695 str_off = btf__add_str(linker->btf, s); in linker_append_btf_ext()
2696 if (str_off < 0) in linker_append_btf_ext()
2698 dst_rec->file_name_off = str_off; in linker_append_btf_ext()
2701 str_off = btf__add_str(linker->btf, s); in linker_append_btf_ext()
2702 if (str_off < 0) in linker_append_btf_ext()
2704 dst_rec->line_off = str_off; in linker_append_btf_ext()
2738 str_off = btf__add_str(linker->btf, s); in linker_append_btf_ext()
2739 if (str_off < 0) in linker_append_btf_ext()
2741 dst_rec->access_str_off = str_off; in linker_append_btf_ext()
2944 int str_off; in emit_btf_ext_data() local
2950 str_off = btf__add_str(linker->btf, sec_name); in emit_btf_ext_data()
2951 if (str_off < 0) in emit_btf_ext_data()
2955 sec_info->sec_name_off = str_off; in emit_btf_ext_data()