Home | History | Annotate | Download | only in libdwfl

Lines Matching refs:mod

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