@@ -582,8 +582,8 @@ fill_node(struct callchain_node *node, struct callchain_cursor *cursor)
582582 return -1 ;
583583 }
584584 call -> ip = cursor_node -> ip ;
585- call -> ms . sym = cursor_node -> sym ;
586- call -> ms .map = map__get ( cursor_node -> map );
585+ call -> ms = cursor_node -> ms ;
586+ map__get ( call -> ms .map );
587587 call -> srcline = cursor_node -> srcline ;
588588
589589 if (cursor_node -> branch ) {
@@ -720,29 +720,29 @@ static enum match_result match_chain(struct callchain_cursor_node *node,
720720 /* otherwise fall-back to symbol-based comparison below */
721721 __fallthrough ;
722722 case CCKEY_FUNCTION :
723- if (node -> sym && cnode -> ms .sym ) {
723+ if (node -> ms . sym && cnode -> ms .sym ) {
724724 /*
725725 * Compare inlined frames based on their symbol name
726726 * because different inlined frames will have the same
727727 * symbol start. Otherwise do a faster comparison based
728728 * on the symbol start address.
729729 */
730- if (cnode -> ms .sym -> inlined || node -> sym -> inlined ) {
730+ if (cnode -> ms .sym -> inlined || node -> ms . sym -> inlined ) {
731731 match = match_chain_strings (cnode -> ms .sym -> name ,
732- node -> sym -> name );
732+ node -> ms . sym -> name );
733733 if (match != MATCH_ERROR )
734734 break ;
735735 } else {
736736 match = match_chain_dso_addresses (cnode -> ms .map , cnode -> ms .sym -> start ,
737- node -> map , node -> sym -> start );
737+ node -> ms . map , node -> ms . sym -> start );
738738 break ;
739739 }
740740 }
741741 /* otherwise fall-back to IP-based comparison below */
742742 __fallthrough ;
743743 case CCKEY_ADDRESS :
744744 default :
745- match = match_chain_dso_addresses (cnode -> ms .map , cnode -> ip , node -> map , node -> ip );
745+ match = match_chain_dso_addresses (cnode -> ms .map , cnode -> ip , node -> ms . map , node -> ip );
746746 break ;
747747 }
748748
@@ -1004,8 +1004,7 @@ merge_chain_branch(struct callchain_cursor *cursor,
10041004 int err = 0 ;
10051005
10061006 list_for_each_entry_safe (list , next_list , & src -> val , list ) {
1007- callchain_cursor_append (cursor , list -> ip ,
1008- list -> ms .map , list -> ms .sym ,
1007+ callchain_cursor_append (cursor , list -> ip , & list -> ms ,
10091008 false, NULL , 0 , 0 , 0 , list -> srcline );
10101009 list_del_init (& list -> list );
10111010 map__zput (list -> ms .map );
@@ -1044,7 +1043,7 @@ int callchain_merge(struct callchain_cursor *cursor,
10441043}
10451044
10461045int callchain_cursor_append (struct callchain_cursor * cursor ,
1047- u64 ip , struct map * map , struct symbol * sym ,
1046+ u64 ip , struct map_symbol * ms ,
10481047 bool branch , struct branch_flags * flags ,
10491048 int nr_loop_iter , u64 iter_cycles , u64 branch_from ,
10501049 const char * srcline )
@@ -1060,9 +1059,9 @@ int callchain_cursor_append(struct callchain_cursor *cursor,
10601059 }
10611060
10621061 node -> ip = ip ;
1063- map__zput (node -> map );
1064- node -> map = map__get ( map ) ;
1065- node -> sym = sym ;
1062+ map__zput (node -> ms . map );
1063+ node -> ms = * ms ;
1064+ map__get ( node -> ms . map ) ;
10661065 node -> branch = branch ;
10671066 node -> nr_loop_iter = nr_loop_iter ;
10681067 node -> iter_cycles = iter_cycles ;
@@ -1107,8 +1106,8 @@ int hist_entry__append_callchain(struct hist_entry *he, struct perf_sample *samp
11071106int fill_callchain_info (struct addr_location * al , struct callchain_cursor_node * node ,
11081107 bool hide_unresolved )
11091108{
1110- al -> map = node -> map ;
1111- al -> sym = node -> sym ;
1109+ al -> map = node -> ms . map ;
1110+ al -> sym = node -> ms . sym ;
11121111 al -> srcline = node -> srcline ;
11131112 al -> addr = node -> ip ;
11141113
@@ -1571,7 +1570,7 @@ int callchain_cursor__copy(struct callchain_cursor *dst,
15711570 if (node == NULL )
15721571 break ;
15731572
1574- rc = callchain_cursor_append (dst , node -> ip , node -> map , node -> sym ,
1573+ rc = callchain_cursor_append (dst , node -> ip , & node -> ms ,
15751574 node -> branch , & node -> branch_flags ,
15761575 node -> nr_loop_iter ,
15771576 node -> iter_cycles ,
@@ -1597,5 +1596,5 @@ void callchain_cursor_reset(struct callchain_cursor *cursor)
15971596 cursor -> last = & cursor -> first ;
15981597
15991598 for (node = cursor -> first ; node != NULL ; node = node -> next )
1600- map__zput (node -> map );
1599+ map__zput (node -> ms . map );
16011600}
0 commit comments