Lines Matching refs:state
1657 static int process_call(struct flame_state *state, bool entry, ulong timestamp, in process_call() argument
1660 struct flame_node *node = state->node; in process_call()
1661 int stack_ptr = state->stack_ptr; in process_call()
1682 state->nodes++; in process_call()
1689 state->stack[stack_ptr].timestamp = timestamp; in process_call()
1690 state->stack[stack_ptr].child_total = 0; in process_call()
1704 stk = &state->stack[--stack_ptr]; in process_call()
1714 state->stack[stack_ptr - 1].child_total += total_duration; in process_call()
1725 state->stack_ptr = stack_ptr; in process_call()
1726 state->node = node; in process_call()
1745 struct flame_state state; in make_flame_tree() local
1751 state.stack_ptr = 0; in make_flame_tree()
1756 state.node = tree; in make_flame_tree()
1757 state.nodes = 0; in make_flame_tree()
1771 if (process_call(&state, entry, timestamp, func)) in make_flame_tree()
1774 fprintf(stderr, "%d nodes\n", state.nodes); in make_flame_tree()