Lines Matching refs:num_frames

124     size_t num_frames = 0, mapsCnt = 0;  in arch_unwindStack()  local
133 return num_frames; in arch_unwindStack()
142 return num_frames; in arch_unwindStack()
152 return num_frames; in arch_unwindStack()
155 for (num_frames = 0; unw_step(&c) > 0 && num_frames < _HF_MAX_FUNCS; num_frames++) { in arch_unwindStack()
160 LOG_E("[pid='%d'] [%zd] failed to read IP (%s)", pid, num_frames, UNW_ER[-ret]); in arch_unwindStack()
161 funcs[num_frames].pc = 0; in arch_unwindStack()
163 funcs[num_frames].pc = (void*)(uintptr_t)ip; in arch_unwindStack()
166 memcpy(funcs[num_frames].mapName, mapName, sizeof(funcs[num_frames].mapName)); in arch_unwindStack()
168 strncpy(funcs[num_frames].mapName, "UNKNOWN", sizeof(funcs[num_frames].mapName)); in arch_unwindStack()
172 return num_frames; in arch_unwindStack()
177 size_t num_frames = 0, mapsCnt = 0; in arch_unwindStack() local
186 return num_frames; in arch_unwindStack()
195 return num_frames; in arch_unwindStack()
205 return num_frames; in arch_unwindStack()
215 LOG_E("[pid='%d'] [%zd] failed to read IP (%s)", pid, num_frames, UNW_ER[-ret]); in arch_unwindStack()
224 LOG_D("[pid='%d'] [%zd] unw_get_proc_info (%s)", pid, num_frames, UNW_ER[-ret]); in arch_unwindStack()
232 "[pid='%d'] [%zd] unw_get_proc_name() failed (%s)", pid, num_frames, UNW_ER[-ret]); in arch_unwindStack()
239 funcs[num_frames].line = offset; in arch_unwindStack()
240 funcs[num_frames].pc = (void*)pc; in arch_unwindStack()
241 memcpy(funcs[num_frames].func, buf, sizeof(funcs[num_frames].func)); in arch_unwindStack()
243 memcpy(funcs[num_frames].mapName, mapName, sizeof(funcs[num_frames].mapName)); in arch_unwindStack()
245 strncpy(funcs[num_frames].mapName, "UNKNOWN", sizeof(funcs[num_frames].mapName)); in arch_unwindStack()
248 num_frames++; in arch_unwindStack()
251 } while (ret > 0 && num_frames < _HF_MAX_FUNCS); in arch_unwindStack()
253 return num_frames; in arch_unwindStack()
262 size_t symbolsListSz, char** symbolsList, size_t num_frames, funcs_t* funcs) { in arch_btContainsSymbol() argument
263 for (size_t frame = 0; frame < num_frames; frame++) { in arch_btContainsSymbol()