/system/core/libcorkscrew/arch-mips/ |
H A D | ptrace-mips.c | 24 void load_ptrace_map_info_data_arch(pid_t pid, map_info_t* mi, map_info_data_t* data) { argument 27 void free_ptrace_map_info_data_arch(map_info_t* mi, map_info_data_t* data) { argument
|
/system/core/libcorkscrew/arch-arm/ |
H A D | ptrace-arm.c | 29 static void load_exidx_header(pid_t pid, map_info_t* mi, argument 34 if (try_get_word_ptrace(pid, mi->start + offsetof(Elf32_Ehdr, e_phoff), &elf_phoff) 35 && try_get_word_ptrace(pid, mi->start + offsetof(Elf32_Ehdr, e_ehsize), 37 && try_get_word_ptrace(pid, mi->start + offsetof(Elf32_Ehdr, e_phnum), 42 uintptr_t elf_phdr = mi->start + elf_phoff + i * elf_phentsize; 56 *out_exidx_start = mi->start + elf_phdr_offset; 58 ALOGV("Parsed EXIDX header info for %s: start=0x%08x, size=%d", mi->name, 68 void load_ptrace_map_info_data_arch(pid_t pid, map_info_t* mi, map_info_data_t* data) { argument 69 load_exidx_header(pid, mi, &data->exidx_start, &data->exidx_size); 72 void free_ptrace_map_info_data_arch(map_info_t* mi, map_info_data_ argument [all...] |
H A D | backtrace-arm.c | 130 const map_info_t* mi; local 132 mi = NULL; 135 mi = find_map_info(map_info_list, pc); 136 if (mi && mi->data) { 137 const map_info_data_t* data = (const map_info_data_t*)mi->data; 193 if (mi) { 196 pc, mi->name, mi->start, exidx_start, exidx_size, handler, handler_index);
|
/system/core/libcorkscrew/arch-x86/ |
H A D | ptrace-x86.c | 26 static void load_eh_frame_hdr(pid_t pid, map_info_t* mi, uintptr_t *eh_frame_hdr) { argument 30 if (try_get_word_ptrace(pid, mi->start + offsetof(Elf32_Ehdr, e_phoff), &elf_phoff) 31 && try_get_word_ptrace(pid, mi->start + offsetof(Elf32_Ehdr, e_ehsize), 33 && try_get_word_ptrace(pid, mi->start + offsetof(Elf32_Ehdr, e_phnum), 38 uintptr_t elf_phdr = mi->start + elf_phoff + i * elf_phentsize; 49 *eh_frame_hdr = mi->start + elf_phdr_offset; 50 ALOGV("Parsed .eh_frame_hdr info for %s: start=0x%08x", mi->name, *eh_frame_hdr); 58 void load_ptrace_map_info_data_arch(pid_t pid, map_info_t* mi, map_info_data_t* data) { argument 59 load_eh_frame_hdr(pid, mi, &data->eh_frame_hdr); 62 void free_ptrace_map_info_data_arch(map_info_t* mi __attribute_ [all...] |
H A D | backtrace-x86.c | 248 const map_info_t* mi = find_map_info(map_info_list, pc); local 249 if (!mi) { 253 const map_info_data_t* midata = mi->data; 255 ALOGV("find_fde: no eh_frame_hdr for map: start=0x%x, end=0x%x", mi->start, mi->end);
|
/system/core/libcorkscrew/ |
H A D | ptrace.c | 88 static void load_ptrace_map_info_data(pid_t pid, map_info_t* mi) { argument 89 if (mi->is_executable && mi->is_readable) { 91 if (try_get_word_ptrace(pid, mi->start, &elf_magic) && elf_magic == ELF_MAGIC) { 94 mi->data = data; 95 if (mi->name[0]) { 96 data->symbol_table = load_symbol_table(mi->name); 99 load_ptrace_map_info_data_arch(pid, mi, data); 111 for (map_info_t* mi = context->map_info_list; mi; m 118 free_ptrace_map_info_data(map_info_t* mi) argument 142 const map_info_t* mi = find_map_info(context->map_info_list, addr); local [all...] |
H A D | map_info.c | 51 map_info_t* mi = calloc(1, sizeof(map_info_t) + name_len); local 52 if (mi != NULL) { 53 mi->start = start; 54 mi->end = end; 55 mi->is_readable = permissions[0] == 'r'; 56 mi->is_writable = permissions[1] == 'w'; 57 mi->is_executable = permissions[2] == 'x'; 58 mi->data = NULL; 59 memcpy(mi->name, name, name_len); 60 mi 80 map_info_t* mi = parse_vmmap_line(line); local 116 map_info_t* mi = calloc(1, sizeof(map_info_t) + name_len + 1); local 144 map_info_t* mi = parse_maps_line(line); local 166 const map_info_t* mi = milist; local 174 const map_info_t* mi = find_map_info(milist, addr); local 179 const map_info_t* mi = find_map_info(milist, addr); local 184 const map_info_t* mi = find_map_info(milist, addr); local [all...] |
H A D | backtrace.c | 261 const map_info_t* mi = find_map_info(milist, frame->absolute_pc); local 262 if (mi) { 263 symbol->relative_pc = frame->absolute_pc - mi->start; 264 if (mi->name[0]) { 265 symbol->map_name = strdup(mi->name); 287 const map_info_t* mi; local 289 find_symbol_ptrace(context, frame->absolute_pc, &mi, &s); 290 if (mi) { 291 symbol->relative_pc = frame->absolute_pc - mi->start; 292 if (mi [all...] |
/system/extras/procmem/ |
H A D | procmem.c | 53 struct map_info *mi; local 158 mi = (struct map_info *)calloc(1, sizeof(struct map_info)); 159 if (!mi) { 164 mi->map = maps[i]; 169 error = pm_map_workingset(mi->map, &mi->usage); 171 error = pm_map_usage(mi->map, &mi->usage); 178 pm_memusage_add(&total_usage, &mi->usage); 182 error = pm_map_pagemap(mi [all...] |
/system/extras/showmap/ |
H A D | showmap.c | 40 static int parse_header(const char* line, const mapinfo* prev, mapinfo** mi) { argument 48 *mi = NULL; 83 *mi = info; 87 static int parse_field(mapinfo* mi, const char* line) { argument 96 mi->size = size; 98 mi->rss = size; 100 mi->pss = size; 102 mi->shared_clean = size; 104 mi->shared_dirty = size; 106 mi 245 mapinfo *mi; local [all...] |
/system/extras/librank/ |
H A D | librank.c | 215 struct mapping_info *mi, **mis; local 358 mi = get_mapping(li, pi); 373 pm_memusage_add(&mi->usage, &map_usage); 402 mi = li->mappings[j]; 403 pi = mi->proc; 405 mi->usage.vss / 1024, 406 mi->usage.rss / 1024, 407 mi->usage.pss / 1024, 408 mi->usage.uss / 1024); 410 printf("%6dK ", mi [all...] |
/system/core/debuggerd/ |
H A D | tombstone.c | 258 const map_info_t* mi; local 260 find_symbol_ptrace(context, stack_content, &mi, &symbol); 265 uint32_t offset = stack_content - (mi->start + symbol->start); 269 label, *sp, stack_content, mi ? mi->name : "", symbol_name, offset); 272 label, *sp, stack_content, mi ? mi->name : "", symbol_name); 277 *sp, stack_content, mi ? mi->name : "", symbol_name, offset); 280 *sp, stack_content, mi [all...] |