Lines Matching refs:cnt
98 size_t cnt; member
153 if (ts->cnt == ts->sz) { in thread_stack__push()
157 ts->cnt = 0; in thread_stack__push()
161 ts->stack[ts->cnt++].ret_addr = ret_addr; in thread_stack__push()
179 for (i = ts->cnt; i; ) { in thread_stack__pop()
181 ts->cnt = i; in thread_stack__pop()
189 if (!ts->cnt) in thread_stack__in_kernel()
192 return ts->stack[ts->cnt - 1].cp->in_kernel; in thread_stack__in_kernel()
228 ts->cnt = 0; in thread_stack__flush()
232 while (ts->cnt) { in thread_stack__flush()
233 err = thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__flush()
237 ts->cnt = 0; in thread_stack__flush()
322 chain->nr = min(sz, thread->ts->cnt + 1); in thread_stack__sample()
327 chain->ips[i] = thread->ts->stack[thread->ts->cnt - i].ret_addr; in thread_stack__sample()
468 if (ts->cnt == ts->sz) { in thread_stack__push_cp()
474 tse = &ts->stack[ts->cnt++]; in thread_stack__push_cp()
491 if (!ts->cnt) in thread_stack__pop_cp()
494 if (ts->cnt == 1) { in thread_stack__pop_cp()
498 return thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__pop_cp()
502 if (ts->stack[ts->cnt - 1].ret_addr == ret_addr) { in thread_stack__pop_cp()
503 return thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__pop_cp()
506 size_t i = ts->cnt - 1; in thread_stack__pop_cp()
512 while (ts->cnt > i) { in thread_stack__pop_cp()
514 --ts->cnt, in thread_stack__pop_cp()
520 return thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__pop_cp()
571 err = thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__no_call_return()
579 if (!ts->cnt) { in thread_stack__no_call_return()
591 err = thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__no_call_return()
599 if (ts->cnt) in thread_stack__no_call_return()
600 parent = ts->stack[ts->cnt - 1].cp; in thread_stack__no_call_return()
626 if (!ts->cnt) in thread_stack__trace_begin()
630 tse = &ts->stack[ts->cnt - 1]; in thread_stack__trace_begin()
632 err = thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__trace_begin()
649 if (!ts->cnt || (ts->cnt == 1 && ts->stack[0].ref == ref)) in thread_stack__trace_end()
652 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, NULL, 0, in thread_stack__trace_end()
699 if (!ts->cnt) { in thread_stack__process()
721 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, in thread_stack__process()