/system/core/debuggerd/ |
H A D | tombstone.c | 228 const map_info_t* mi; local 230 find_symbol_ptrace(context, stack_content, &mi, &symbol); 235 uint32_t offset = stack_content - (mi->start + symbol->start); 239 label, *sp, stack_content, mi ? mi->name : "", symbol_name, offset); 242 label, *sp, stack_content, mi ? mi->name : "", symbol_name); 247 *sp, stack_content, mi ? mi->name : "", symbol_name, offset); 250 *sp, stack_content, mi [all...] |
/system/core/libcorkscrew/arch-arm/ |
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);
|
H A D | ptrace-arm.c | 29 static void load_exidx_header(pid_t pid, map_info_t* mi, argument 33 if (try_get_word_ptrace(pid, mi->start + offsetof(Elf32_Ehdr, e_phoff), &elf_phoff) 34 && try_get_word_ptrace(pid, mi->start + offsetof(Elf32_Ehdr, e_phnum), 39 uintptr_t elf_phdr = mi->start + elf_phoff + i * elf_phentsize; 53 *out_exidx_start = mi->start + elf_phdr_offset; 55 ALOGV("Parsed EXIDX header info for %s: start=0x%08x, size=%d", mi->name, 65 void load_ptrace_map_info_data_arch(pid_t pid, map_info_t* mi, map_info_data_t* data) { argument 66 load_exidx_header(pid, mi, &data->exidx_start, &data->exidx_size); 69 void free_ptrace_map_info_data_arch(map_info_t* mi, map_info_data_t* data) { argument
|
/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/ |
H A D | backtrace.c | 253 const map_info_t* mi = find_map_info(milist, frame->absolute_pc); local 254 if (mi) { 255 symbol->relative_pc = frame->absolute_pc - mi->start; 256 if (mi->name[0]) { 257 symbol->map_name = strdup(mi->name); 281 const map_info_t* mi; local 283 find_symbol_ptrace(context, frame->absolute_pc, &mi, &s); 284 if (mi) { 285 symbol->relative_pc = frame->absolute_pc - mi->start; 286 if (mi [all...] |
H A D | map_info.c | 55 map_info_t* mi = calloc(1, sizeof(map_info_t) + name_len + 1); local 56 if (mi) { 57 mi->start = start; 58 mi->end = end; 59 mi->is_readable = strlen(permissions) == 4 && permissions[0] == 'r'; 60 mi->is_executable = strlen(permissions) == 4 && permissions[2] == 'x'; 61 mi->data = NULL; 62 memcpy(mi->name, name, name_len); 63 mi->name[name_len] = '\0'; 66 mi 81 map_info_t* mi = parse_maps_line(line); local 101 const map_info_t* mi = milist; local 109 const map_info_t* mi = find_map_info(milist, addr); local 114 const map_info_t* mi = find_map_info(milist, addr); local [all...] |
H A D | ptrace.c | 83 static void load_ptrace_map_info_data(pid_t pid, map_info_t* mi) { argument 84 if (mi->is_executable && mi->is_readable) { 86 if (try_get_word_ptrace(pid, mi->start, &elf_magic) && elf_magic == ELF_MAGIC) { 89 mi->data = data; 90 if (mi->name[0]) { 91 data->symbol_table = load_symbol_table(mi->name); 94 load_ptrace_map_info_data_arch(pid, mi, data); 106 for (map_info_t* mi = context->map_info_list; mi; m 113 free_ptrace_map_info_data(map_info_t* mi) argument 136 const map_info_t* mi = find_map_info(context->map_info_list, addr); local [all...] |
/system/extras/librank/ |
H A D | librank.c | 182 struct mapping_info *mi, **mis; local 254 mi = get_mapping(li, pi); 263 pm_memusage_add(&mi->usage, &map_usage); 282 mi = li->mappings[j]; 283 pi = mi->proc; 285 mi->usage.vss / 1024, 286 mi->usage.rss / 1024, 287 mi->usage.pss / 1024, 288 mi->usage.uss / 1024,
|
/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...] |