Lines Matching refs:nr

347 			ts->br_stack_rb->nr = 0;  in __thread_stack__flush()
402 if (bs->nr < ts->br_stack_sz) in thread_stack__update_br_stack()
403 bs->nr += 1; in thread_stack__update_br_stack()
531 chain->nr = 0; in thread_stack__sample()
539 chain->nr = 2; in thread_stack__sample()
557 chain->nr = i; in thread_stack__sample()
571 size_t nr = 0, j; in thread_stack__sample_late() local
574 chain->nr = 0; in thread_stack__sample_late()
596 for (; nr < sz && j <= ts->cnt; nr++, j++) { in thread_stack__sample_late()
600 if (nr >= sz - 1) in thread_stack__sample_late()
602 chain->ips[nr++] = context; in thread_stack__sample_late()
605 chain->ips[nr] = ip; in thread_stack__sample_late()
608 if (nr) { in thread_stack__sample_late()
609 chain->nr = nr; in thread_stack__sample_late()
613 chain->nr = 2; in thread_stack__sample_late()
624 unsigned int nr; in thread_stack__br_sample() local
626 dst->nr = 0; in thread_stack__br_sample()
632 if (!src->nr) in thread_stack__br_sample()
635 dst->nr = min((unsigned int)src->nr, sz); in thread_stack__br_sample()
638 nr = min(ts->br_stack_sz - ts->br_stack_pos, (unsigned int)dst->nr); in thread_stack__br_sample()
639 memcpy(be, &src->entries[ts->br_stack_pos], bsz * nr); in thread_stack__br_sample()
641 if (src->nr >= ts->br_stack_sz) { in thread_stack__br_sample()
642 sz -= nr; in thread_stack__br_sample()
643 be = &dst->entries[nr]; in thread_stack__br_sample()
644 nr = min(ts->br_stack_pos, sz); in thread_stack__br_sample()
685 unsigned int nr = 0; in thread_stack__br_sample_late() local
688 dst->nr = 0; in thread_stack__br_sample_late()
694 if (!src->nr) in thread_stack__br_sample_late()
708 for (s = spos; s < ssz && nr < sz; s++) { in thread_stack__br_sample_late()
711 nr += 1; in thread_stack__br_sample_late()
715 if (src->nr >= ts->br_stack_sz) { in thread_stack__br_sample_late()
716 for (s = &src->entries[0]; s < spos && nr < sz; s++) { in thread_stack__br_sample_late()
719 nr += 1; in thread_stack__br_sample_late()
731 for (s = spos; s < ssz && nr < sz; s++) { in thread_stack__br_sample_late()
734 nr += 1; in thread_stack__br_sample_late()
739 if (src->nr >= ts->br_stack_sz) { in thread_stack__br_sample_late()
740 for (s = &src->entries[0]; s < spos && nr < sz; s++) { in thread_stack__br_sample_late()
743 nr += 1; in thread_stack__br_sample_late()
750 dst->nr = nr; in thread_stack__br_sample_late()