Lines Matching refs:map
51 void BacktraceMap::FillIn(uint64_t addr, backtrace_map_t* map) { in FillIn() argument
56 *map = *entry; in FillIn()
60 *map = {}; in FillIn()
64 static bool ParseLine(const char* line, backtrace_map_t* map) { in ParseLine() argument
80 map->start = start; in ParseLine()
81 map->end = end; in ParseLine()
82 map->flags = PROT_NONE; in ParseLine()
84 map->flags |= PROT_READ; in ParseLine()
87 map->flags |= PROT_WRITE; in ParseLine()
90 map->flags |= PROT_EXEC; in ParseLine()
93 map->name = line + name_pos; in ParseLine()
94 if (!map->name.empty() && map->name[map->name.length() - 1] == '\n') { in ParseLine()
95 map->name.erase(map->name.length() - 1); in ParseLine()
98 ALOGV("Parsed map: start=%p, end=%p, flags=%x, name=%s", reinterpret_cast<void*>(map->start), in ParseLine()
99 reinterpret_cast<void*>(map->end), map->flags, map->name.c_str()); in ParseLine()
117 backtrace_map_t map; in Build() local
118 if (ParseLine(line, &map)) { in Build()
119 maps_.push_back(map); in Build()
128 backtrace_map_t& map = maps_.back(); in Build()
129 map.start = start; in Build()
130 map.end = end; in Build()
131 map.flags = flags; in Build()
132 map.name = name; in Build()
141 BacktraceMap* map = new BacktraceMap(pid); in Create() local
142 if (!map->Build()) { in Create()
143 delete map; in Create()
146 return map; in Create()