Lines Matching refs:mod
53 found_build_id (Dwfl_Module *mod, bool set, in found_build_id() argument
60 return 1 + (mod->build_id_len == len in found_build_id()
61 && !memcmp (bits, mod->build_id_bits, len)); in found_build_id()
70 mod->build_id_bits = memcpy (copy, bits, len); in found_build_id()
71 mod->build_id_vaddr = vaddr; in found_build_id()
72 mod->build_id_len = len; in found_build_id()
79 check_notes (Dwfl_Module *mod, bool set, Elf_Data *data, GElf_Addr data_vaddr) in check_notes() argument
89 return found_build_id (mod, set, in check_notes()
98 __libdwfl_find_build_id (Dwfl_Module *mod, bool set, Elf *elf) in __libdwfl_find_build_id() argument
119 result = check_notes (mod, set, in __libdwfl_find_build_id()
124 phdr->p_vaddr + mod->main.bias); in __libdwfl_find_build_id()
133 result = check_notes (mod, set, elf_getdata (scn, NULL), in __libdwfl_find_build_id()
135 ? shdr->sh_addr + mod->main.bias : NO_VADDR); in __libdwfl_find_build_id()
145 __dwfl_module_build_id (Dwfl_Module *mod,
149 dwfl_module_build_id (Dwfl_Module *mod, in dwfl_module_build_id() argument
154 if (mod == NULL) in dwfl_module_build_id()
157 if (mod->build_id_len == 0 && mod->main.elf != NULL) in dwfl_module_build_id()
160 int result = __libdwfl_find_build_id (mod, true, mod->main.elf); in dwfl_module_build_id()
163 mod->build_id_len = -1; /* Cache negative result. */ in dwfl_module_build_id()
168 if (mod->build_id_len <= 0) in dwfl_module_build_id()
171 *bits = mod->build_id_bits; in dwfl_module_build_id()
172 *vaddr = mod->build_id_vaddr; in dwfl_module_build_id()
173 return mod->build_id_len; in dwfl_module_build_id()
184 _BUG_COMPAT_dwfl_module_build_id (Dwfl_Module *mod,
187 int result = INTUSE(dwfl_module_build_id) (mod, bits, vaddr);