Lines Matching refs:mod
32 found_build_id (Dwfl_Module *mod, bool set, in found_build_id() argument
39 return 1 + (mod->build_id_len == len in found_build_id()
40 && !memcmp (bits, mod->build_id_bits, len)); in found_build_id()
49 mod->build_id_bits = memcpy (copy, bits, len); in found_build_id()
50 mod->build_id_vaddr = vaddr; in found_build_id()
51 mod->build_id_len = len; in found_build_id()
57 __libdwfl_find_build_id (Dwfl_Module *mod, bool set, Elf *elf) in __libdwfl_find_build_id() argument
64 assert (mod != NULL); in __libdwfl_find_build_id()
66 int result = __libdwfl_find_elf_build_id (mod, elf, &build_id_bits, in __libdwfl_find_build_id()
72 ? mod->main_bias : 0); in __libdwfl_find_build_id()
73 return found_build_id (mod, set, build_id_bits, build_id_len, build_id_vaddr); in __libdwfl_find_build_id()
77 dwfl_module_build_id (Dwfl_Module *mod, in dwfl_module_build_id() argument
80 if (mod == NULL) in dwfl_module_build_id()
83 if (mod->build_id_len == 0 && mod->main.elf != NULL) in dwfl_module_build_id()
86 int result = __libdwfl_find_build_id (mod, true, mod->main.elf); in dwfl_module_build_id()
89 mod->build_id_len = -1; /* Cache negative result. */ in dwfl_module_build_id()
94 if (mod->build_id_len <= 0) in dwfl_module_build_id()
97 *bits = mod->build_id_bits; in dwfl_module_build_id()
98 *vaddr = mod->build_id_vaddr; in dwfl_module_build_id()
99 return mod->build_id_len; in dwfl_module_build_id()
108 _compat_vaddr_at_end_dwfl_module_build_id (Dwfl_Module *mod, in _compat_vaddr_at_end_dwfl_module_build_id() argument
112 int result = INTUSE(dwfl_module_build_id) (mod, bits, vaddr); in _compat_vaddr_at_end_dwfl_module_build_id()