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()
330 chain->nr = min(sz, thread->ts->cnt + 1); in thread_stack__sample()
335 chain->ips[i] = thread->ts->stack[thread->ts->cnt - i].ret_addr; in thread_stack__sample()
476 if (ts->cnt == ts->sz) { in thread_stack__push_cp()
482 tse = &ts->stack[ts->cnt++]; in thread_stack__push_cp()
499 if (!ts->cnt) in thread_stack__pop_cp()
502 if (ts->cnt == 1) { in thread_stack__pop_cp()
506 return thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__pop_cp()
510 if (ts->stack[ts->cnt - 1].ret_addr == ret_addr) { in thread_stack__pop_cp()
511 return thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__pop_cp()
514 size_t i = ts->cnt - 1; in thread_stack__pop_cp()
520 while (ts->cnt > i) { in thread_stack__pop_cp()
522 --ts->cnt, in thread_stack__pop_cp()
528 return thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__pop_cp()
579 err = thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__no_call_return()
587 if (!ts->cnt) { in thread_stack__no_call_return()
599 err = thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__no_call_return()
607 if (ts->cnt) in thread_stack__no_call_return()
608 parent = ts->stack[ts->cnt - 1].cp; in thread_stack__no_call_return()
634 if (!ts->cnt) in thread_stack__trace_begin()
638 tse = &ts->stack[ts->cnt - 1]; in thread_stack__trace_begin()
640 err = thread_stack__call_return(thread, ts, --ts->cnt, in thread_stack__trace_begin()
657 if (!ts->cnt || (ts->cnt == 1 && ts->stack[0].ref == ref)) in thread_stack__trace_end()
660 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, NULL, 0, in thread_stack__trace_end()
707 if (!ts->cnt) { in thread_stack__process()
729 cp = call_path__findnew(cpr, ts->stack[ts->cnt - 1].cp, in thread_stack__process()