Lines Matching refs:cnt
90 size_t cnt; member
243 if (ts->cnt == ts->sz) { in thread_stack__push()
247 ts->cnt = 0; in thread_stack__push()
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()
270 for (i = ts->cnt; i; ) { in thread_stack__pop()
272 ts->cnt = i; in thread_stack__pop()
282 for (i = ts->cnt; i; ) { in thread_stack__pop_trace_end()
284 ts->cnt = i; in thread_stack__pop_trace_end()
292 if (!ts->cnt) in thread_stack__in_kernel()
295 return ts->stack[ts->cnt - 1].cp->in_kernel; in thread_stack__in_kernel()
344 ts->cnt = 0; in __thread_stack__flush()
351 while (ts->cnt) { in __thread_stack__flush()
352 err = thread_stack__call_return(thread, ts, --ts->cnt, in __thread_stack__flush()
356 ts->cnt = 0; in __thread_stack__flush()
545 for (i = 2, j = 1; i < sz && j <= ts->cnt; i++, j++) { in thread_stack__sample()
546 ip = ts->stack[ts->cnt - j].ret_addr; in thread_stack__sample()
586 for (j = 1; j <= ts->cnt; j++) { in thread_stack__sample_late()
587 ip = ts->stack[ts->cnt - j].ret_addr; in thread_stack__sample_late()
596 for (; nr < sz && j <= ts->cnt; nr++, j++) { in thread_stack__sample_late()
597 ip = ts->stack[ts->cnt - j].ret_addr; in thread_stack__sample_late()
792 if (ts->cnt == ts->sz) { in thread_stack__push_cp()
798 tse = &ts->stack[ts->cnt++]; in thread_stack__push_cp()
820 if (!ts->cnt) in thread_stack__pop_cp()
823 if (ts->cnt == 1) { in thread_stack__pop_cp()
827 return thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__pop_cp()
831 if (ts->stack[ts->cnt - 1].ret_addr == ret_addr && in thread_stack__pop_cp()
832 !ts->stack[ts->cnt - 1].non_call) { in thread_stack__pop_cp()
833 return thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__pop_cp()
836 size_t i = ts->cnt - 1; in thread_stack__pop_cp()
843 while (ts->cnt > i) { in thread_stack__pop_cp()
845 --ts->cnt, in thread_stack__pop_cp()
851 return thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__pop_cp()
894 err = thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__pop_ks()
927 if (!ts->cnt) { in thread_stack__no_call_return()
939 if (ts->cnt) in thread_stack__no_call_return()
940 parent = ts->stack[ts->cnt - 1].cp; in thread_stack__no_call_return()
950 if (ts->cnt == 1) { in thread_stack__no_call_return()
951 err = thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__no_call_return()
957 if (!ts->cnt) { in thread_stack__no_call_return()
972 ts->stack[ts->cnt - 1].non_call = true; in thread_stack__no_call_return()
994 return thread_stack__call_return(thread, ts, --ts->cnt, tm, ref, false); in thread_stack__no_call_return()
1004 if (!ts->cnt) in thread_stack__trace_begin()
1008 tse = &ts->stack[ts->cnt - 1]; in thread_stack__trace_begin()
1010 err = thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__trace_begin()
1027 if (!ts->cnt || (ts->cnt == 1 && ts->stack[0].ref == ref)) in thread_stack__trace_end()
1030 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, NULL, 0, in thread_stack__trace_end()
1053 struct thread_stack_entry *tse = &ts->stack[ts->cnt - 1]; in thread_stack__x86_retpoline()
1070 ts->cnt -= 1; in thread_stack__x86_retpoline()
1071 sym = ts->stack[ts->cnt - 2].cp->sym; in thread_stack__x86_retpoline()
1078 ts->cnt -= 1; in thread_stack__x86_retpoline()
1086 ts->cnt -= 1; in thread_stack__x86_retpoline()
1090 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 2].cp, tsym, in thread_stack__x86_retpoline()
1096 ts->stack[ts->cnt - 1].cp = cp; in thread_stack__x86_retpoline()
1137 if (!ts->cnt) { in thread_stack__process()
1161 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, in thread_stack__process()
1192 if (rstate == X86_RETPOLINE_DETECTED && ts->cnt > 2 && in thread_stack__process()
1193 ts->stack[ts->cnt - 1].ret_addr != sample->addr) in thread_stack__process()
1220 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, in thread_stack__process()
1226 ts->stack[ts->cnt - 1].non_call = true; in thread_stack__process()
1238 return ts->cnt; in thread_stack__depth()