Lines Matching full:stack
15 char **stack; member
53 static void add_child(struct func_stack *stack, const char *child, int pos) in add_child() argument
60 if (pos < stack->size) in add_child()
61 free(stack->stack[pos]); in add_child()
65 ptr = realloc(stack->stack, sizeof(char *) * in add_child()
66 (stack->size + STK_BLK)); in add_child()
72 stack->stack = ptr; in add_child()
74 for (i = stack->size; i < stack->size + STK_BLK; i++) in add_child()
75 stack->stack[i] = NULL; in add_child()
76 stack->size += STK_BLK; in add_child()
79 stack->stack[pos] = strdup(child); in add_child()
106 for (i = 0; i < fstack[cpu].size && fstack[cpu].stack[i]; i++) { in add_and_get_index()
107 if (strcmp(parent, fstack[cpu].stack[i]) == 0) { in add_and_get_index()
188 trace_seq_puts(s, "<stack trace >\n"); in trace_stack_handler()
272 for (x = 0; x < fstack[i].size && fstack[i].stack[x]; x++) in TEP_PLUGIN_UNLOADER()
273 free(fstack[i].stack[x]); in TEP_PLUGIN_UNLOADER()
274 free(fstack[i].stack); in TEP_PLUGIN_UNLOADER()