Lines Matching refs:stack
30 char **stack; member
60 static void add_child(struct func_stack *stack, const char *child, int pos) in add_child() argument
67 if (pos < stack->size) in add_child()
68 free(stack->stack[pos]); in add_child()
72 ptr = realloc(stack->stack, sizeof(char *) * in add_child()
73 (stack->size + STK_BLK)); in add_child()
79 stack->stack = ptr; in add_child()
81 for (i = stack->size; i < stack->size + STK_BLK; i++) in add_child()
82 stack->stack[i] = NULL; in add_child()
83 stack->size += STK_BLK; in add_child()
86 stack->stack[pos] = strdup(child); in add_child()
113 for (i = 0; i < fstack[cpu].size && fstack[cpu].stack[i]; i++) { in add_and_get_index()
114 if (strcmp(parent, fstack[cpu].stack[i]) == 0) { in add_and_get_index()
185 for (x = 0; x < fstack[i].size && fstack[i].stack[x]; x++) in TEP_PLUGIN_UNLOADER()
186 free(fstack[i].stack[x]); in TEP_PLUGIN_UNLOADER()
187 free(fstack[i].stack); in TEP_PLUGIN_UNLOADER()