Home
last modified time | relevance | path

Searched refs:libsym (Results 1 – 17 of 17) sorted by relevance

/external/ltrace/sysdeps/linux-gnu/ppc/
Dplt.c152 mark_as_resolved(struct library_symbol *libsym, GElf_Addr value) in mark_as_resolved() argument
154 libsym->arch.type = PPC_PLT_RESOLVED; in mark_as_resolved()
155 libsym->arch.resolved_value = value; in mark_as_resolved()
159 ppc32_delayed_symbol(struct library_symbol *libsym) in ppc32_delayed_symbol() argument
184 uint32_t insn1 = libsym->arch.resolved_value >> 32; in ppc32_delayed_symbol()
185 uint32_t insn2 = (uint32_t) libsym->arch.resolved_value; in ppc32_delayed_symbol()
189 && (ppc_branch_dest(libsym->enter_addr + 4, insn2) in ppc32_delayed_symbol()
190 == (arch_addr_t) (long) libsym->lib->arch.pltgot_addr))) in ppc32_delayed_symbol()
192 mark_as_resolved(libsym, libsym->arch.resolved_value); in ppc32_delayed_symbol()
200 struct library_symbol *libsym = NULL; in arch_dynlink_done() local
[all …]
/external/ltrace/
Dlibrary.c74 os_library_symbol_init(struct library_symbol *libsym) in os_library_symbol_init() argument
80 os_library_symbol_destroy(struct library_symbol *libsym) in os_library_symbol_destroy() argument
86 struct library_symbol *libsym) in os_library_symbol_clone() argument
94 arch_library_symbol_init(struct library_symbol *libsym) in arch_library_symbol_init() argument
100 arch_library_symbol_destroy(struct library_symbol *libsym) in arch_library_symbol_destroy() argument
106 struct library_symbol *libsym) in arch_library_symbol_clone() argument
148 private_library_symbol_init(struct library_symbol *libsym, in private_library_symbol_init() argument
154 libsym->next = NULL; in private_library_symbol_init()
155 libsym->lib = NULL; in private_library_symbol_init()
156 libsym->plt_type = type_of_plt; in private_library_symbol_init()
[all …]
Dbreakpoints.c166 arch_addr_t addr, struct library_symbol *libsym) in breakpoint_init_base() argument
172 bp->libsym = libsym; in breakpoint_init_base()
181 arch_addr_t addr, struct library_symbol *libsym) in breakpoint_init() argument
183 breakpoint_init_base(bp, addr, libsym); in breakpoint_init()
214 struct library_symbol *libsym = NULL; in breakpoint_clone() local
215 if (bp->libsym != NULL) { in breakpoint_clone()
216 int rc = proc_find_symbol(new_proc, bp->libsym, NULL, &libsym); in breakpoint_clone()
220 breakpoint_init_base(retp, bp->addr, libsym); in breakpoint_clone()
270 struct library_symbol *libsym) in insert_breakpoint_at() argument
274 proc->pid, addr, libsym ? libsym->name : "NULL"); in insert_breakpoint_at()
[all …]
Dltrace-elf.c739 struct library_symbol *libsym = malloc(sizeof(*libsym)); in default_elf_add_plt_entry() local
740 if (libsym == NULL) in default_elf_add_plt_entry()
748 if (library_symbol_init(libsym, taddr, name, 1, LS_TOPLT_EXEC) < 0) { in default_elf_add_plt_entry()
749 free(libsym); in default_elf_add_plt_entry()
753 libsym->next = *ret; in default_elf_add_plt_entry()
754 *ret = libsym; in default_elf_add_plt_entry()
784 mark_chain_latent(struct library_symbol *libsym) in mark_chain_latent() argument
786 for (; libsym != NULL; libsym = libsym->next) { in mark_chain_latent()
787 debug(DEBUG_FUNCTION, "marking %s latent", libsym->name); in mark_chain_latent()
788 libsym->latent = 1; in mark_chain_latent()
[all …]
Dproc.c773 breakpoint_for_symbol(struct library_symbol *libsym, struct process *proc) in breakpoint_for_symbol() argument
779 if (libsym->latent || libsym->delayed) { in breakpoint_for_symbol()
782 proc->pid, libsym->name, libsym->enter_addr); in breakpoint_for_symbol()
786 bp_addr = sym2addr(proc, libsym); in breakpoint_for_symbol()
815 assert(bp->libsym == NULL); in breakpoint_for_symbol()
816 bp->libsym = libsym; in breakpoint_for_symbol()
823 || breakpoint_init(bp, proc, bp_addr, libsym) < 0) { in breakpoint_for_symbol()
843 cb_breakpoint_for_symbol(struct library_symbol *libsym, void *data) in cb_breakpoint_for_symbol() argument
845 return CBS_STOP_IF(breakpoint_for_symbol(libsym, data) < 0); in cb_breakpoint_for_symbol()
850 struct library_symbol *libsym) in proc_activate_latent_symbol() argument
[all …]
Doutput.c235 lookup_symbol_prototype(struct process *proc, struct library_symbol *libsym) in lookup_symbol_prototype() argument
237 if (libsym->proto != NULL) in lookup_symbol_prototype()
238 return libsym->proto; in lookup_symbol_prototype()
240 struct library *lib = libsym->lib; in lookup_symbol_prototype()
242 struct find_proto_data data = { libsym->name }; in lookup_symbol_prototype()
243 data.ret = library_get_prototype(lib, libsym->name); in lookup_symbol_prototype()
245 && libsym->plt_type == LS_TOPLT_EXEC) in lookup_symbol_prototype()
496 struct library_symbol *libsym) in output_left() argument
507 if (!options.hide_caller && libsym->lib != NULL in output_left()
508 && libsym->plt_type != LS_TOPLT_NONE) in output_left()
[all …]
Dlibrary.h79 int library_symbol_init(struct library_symbol *libsym,
102 void library_symbol_set_name(struct library_symbol *libsym,
108 enum callback_status library_symbol_equal_cb(struct library_symbol *libsym,
113 enum callback_status library_symbol_named_cb(struct library_symbol *libsym,
118 enum callback_status library_symbol_delayed_cb(struct library_symbol *libsym,
Dbackend.h270 int os_library_symbol_init(struct library_symbol *libsym);
271 void os_library_symbol_destroy(struct library_symbol *libsym);
273 struct library_symbol *libsym);
280 int arch_library_symbol_init(struct library_symbol *libsym);
281 void arch_library_symbol_destroy(struct library_symbol *libsym);
283 struct library_symbol *libsym);
378 void arch_symbol_ret(struct process *proc, struct library_symbol *libsym);
Dhandle_event.c423 init_syscall_symbol(struct library_symbol *libsym, const char *name) in init_syscall_symbol() argument
457 if (library_symbol_init(libsym, 0, name, 0, LS_TOPLT_NONE) < 0) in init_syscall_symbol()
460 libsym->lib = &syscall_lib; in init_syscall_symbol()
481 struct library_symbol syscall, *libsym = NULL; in account_current_callstack() local
485 libsym = &syscall; in account_current_callstack()
488 libsym = elem->c_un.libfunc; in account_current_callstack()
491 if (libsym != NULL) { in account_current_callstack()
492 summary_account_call(libsym, spent[i]); in account_current_callstack()
671 void arch_symbol_ret(struct process *proc, struct library_symbol *libsym) in arch_symbol_ret() argument
699 struct library_symbol *libsym = in handle_breakpoint() local
[all …]
Dbreakpoint.h64 struct library_symbol *libsym; member
104 arch_addr_t addr, struct library_symbol *libsym);
135 struct library_symbol *libsym);
Doutput.h29 struct library_symbol *libsym);
31 struct library_symbol *libsym,
Dsummary.c155 summary_account_call(struct library_symbol *libsym, struct timedelta spent) in summary_account_call() argument
174 struct opt_c_struct *st = DICT_FIND_REF(dict_opt_c, &libsym->name, in summary_account_call()
177 const char *na = strdup(libsym->name); in summary_account_call()
187 st = DICT_FIND_REF(dict_opt_c, &libsym->name, in summary_account_call()
Dsummary.h31 void summary_account_call(struct library_symbol *libsym,
Dproc.h218 struct library_symbol *libsym);
DNEWS80 | ./ltrace: proc.c: 755: breakpoint_for_symbol: Assertion `bp->libsym == ((void *)0)' failed.
/external/ltrace/sysdeps/linux-gnu/mips/
Dplt.c254 void arch_symbol_ret(struct process *proc, struct library_symbol *libsym) in arch_symbol_ret() argument
261 if (libsym->arch.type != MIPS_PLT_UNRESOLVED) in arch_symbol_ret()
265 if (libsym->arch.pltalways) in arch_symbol_ret()
268 resolved_addr = sym2addr(proc, libsym); in arch_symbol_ret()
269 libsym->arch.resolved_addr = (uintptr_t) resolved_addr; in arch_symbol_ret()
270 libsym->arch.type = MIPS_PLT_RESOLVED; in arch_symbol_ret()
272 if (libsym->arch.stub_addr == libsym->arch.resolved_addr) { in arch_symbol_ret()
280 libsym->name); in arch_symbol_ret()
284 if (breakpoint_init(bp, leader, resolved_addr, libsym) < 0) in arch_symbol_ret()
303 cb_enable_breakpoint_sym(struct library_symbol *libsym, void *data) in cb_enable_breakpoint_sym() argument
[all …]
/external/ltrace/sysdeps/linux-gnu/
Dtrace.c1307 os_library_symbol_init(struct library_symbol *libsym) in os_library_symbol_init() argument
1309 libsym->os = (struct os_library_symbol_data){}; in os_library_symbol_init()
1314 os_library_symbol_destroy(struct library_symbol *libsym) in os_library_symbol_destroy() argument
1320 struct library_symbol *libsym) in os_library_symbol_clone() argument
1322 retp->os = libsym->os; in os_library_symbol_clone()
1377 libsym_at_address(struct library_symbol *libsym, void *addrp) in libsym_at_address() argument
1380 return CBS_STOP_IF(addr == libsym->enter_addr); in libsym_at_address()
1393 struct library_symbol *libsym = NULL; in ifunc_ret_hit() local
1434 libsym = library_each_symbol(lib, NULL, libsym_at_address, &u.a); in ifunc_ret_hit()
1435 if (libsym == NULL) { in ifunc_ret_hit()
[all …]