Lines Matching refs:lbr_stitch

2272 	struct lbr_stitch *lbr_stitch = thread__lbr_stitch(thread);  in save_lbr_cursor_node()  local
2274 if (!lbr_stitch) in save_lbr_cursor_node()
2278 lbr_stitch->prev_lbr_cursor[idx].valid = false; in save_lbr_cursor_node()
2287 map_symbol__exit(&lbr_stitch->prev_lbr_cursor[idx].ms); in save_lbr_cursor_node()
2288 memcpy(&lbr_stitch->prev_lbr_cursor[idx], cursor->curr, in save_lbr_cursor_node()
2290 lbr_stitch->prev_lbr_cursor[idx].ms.maps = maps__get(cursor->curr->ms.maps); in save_lbr_cursor_node()
2291 lbr_stitch->prev_lbr_cursor[idx].ms.map = map__get(cursor->curr->ms.map); in save_lbr_cursor_node()
2293 lbr_stitch->prev_lbr_cursor[idx].valid = true; in save_lbr_cursor_node()
2402 struct lbr_stitch *lbr_stitch = thread__lbr_stitch(thread); in lbr_callchain_add_stitched_lbr_ip() local
2407 list_for_each_entry(stitch_node, &lbr_stitch->lists, node) { in lbr_callchain_add_stitched_lbr_ip()
2426 struct lbr_stitch *lbr_stitch = thread__lbr_stitch(thread); in get_stitch_node() local
2429 if (!list_empty(&lbr_stitch->free_lists)) { in get_stitch_node()
2430 stitch_node = list_first_entry(&lbr_stitch->free_lists, in get_stitch_node()
2450 struct lbr_stitch *lbr_stitch = thread__lbr_stitch(thread); in has_stitched_lbr() local
2493 if (!lbr_stitch->prev_lbr_cursor[i].valid) in has_stitched_lbr()
2500 memcpy(&stitch_node->cursor, &lbr_stitch->prev_lbr_cursor[i], in has_stitched_lbr()
2503 stitch_node->cursor.ms.maps = maps__get(lbr_stitch->prev_lbr_cursor[i].ms.maps); in has_stitched_lbr()
2504 stitch_node->cursor.ms.map = map__get(lbr_stitch->prev_lbr_cursor[i].ms.map); in has_stitched_lbr()
2507 list_add(&stitch_node->node, &lbr_stitch->lists); in has_stitched_lbr()
2509 list_add_tail(&stitch_node->node, &lbr_stitch->lists); in has_stitched_lbr()
2520 thread__set_lbr_stitch(thread, zalloc(sizeof(struct lbr_stitch))); in alloc_lbr_stitch()
2564 struct lbr_stitch *lbr_stitch; in resolve_lbr_callchain_sample() local
2580 lbr_stitch = thread__lbr_stitch(thread); in resolve_lbr_callchain_sample()
2583 &lbr_stitch->prev_sample, in resolve_lbr_callchain_sample()
2586 if (!stitched_lbr && !list_empty(&lbr_stitch->lists)) { in resolve_lbr_callchain_sample()
2589 list_for_each_entry(stitch_node, &lbr_stitch->lists, node) in resolve_lbr_callchain_sample()
2592 list_splice_init(&lbr_stitch->lists, &lbr_stitch->free_lists); in resolve_lbr_callchain_sample()
2594 memcpy(&lbr_stitch->prev_sample, sample, sizeof(*sample)); in resolve_lbr_callchain_sample()