Lines Matching refs:lbr_stitch
2521 struct lbr_stitch *lbr_stitch = thread__lbr_stitch(thread);
2523 if (!lbr_stitch)
2527 lbr_stitch->prev_lbr_cursor[idx].valid = false;
2535 memcpy(&lbr_stitch->prev_lbr_cursor[idx], cursor->curr,
2538 lbr_stitch->prev_lbr_cursor[idx].valid = true;
2646 struct lbr_stitch *lbr_stitch = thread__lbr_stitch(thread);
2651 list_for_each_entry(stitch_node, &lbr_stitch->lists, node) {
2670 struct lbr_stitch *lbr_stitch = thread__lbr_stitch(thread);
2673 if (!list_empty(&lbr_stitch->free_lists)) {
2674 stitch_node = list_first_entry(&lbr_stitch->free_lists,
2694 struct lbr_stitch *lbr_stitch = thread__lbr_stitch(thread);
2732 * and the base-of-stack of current sample into lbr_stitch->lists.
2737 if (!lbr_stitch->prev_lbr_cursor[i].valid)
2744 memcpy(&stitch_node->cursor, &lbr_stitch->prev_lbr_cursor[i],
2748 list_add(&stitch_node->node, &lbr_stitch->lists);
2750 list_add_tail(&stitch_node->node, &lbr_stitch->lists);
2761 thread__set_lbr_stitch(thread, zalloc(sizeof(struct lbr_stitch)));
2802 struct lbr_stitch *lbr_stitch;
2818 lbr_stitch = thread__lbr_stitch(thread);
2821 &lbr_stitch->prev_sample,
2824 if (!stitched_lbr && !list_empty(&lbr_stitch->lists)) {
2825 list_replace_init(&lbr_stitch->lists,
2826 &lbr_stitch->free_lists);
2828 memcpy(&lbr_stitch->prev_sample, sample, sizeof(*sample));