Lines Matching refs:stack
29 char **stack; member
59 static void add_child(struct func_stack *stack, const char *child, int pos) in add_child() argument
66 if (pos < stack->size) in add_child()
67 free(stack->stack[pos]); in add_child()
71 ptr = realloc(stack->stack, sizeof(char *) * in add_child()
72 (stack->size + STK_BLK)); in add_child()
78 stack->stack = ptr; in add_child()
80 for (i = stack->size; i < stack->size + STK_BLK; i++) in add_child()
81 stack->stack[i] = NULL; in add_child()
82 stack->size += STK_BLK; in add_child()
85 stack->stack[pos] = strdup(child); in add_child()
112 for (i = 0; i < fstack[cpu].size && fstack[cpu].stack[i]; i++) { in add_and_get_index()
113 if (strcmp(parent, fstack[cpu].stack[i]) == 0) { in add_and_get_index()
184 for (x = 0; x < fstack[i].size && fstack[i].stack[x]; x++) in PEVENT_PLUGIN_UNLOADER()
185 free(fstack[i].stack[x]); in PEVENT_PLUGIN_UNLOADER()
186 free(fstack[i].stack); in PEVENT_PLUGIN_UNLOADER()