Lines Matching refs:stack

89 	struct thread_stack_entry *stack;  member
126 new_stack = realloc(ts->stack, sz); in thread_stack__grow()
130 ts->stack = new_stack; in thread_stack__grow()
201 if (!ts->stack && in thread_stack__new()
220 if (!ts->stack) in thread__cpu_stack()
251 ts->stack[ts->cnt].trace_end = trace_end; in thread_stack__push()
252 ts->stack[ts->cnt++].ret_addr = ret_addr; in thread_stack__push()
271 if (ts->stack[--i].ret_addr == ret_addr) { in thread_stack__pop()
283 if (ts->stack[--i].trace_end) in thread_stack__pop_trace_end()
295 return ts->stack[ts->cnt - 1].cp->in_kernel; in thread_stack__in_kernel()
311 tse = &ts->stack[idx]; in thread_stack__call_return()
490 zfree(&ts->stack); in __thread_stack__free()
545 ip = ts->stack[ts->cnt - j].ret_addr; in thread_stack__sample()
586 ip = ts->stack[ts->cnt - j].ret_addr; in thread_stack__sample_late()
596 ip = ts->stack[ts->cnt - j].ret_addr; in thread_stack__sample_late()
797 tse = &ts->stack[ts->cnt++]; in thread_stack__push_cp()
823 struct thread_stack_entry *tse = &ts->stack[0]; in thread_stack__pop_cp()
830 if (ts->stack[ts->cnt - 1].ret_addr == ret_addr && in thread_stack__pop_cp()
831 !ts->stack[ts->cnt - 1].non_call) { in thread_stack__pop_cp()
838 if (ts->stack[i].ret_addr != ret_addr || in thread_stack__pop_cp()
839 ts->stack[i].non_call) in thread_stack__pop_cp()
939 parent = ts->stack[ts->cnt - 1].cp; in thread_stack__no_call_return()
971 ts->stack[ts->cnt - 1].non_call = true; in thread_stack__no_call_return()
1007 tse = &ts->stack[ts->cnt - 1]; in thread_stack__trace_begin()
1026 if (!ts->cnt || (ts->cnt == 1 && ts->stack[0].ref == ref)) in thread_stack__trace_end()
1029 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, NULL, 0, in thread_stack__trace_end()
1054 struct thread_stack_entry *tse = &ts->stack[ts->cnt - 1]; in thread_stack__x86_retpoline()
1072 sym = ts->stack[ts->cnt - 2].cp->sym; in thread_stack__x86_retpoline()
1091 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 2].cp, tsym, in thread_stack__x86_retpoline()
1097 ts->stack[ts->cnt - 1].cp = cp; in thread_stack__x86_retpoline()
1162 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, in thread_stack__process()
1194 ts->stack[ts->cnt - 1].ret_addr != sample->addr) in thread_stack__process()
1221 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, in thread_stack__process()
1227 ts->stack[ts->cnt - 1].non_call = true; in thread_stack__process()