Lines Matching refs:funcs
123 size_t arch_unwindStack(pid_t pid, funcs_t* funcs) { in arch_unwindStack() argument
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()
176 size_t arch_unwindStack(pid_t pid, funcs_t* funcs) { in arch_unwindStack() argument
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()
262 size_t symbolsListSz, char** symbolsList, size_t num_frames, funcs_t* funcs) { in arch_btContainsSymbol() argument
264 size_t len = strlen(funcs[frame].func); in arch_btContainsSymbol()
267 if (strlen(funcs[frame].func) > 0) { in arch_btContainsSymbol()
276 if (strncmp(funcs[frame].func, symbolsList[i], len) == 0) { in arch_btContainsSymbol()
277 return funcs[frame].func; in arch_btContainsSymbol()