Lines Matching refs:mi
26 mapinfo *mi; in parse_maps_line() local
35 mi = __real_malloc(sizeof(mapinfo) + (len - 47)); in parse_maps_line()
36 if(mi == 0) return 0; in parse_maps_line()
38 mi->start = strtoul(line, 0, 16); in parse_maps_line()
39 mi->end = strtoul(line + 9, 0, 16); in parse_maps_line()
43 mi->next = 0; in parse_maps_line()
44 strcpy(mi->name, line + 49); in parse_maps_line()
46 return mi; in parse_maps_line()
57 mapinfo *mi = parse_maps_line(data); in init_mapinfo() local
58 if(mi) { in init_mapinfo()
59 mi->next = milist; in init_mapinfo()
60 milist = mi; in init_mapinfo()
69 void deinit_mapinfo(mapinfo *mi) in deinit_mapinfo() argument
72 while(mi) { in deinit_mapinfo()
73 del = mi; in deinit_mapinfo()
74 mi = mi->next; in deinit_mapinfo()
80 const char *map_to_name(mapinfo *mi, unsigned pc, const char* def) in map_to_name() argument
82 while(mi) { in map_to_name()
83 if((pc >= mi->start) && (pc < mi->end)){ in map_to_name()
84 return mi->name; in map_to_name()
86 mi = mi->next; in map_to_name()
92 const mapinfo *pc_to_mapinfo(mapinfo *mi, unsigned pc, unsigned *rel_pc) in pc_to_mapinfo() argument
95 while(mi) { in pc_to_mapinfo()
96 if((pc >= mi->start) && (pc < mi->end)){ in pc_to_mapinfo()
98 if (strstr(mi->name, ".so")) { in pc_to_mapinfo()
99 *rel_pc -= mi->start; in pc_to_mapinfo()
101 return mi; in pc_to_mapinfo()
103 mi = mi->next; in pc_to_mapinfo()