Lines Matching refs:stack
85 struct thread_stack_entry *stack; member
118 new_stack = realloc(ts->stack, sz); in thread_stack__grow()
122 ts->stack = new_stack; in thread_stack__grow()
178 if (!ts->stack && in thread_stack__new()
197 if (!ts->stack) in thread__cpu_stack()
228 ts->stack[ts->cnt].trace_end = trace_end; in thread_stack__push()
229 ts->stack[ts->cnt++].ret_addr = ret_addr; in thread_stack__push()
248 if (ts->stack[--i].ret_addr == ret_addr) { in thread_stack__pop()
260 if (ts->stack[--i].trace_end) in thread_stack__pop_trace_end()
272 return ts->stack[ts->cnt - 1].cp->in_kernel; in thread_stack__in_kernel()
288 tse = &ts->stack[idx]; in thread_stack__call_return()
432 zfree(&ts->stack); in __thread_stack__free()
486 ip = ts->stack[ts->cnt - j].ret_addr; in thread_stack__sample()
545 tse = &ts->stack[ts->cnt++]; in thread_stack__push_cp()
571 struct thread_stack_entry *tse = &ts->stack[0]; in thread_stack__pop_cp()
578 if (ts->stack[ts->cnt - 1].ret_addr == ret_addr && in thread_stack__pop_cp()
579 !ts->stack[ts->cnt - 1].non_call) { in thread_stack__pop_cp()
586 if (ts->stack[i].ret_addr != ret_addr || in thread_stack__pop_cp()
587 ts->stack[i].non_call) in thread_stack__pop_cp()
687 parent = ts->stack[ts->cnt - 1].cp; in thread_stack__no_call_return()
719 ts->stack[ts->cnt - 1].non_call = true; in thread_stack__no_call_return()
755 tse = &ts->stack[ts->cnt - 1]; in thread_stack__trace_begin()
774 if (!ts->cnt || (ts->cnt == 1 && ts->stack[0].ref == ref)) in thread_stack__trace_end()
777 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, NULL, 0, in thread_stack__trace_end()
802 struct thread_stack_entry *tse = &ts->stack[ts->cnt - 1]; in thread_stack__x86_retpoline()
820 sym = ts->stack[ts->cnt - 2].cp->sym; in thread_stack__x86_retpoline()
839 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 2].cp, tsym, in thread_stack__x86_retpoline()
845 ts->stack[ts->cnt - 1].cp = cp; in thread_stack__x86_retpoline()
910 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, in thread_stack__process()
942 ts->stack[ts->cnt - 1].ret_addr != sample->addr) in thread_stack__process()
969 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, in thread_stack__process()
975 ts->stack[ts->cnt - 1].non_call = true; in thread_stack__process()