Lines Matching refs:cnt
86 size_t cnt; member
220 if (ts->cnt == ts->sz) { in thread_stack__push()
224 ts->cnt = 0; in thread_stack__push()
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()
247 for (i = ts->cnt; i; ) { in thread_stack__pop()
249 ts->cnt = i; in thread_stack__pop()
259 for (i = ts->cnt; i; ) { in thread_stack__pop_trace_end()
261 ts->cnt = i; in thread_stack__pop_trace_end()
269 if (!ts->cnt) in thread_stack__in_kernel()
272 return ts->stack[ts->cnt - 1].cp->in_kernel; in thread_stack__in_kernel()
321 ts->cnt = 0; in __thread_stack__flush()
325 while (ts->cnt) { in __thread_stack__flush()
326 err = thread_stack__call_return(thread, ts, --ts->cnt, in __thread_stack__flush()
330 ts->cnt = 0; in __thread_stack__flush()
485 for (i = 2, j = 1; i < sz && j <= ts->cnt; i++, j++) { in thread_stack__sample()
486 ip = ts->stack[ts->cnt - j].ret_addr; in thread_stack__sample()
539 if (ts->cnt == ts->sz) { in thread_stack__push_cp()
545 tse = &ts->stack[ts->cnt++]; in thread_stack__push_cp()
567 if (!ts->cnt) in thread_stack__pop_cp()
570 if (ts->cnt == 1) { in thread_stack__pop_cp()
574 return thread_stack__call_return(thread, ts, --ts->cnt, 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()
580 return thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__pop_cp()
583 size_t i = ts->cnt - 1; in thread_stack__pop_cp()
590 while (ts->cnt > i) { in thread_stack__pop_cp()
592 --ts->cnt, in thread_stack__pop_cp()
598 return thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__pop_cp()
641 err = thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__pop_ks()
674 if (!ts->cnt) { in thread_stack__no_call_return()
686 if (ts->cnt) in thread_stack__no_call_return()
687 parent = ts->stack[ts->cnt - 1].cp; in thread_stack__no_call_return()
697 if (ts->cnt == 1) { in thread_stack__no_call_return()
698 err = thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__no_call_return()
704 if (!ts->cnt) { in thread_stack__no_call_return()
719 ts->stack[ts->cnt - 1].non_call = true; in thread_stack__no_call_return()
741 return thread_stack__call_return(thread, ts, --ts->cnt, tm, ref, false); in thread_stack__no_call_return()
751 if (!ts->cnt) in thread_stack__trace_begin()
755 tse = &ts->stack[ts->cnt - 1]; in thread_stack__trace_begin()
757 err = thread_stack__call_return(thread, ts, --ts->cnt, 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()
819 ts->cnt -= 1; in thread_stack__x86_retpoline()
820 sym = ts->stack[ts->cnt - 2].cp->sym; in thread_stack__x86_retpoline()
827 ts->cnt -= 1; in thread_stack__x86_retpoline()
835 ts->cnt -= 1; 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()
886 if (!ts->cnt) { in thread_stack__process()
910 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, in thread_stack__process()
941 if (rstate == X86_RETPOLINE_DETECTED && ts->cnt > 2 && 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()
987 return ts->cnt; in thread_stack__depth()