/external/elfutils/0.153/libdwfl/ |
H A D | dwfl_addrdie.c | 53 dwfl_addrdie (Dwfl *dwfl, Dwarf_Addr addr, Dwarf_Addr *bias) argument 55 return INTUSE(dwfl_module_addrdie) (INTUSE(dwfl_addrmodule) (dwfl, addr),
|
H A D | dwfl_addrdwarf.c | 53 dwfl_addrdwarf (Dwfl *dwfl, Dwarf_Addr address, Dwarf_Addr *bias) argument 55 return INTUSE(dwfl_module_getdwarf) (INTUSE(dwfl_addrmodule) (dwfl, address),
|
H A D | dwfl_addrmodule.c | 53 dwfl_addrmodule (Dwfl *dwfl, Dwarf_Addr address) argument 56 (void) INTUSE(dwfl_addrsegment) (dwfl, address, &mod);
|
H A D | dwfl_begin.c | 61 Dwfl *dwfl = calloc (1, sizeof *dwfl); local 62 if (dwfl == NULL) 66 dwfl->callbacks = callbacks; 67 dwfl->offline_next_address = OFFLINE_REDZONE; 70 return dwfl;
|
H A D | dwfl_end.c | 53 dwfl_end (Dwfl *dwfl) argument 55 if (dwfl == NULL) 58 free (dwfl->lookup_addr); 59 free (dwfl->lookup_module); 60 free (dwfl->lookup_segndx); 62 Dwfl_Module *next = dwfl->modulelist; 70 free (dwfl);
|
H A D | dwfl_getsrc.c | 53 dwfl_getsrc (Dwfl *dwfl, Dwarf_Addr addr) argument 55 return INTUSE(dwfl_module_getsrc) (INTUSE(dwfl_addrmodule) (dwfl, addr),
|
H A D | dwfl_getmodules.c | 53 dwfl_getmodules (Dwfl *dwfl, argument 59 if (dwfl == NULL) 70 Dwfl_Module *m = dwfl->modulelist; 81 else if (((offset & 3) == 2) && likely (dwfl->lookup_module != NULL)) 85 if ((size_t) offset - 1 == dwfl->lookup_elts) 88 if (unlikely ((size_t) offset - 1 > dwfl->lookup_elts)) 91 m = dwfl->lookup_module[offset - 1]; 107 return ((dwfl->lookup_module == NULL) ? ((offset << 2) | 1) 108 : (((m == NULL ? (ptrdiff_t) dwfl->lookup_elts + 1
|
H A D | dwfl_nextcu.c | 53 dwfl_nextcu (Dwfl *dwfl, Dwarf_Die *lastcu, Dwarf_Addr *bias) argument 55 if (dwfl == NULL) 63 mod = dwfl->modulelist;
|
H A D | dwfl_validate_address.c | 53 dwfl_validate_address (Dwfl *dwfl, Dwarf_Addr address, Dwarf_Sword offset) argument 55 Dwfl_Module *mod = INTUSE(dwfl_addrmodule) (dwfl, address);
|
H A D | dwfl_getdwarf.c | 71 dwfl_getdwarf (Dwfl *dwfl, argument 79 return INTUSE(dwfl_getmodules) (dwfl, &module_callback, &info, offset);
|
H A D | argp-std.c | 117 inline void failure (Dwfl *dwfl, int errnum, const char *msg) argument 119 if (dwfl != NULL) 120 dwfl_end (dwfl); 127 inline error_t fail (Dwfl *dwfl, int errnum, const char *msg) argument 129 failure (dwfl, errnum, msg); 141 Dwfl *dwfl = state->hook; local 142 if (dwfl == NULL) 144 dwfl = INTUSE(dwfl_begin) (&offline_callbacks); 145 if (dwfl == NULL) 146 return fail (dwfl, 172 Dwfl *dwfl = INTUSE(dwfl_begin) (&proc_callbacks); local 194 Dwfl *dwfl = INTUSE(dwfl_begin) (&proc_callbacks); local 207 Dwfl *dwfl = state->hook; local 250 Dwfl *dwfl = INTUSE(dwfl_begin) (&kernel_callbacks); local 267 Dwfl *dwfl = INTUSE(dwfl_begin) (&offline_callbacks); local 280 Dwfl *dwfl = state->hook; local [all...] |
H A D | segment.c | 53 segment_start (Dwfl *dwfl, GElf_Addr start) argument 55 if (dwfl->segment_align > 1) 56 start &= -dwfl->segment_align; 61 segment_end (Dwfl *dwfl, GElf_Addr end) argument 63 if (dwfl->segment_align > 1) 64 end = (end + dwfl->segment_align - 1) & -dwfl->segment_align; 69 insert (Dwfl *dwfl, size_t i, GElf_Addr start, GElf_Addr end, int segndx) argument 71 bool need_start = (i == 0 || dwfl->lookup_addr[i - 1] != start); 72 bool need_end = (i >= dwfl 145 lookup(Dwfl *dwfl, GElf_Addr address, int hint) argument 172 reify_segments(Dwfl *dwfl) argument 259 dwfl_addrsegment(Dwfl *dwfl, Dwarf_Addr address, Dwfl_Module **mod) argument [all...] |
H A D | dwfl_report_elf.c | 64 __libdwfl_report_elf (Dwfl *dwfl, const char *name, const char *file_name, argument 234 Dwfl_Module *m = INTUSE(dwfl_report_module) (dwfl, name, start, end); 272 dwfl_report_elf (Dwfl *dwfl, const char *name, argument 295 Dwfl_Module *mod = __libdwfl_report_elf (dwfl, name, file_name,
|
H A D | offline.c | 116 static Dwfl_Module *process_elf (Dwfl *dwfl, const char *name, 118 static Dwfl_Module *process_archive (Dwfl *dwfl, const char *name, 126 process_file (Dwfl *dwfl, const char *name, const char *file_name, int fd, argument 138 return process_elf (dwfl, name, file_name, fd, elf); 141 return process_archive (dwfl, name, file_name, fd, elf, predicate); 147 process_elf (Dwfl *dwfl, const char *name, const char *file_name, int fd, argument 150 Dwfl_Module *mod = __libdwfl_report_elf (dwfl, name, file_name, fd, elf, 151 dwfl->offline_next_address, false); 160 if ((dwfl->offline_next_address >= mod->low_addr 161 || mod->low_addr - dwfl 179 process_archive_member(Dwfl *dwfl, const char *name, const char *file_name, int (*predicate) (const char *module, const char *file), int fd, Elf *member, Dwfl_Module **mod) argument 256 process_archive(Dwfl *dwfl, const char *name, const char *file_name, int fd, Elf *archive, int (*predicate) (const char *module, const char *file)) argument 286 __libdwfl_report_offline(Dwfl *dwfl, const char *name, const char *file_name, int fd, bool closefd, int (*predicate) (const char *module, const char *file)) argument 309 dwfl_report_offline(Dwfl *dwfl, const char *name, const char *file_name, int fd) argument [all...] |
H A D | core-file.c | 144 dwfl_report_core_segments (Dwfl *dwfl, Elf *elf, size_t phnum, GElf_Phdr *notes) argument 146 if (unlikely (dwfl == NULL)) 166 result = dwfl_report_segment (dwfl, ndx, phdr, 0, NULL); 251 dwfl_elf_phdr_memory_callback (Dwfl *dwfl, int ndx, argument 269 const GElf_Off align = dwfl->segment_align ?: 1; 406 dwfl_core_file_report (Dwfl *dwfl, Elf *elf) argument 417 int ndx = dwfl_report_core_segments (dwfl, elf, phnum, ¬es_phdr); 426 int seg = dwfl_segment_report_module (dwfl, ndx, NULL, 475 int listed = dwfl_link_map_report (dwfl, auxv, auxv_size,
|
H A D | linux-proc-maps.c | 73 grovel_auxv (pid_t pid, Dwfl *dwfl, GElf_Addr *sysinfo_ehdr) argument 103 if (dwfl->segment_align > 1) 110 && dwfl->segment_align <= 1) 111 dwfl->segment_align = d.a32[i].a_un.a_val; 118 if (dwfl->segment_align > 1) 125 && dwfl->segment_align <= 1) 126 dwfl->segment_align = d.a64[i].a_un.a_val; 142 proc_maps_report (Dwfl *dwfl, FILE *f, GElf_Addr sysinfo_ehdr, pid_t pid) argument 153 Dwfl_Module *mod = INTUSE(dwfl_report_module) (dwfl, last_file, 239 dwfl_linux_proc_maps_report (Dwfl *dwfl, FIL argument [all...] |
H A D | linux-kernel-modules.c | 101 try_kernel_name (Dwfl *dwfl, char **fname, bool try_debug) argument 108 int fd = ((((dwfl->callbacks->debuginfo_path 109 ? *dwfl->callbacks->debuginfo_path : NULL) 116 Dwfl_Module fakemod = { .dwfl = dwfl }; 176 find_kernel_elf (Dwfl *dwfl, const char *release, char **fname) argument 183 int fd = try_kernel_name (dwfl, fname, true); 189 fd = try_kernel_name (dwfl, fname, true); 196 get_release (Dwfl *dwfl, const char **release) argument 198 if (dwfl 215 report_kernel(Dwfl *dwfl, const char **release, int (*predicate) (const char *module, const char *file)) argument 264 report_kernel_archive(Dwfl *dwfl, const char **release, int (*predicate) (const char *module, const char *file)) argument 336 dwfl_linux_kernel_report_offline(Dwfl *dwfl, const char *release, int (*predicate) (const char *module, const char *file)) argument 626 dwfl_linux_kernel_report_kernel(Dwfl *dwfl) argument [all...] |
H A D | dwfl_segment_report_module.c | 79 addr_segndx (Dwfl *dwfl, size_t segment, GElf_Addr addr, bool next) argument 84 if (dwfl->lookup_segndx[segment] >= 0) 85 ndx = dwfl->lookup_segndx[segment]; 86 if (++segment >= dwfl->lookup_elts - 1) 89 while (dwfl->lookup_addr[segment] < addr); 93 while (dwfl->lookup_segndx[segment] < 0) 94 if (++segment >= dwfl->lookup_elts - 1) 96 ndx = dwfl->lookup_segndx[segment]; 103 dwfl_segment_report_module (Dwfl *dwfl, int ndx, const char *name, argument 111 if (segment >= dwfl [all...] |
H A D | libdwflP.h | 156 Dwfl *dwfl; member in struct:Dwfl_Module 326 MOD->dwfl->callbacks->section_address is called to determine the actual 375 extern Dwfl_Module *__libdwfl_report_elf (Dwfl *dwfl, const char *name, 381 extern Dwfl_Module *__libdwfl_report_offline (Dwfl *dwfl, const char *name, 420 typedef bool Dwfl_Memory_Callback (Dwfl *dwfl, int segndx, 435 extern int dwfl_segment_report_module (Dwfl *dwfl, int ndx, const char *name, 454 extern int dwfl_link_map_report (Dwfl *dwfl, const void *auxv, size_t auxv_size,
|
H A D | link_map.c | 157 integrated_memory_callback (Dwfl *dwfl, int ndx, 175 return (*info->memory_callback) (dwfl, ndx, buffer, buffer_available, 186 return (*info->memory_callback) (dwfl, ndx, buffer, buffer_available, 190 if ((*info->memory_callback) (dwfl, ndx, &info->buffer, buffer_available, 200 (void) INTUSE(dwfl_addrsegment) (dwfl, vaddr, &mod); 213 (dwfl, 0, buffer, buffer_available, 261 Dwfl *dwfl, GElf_Addr r_debug_vaddr, 273 (void) (*memory_callback) (dwfl, -1, &buffer, &buffer_available, 0, 0, 291 int segndx = INTUSE(dwfl_addrsegment) (dwfl, vaddr, NULL); 293 || unlikely (! (*memory_callback) (dwfl, segnd 156 integrated_memory_callback(Dwfl *dwfl, int ndx, void **buffer, size_t *buffer_available, GElf_Addr vaddr, size_t minread, void *arg) argument 258 report_r_debug(uint_fast8_t elfclass, uint_fast8_t elfdata, Dwfl *dwfl, GElf_Addr r_debug_vaddr, Dwfl_Memory_Callback *memory_callback, void *memory_callback_arg) argument 605 find_executable(Dwfl *dwfl, GElf_Addr at_phdr, GElf_Addr at_entry, uint_fast8_t *elfclass, uint_fast8_t *elfdata, Dwfl_Memory_Callback *memory_callback, void *memory_callback_arg) argument 626 dwfl_link_map_report(Dwfl *dwfl, const void *auxv, size_t auxv_size, Dwfl_Memory_Callback *memory_callback, void *memory_callback_arg) argument [all...] |
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
H A D | probe-finder.h | 27 Dwfl *dwfl; member in struct:debuginfo
|
/external/ltrace/ |
H A D | proc.h | 123 Dwfl *dwfl; member in struct:process
|
H A D | output.c | 590 Dwfl *dwfl = dwfl_thread_dwfl(dwfl_frame_thread(state)); local 591 Dwfl_Module *mod = dwfl_addrmodule(dwfl, pc); 779 if (options.bt_depth > 0 && proc->leader->dwfl != NULL) { 781 if (dwfl_getthread_frames(proc->leader->dwfl, proc->pid,
|
H A D | proc.c | 111 if (proc->dwfl != NULL) 112 dwfl_end(proc->dwfl); 176 proc->dwfl = NULL; /* Initialize for leader only on first library. */ 898 Dwfl *dwfl = leader->dwfl; local 899 if (dwfl == NULL) { 904 dwfl = dwfl_begin(&proc_callbacks); 905 if (dwfl == NULL) 912 if (dwfl != NULL) { 913 dwfl_report_begin_add(dwfl); [all...] |
/external/elfutils/0.153/src/ |
H A D | addr2line.c | 104 static int handle_address (const char *addr, Dwfl *dwfl); 150 Dwfl *dwfl = NULL; local 151 (void) argp_parse (&argp, argc, argv, 0, &remaining, &dwfl); 152 assert (dwfl != NULL); 168 result = handle_address (buf, dwfl); 176 result = handle_address (argv[remaining], dwfl); 406 adjust_to_section (const char *name, uintmax_t *addr, Dwfl *dwfl) argument 411 if (dwfl_getmodules (dwfl, &see_one_module, &mod, 0) != 0 449 handle_address (const char *string, Dwfl *dwfl) argument 460 parsed = adjust_to_section (name, &addr, dwfl); [all...] |