• Home
  • Raw
  • Download

Lines Matching refs:sz

91 	size_t sz;  member
121 size_t sz, new_sz; in thread_stack__grow() local
123 new_sz = ts->sz + STACK_GROWTH; in thread_stack__grow()
124 sz = new_sz * sizeof(struct thread_stack_entry); in thread_stack__grow()
126 new_stack = realloc(ts->stack, sz); in thread_stack__grow()
131 ts->sz = new_sz; in thread_stack__grow()
149 size_t sz = sizeof(struct branch_stack); in thread_stack__init() local
151 sz += br_stack_sz * sizeof(struct branch_entry); in thread_stack__init()
152 ts->br_stack_rb = zalloc(sz); in thread_stack__init()
243 if (ts->cnt == ts->sz) { in thread_stack__push()
522 size_t sz, u64 ip, u64 kernel_start) in thread_stack__sample() argument
529 if (sz < 2) { in thread_stack__sample()
544 for (i = 2, j = 1; i < sz && j <= ts->cnt; i++, j++) { in thread_stack__sample()
548 if (i >= sz - 1) in thread_stack__sample()
564 struct ip_callchain *chain, size_t sz, in thread_stack__sample_late() argument
572 if (sz < 2) { in thread_stack__sample_late()
595 for (; nr < sz && j <= ts->cnt; nr++, j++) { in thread_stack__sample_late()
599 if (nr >= sz - 1) in thread_stack__sample_late()
617 struct branch_stack *dst, unsigned int sz) in thread_stack__br_sample() argument
634 dst->nr = min((unsigned int)src->nr, sz); in thread_stack__br_sample()
641 sz -= nr; in thread_stack__br_sample()
643 nr = min(ts->br_stack_pos, sz); in thread_stack__br_sample()
678 struct branch_stack *dst, unsigned int sz, in thread_stack__br_sample_late() argument
707 for (s = spos; s < ssz && nr < sz; s++) { in thread_stack__br_sample_late()
715 for (s = &src->entries[0]; s < spos && nr < sz; s++) { in thread_stack__br_sample_late()
730 for (s = spos; s < ssz && nr < sz; s++) { in thread_stack__br_sample_late()
739 for (s = &src->entries[0]; s < spos && nr < sz; s++) { in thread_stack__br_sample_late()
791 if (ts->cnt == ts->sz) { in thread_stack__push_cp()