Lines Matching refs:sym_off
384 unsigned int sym_off; member
768 unsigned int sym_off; member
4629 reloc_desc->sym_off = sym->st_value; in bpf_program__record_reloc()
4652 reloc_desc->sym_off = sym->st_value; in bpf_program__record_reloc()
4669 reloc_desc->sym_off = sym->st_value; in bpf_program__record_reloc()
4683 reloc_desc->sym_off = sym->st_value; in bpf_program__record_reloc()
4714 reloc_desc->sym_off = 0; /* sym->st_value determines map_idx */ in bpf_program__record_reloc()
4742 reloc_desc->sym_off = sym->st_value; in bpf_program__record_reloc()
6199 static int find_jt_map(struct bpf_object *obj, struct bpf_program *prog, unsigned int sym_off) in find_jt_map() argument
6209 if (obj->jumptable_maps[i].sym_off == sym_off && in find_jt_map()
6217 static int add_jt_map(struct bpf_object *obj, struct bpf_program *prog, unsigned int sym_off, int m… in add_jt_map() argument
6229 obj->jumptable_maps[cnt].sym_off = sym_off; in add_jt_map()
6251 unsigned int sym_off = relo->sym_off; in create_jt_map() local
6262 map_fd = find_jt_map(obj, prog, sym_off); in create_jt_map()
6266 if (sym_off % jt_entry_size) { in create_jt_map()
6268 sym_off, jt_entry_size); in create_jt_map()
6288 if (sym_off + jt_size > obj->jumptables_data_sz) { in create_jt_map()
6290 obj->jumptables_data_sz, sym_off + jt_size); in create_jt_map()
6304 jt = (__u64 *)(obj->jumptables_data + sym_off); in create_jt_map()
6324 (long long)jt[i], sym_off + i * jt_entry_size); in create_jt_map()
6339 err = add_jt_map(obj, prog, sym_off, map_fd); in create_jt_map()
6382 insn[1].imm = insn[0].imm + relo->sym_off; in bpf_object__relocate_data()
6451 prog->name, i, relo->sym_off); in bpf_object__relocate_data()
6756 sub_insn_idx = relo->sym_off / BPF_INSN_SZ + insn->imm + 1; in bpf_object__reloc_code()
6758 sub_insn_idx = (relo->sym_off + insn->imm) / BPF_INSN_SZ; in bpf_object__reloc_code()
12631 long sym_off; in bpf_program__attach_uprobe_opts() local
12634 sym_off = elf_find_func_offset_from_archive(archive_path, binary_path, in bpf_program__attach_uprobe_opts()
12638 sym_off = elf_find_func_offset_from_file(binary_path, func_name); in bpf_program__attach_uprobe_opts()
12640 if (sym_off < 0) in bpf_program__attach_uprobe_opts()
12641 return libbpf_err_ptr(sym_off); in bpf_program__attach_uprobe_opts()
12642 func_offset += sym_off; in bpf_program__attach_uprobe_opts()