@@ -154,57 +154,9 @@ static void callchain_list__set_folding(struct callchain_list *cl, bool unfold)
154154 cl -> unfolded = unfold ? cl -> has_children : false;
155155}
156156
157- static struct inline_node * inline_node__create (struct map * map , u64 ip )
158- {
159- struct dso * dso ;
160- struct inline_node * node ;
161-
162- if (map == NULL )
163- return NULL ;
164-
165- dso = map -> dso ;
166- if (dso == NULL )
167- return NULL ;
168-
169- node = dso__parse_addr_inlines (dso ,
170- map__rip_2objdump (map , ip ));
171-
172- return node ;
173- }
174-
175- static int inline__count_rows (struct inline_node * node )
176- {
177- struct inline_list * ilist ;
178- int i = 0 ;
179-
180- if (node == NULL )
181- return 0 ;
182-
183- list_for_each_entry (ilist , & node -> val , list ) {
184- if ((ilist -> filename != NULL ) || (ilist -> funcname != NULL ))
185- i ++ ;
186- }
187-
188- return i ;
189- }
190-
191- static int callchain_list__inline_rows (struct callchain_list * chain )
192- {
193- struct inline_node * node ;
194- int rows ;
195-
196- node = inline_node__create (chain -> ms .map , chain -> ip );
197- if (node == NULL )
198- return 0 ;
199-
200- rows = inline__count_rows (node );
201- inline_node__delete (node );
202- return rows ;
203- }
204-
205157static int callchain_node__count_rows_rb_tree (struct callchain_node * node )
206158{
207- int n = 0 , inline_rows ;
159+ int n = 0 ;
208160 struct rb_node * nd ;
209161
210162 for (nd = rb_first (& node -> rb_root ); nd ; nd = rb_next (nd )) {
@@ -215,12 +167,6 @@ static int callchain_node__count_rows_rb_tree(struct callchain_node *node)
215167 list_for_each_entry (chain , & child -> val , list ) {
216168 ++ n ;
217169
218- if (symbol_conf .inline_name ) {
219- inline_rows =
220- callchain_list__inline_rows (chain );
221- n += inline_rows ;
222- }
223-
224170 /* We need this because we may not have children */
225171 folded_sign = callchain_list__folded (chain );
226172 if (folded_sign == '+' )
@@ -272,7 +218,7 @@ static int callchain_node__count_rows(struct callchain_node *node)
272218{
273219 struct callchain_list * chain ;
274220 bool unfolded = false;
275- int n = 0 , inline_rows ;
221+ int n = 0 ;
276222
277223 if (callchain_param .mode == CHAIN_FLAT )
278224 return callchain_node__count_flat_rows (node );
@@ -281,10 +227,6 @@ static int callchain_node__count_rows(struct callchain_node *node)
281227
282228 list_for_each_entry (chain , & node -> val , list ) {
283229 ++ n ;
284- if (symbol_conf .inline_name ) {
285- inline_rows = callchain_list__inline_rows (chain );
286- n += inline_rows ;
287- }
288230
289231 unfolded = chain -> unfolded ;
290232 }
@@ -432,19 +374,6 @@ static void hist_entry__init_have_children(struct hist_entry *he)
432374 he -> init_have_children = true;
433375}
434376
435- static void hist_entry_init_inline_node (struct hist_entry * he )
436- {
437- if (he -> inline_node )
438- return ;
439-
440- he -> inline_node = inline_node__create (he -> ms .map , he -> ip );
441-
442- if (he -> inline_node == NULL )
443- return ;
444-
445- he -> has_children = true;
446- }
447-
448377static bool hist_browser__toggle_fold (struct hist_browser * browser )
449378{
450379 struct hist_entry * he = browser -> he_selection ;
@@ -476,12 +405,8 @@ static bool hist_browser__toggle_fold(struct hist_browser *browser)
476405
477406 if (he -> unfolded ) {
478407 if (he -> leaf )
479- if (he -> inline_node )
480- he -> nr_rows = inline__count_rows (
481- he -> inline_node );
482- else
483- he -> nr_rows = callchain__count_rows (
484- & he -> sorted_chain );
408+ he -> nr_rows = callchain__count_rows (
409+ & he -> sorted_chain );
485410 else
486411 he -> nr_rows = hierarchy_count_rows (browser , he , false);
487412
@@ -841,71 +766,6 @@ static bool hist_browser__check_dump_full(struct hist_browser *browser __maybe_u
841766
842767#define LEVEL_OFFSET_STEP 3
843768
844- static int hist_browser__show_inline (struct hist_browser * browser ,
845- struct inline_node * node ,
846- unsigned short row ,
847- int offset )
848- {
849- struct inline_list * ilist ;
850- char buf [1024 ];
851- int color , width , first_row ;
852-
853- first_row = row ;
854- width = browser -> b .width - (LEVEL_OFFSET_STEP + 2 );
855- list_for_each_entry (ilist , & node -> val , list ) {
856- if ((ilist -> filename != NULL ) || (ilist -> funcname != NULL )) {
857- color = HE_COLORSET_NORMAL ;
858- if (ui_browser__is_current_entry (& browser -> b , row ))
859- color = HE_COLORSET_SELECTED ;
860-
861- if (callchain_param .key == CCKEY_ADDRESS ||
862- callchain_param .key == CCKEY_SRCLINE ) {
863- if (ilist -> filename != NULL )
864- scnprintf (buf , sizeof (buf ),
865- "%s:%d (inline)" ,
866- ilist -> filename ,
867- ilist -> line_nr );
868- else
869- scnprintf (buf , sizeof (buf ), "??" );
870- } else if (ilist -> funcname != NULL )
871- scnprintf (buf , sizeof (buf ), "%s (inline)" ,
872- ilist -> funcname );
873- else if (ilist -> filename != NULL )
874- scnprintf (buf , sizeof (buf ),
875- "%s:%d (inline)" ,
876- ilist -> filename ,
877- ilist -> line_nr );
878- else
879- scnprintf (buf , sizeof (buf ), "??" );
880-
881- ui_browser__set_color (& browser -> b , color );
882- hist_browser__gotorc (browser , row , 0 );
883- ui_browser__write_nstring (& browser -> b , " " ,
884- LEVEL_OFFSET_STEP + offset );
885- ui_browser__write_nstring (& browser -> b , buf , width );
886- row ++ ;
887- }
888- }
889-
890- return row - first_row ;
891- }
892-
893- static size_t show_inline_list (struct hist_browser * browser , struct map * map ,
894- u64 ip , int row , int offset )
895- {
896- struct inline_node * node ;
897- int ret ;
898-
899- node = inline_node__create (map , ip );
900- if (node == NULL )
901- return 0 ;
902-
903- ret = hist_browser__show_inline (browser , node , row , offset );
904-
905- inline_node__delete (node );
906- return ret ;
907- }
908-
909769static int hist_browser__show_callchain_list (struct hist_browser * browser ,
910770 struct callchain_node * node ,
911771 struct callchain_list * chain ,
@@ -917,7 +777,7 @@ static int hist_browser__show_callchain_list(struct hist_browser *browser,
917777 char bf [1024 ], * alloc_str ;
918778 char buf [64 ], * alloc_str2 ;
919779 const char * str ;
920- int inline_rows = 0 , ret = 1 ;
780+ int ret = 1 ;
921781
922782 if (arg -> row_offset != 0 ) {
923783 arg -> row_offset -- ;
@@ -954,12 +814,7 @@ static int hist_browser__show_callchain_list(struct hist_browser *browser,
954814 free (alloc_str );
955815 free (alloc_str2 );
956816
957- if (symbol_conf .inline_name ) {
958- inline_rows = show_inline_list (browser , chain -> ms .map ,
959- chain -> ip , row + 1 , offset );
960- }
961-
962- return ret + inline_rows ;
817+ return ret ;
963818}
964819
965820static bool check_percent_display (struct rb_node * node , u64 parent_total )
@@ -1383,12 +1238,6 @@ static int hist_browser__show_entry(struct hist_browser *browser,
13831238 folded_sign = hist_entry__folded (entry );
13841239 }
13851240
1386- if (symbol_conf .inline_name &&
1387- (!entry -> has_children )) {
1388- hist_entry_init_inline_node (entry );
1389- folded_sign = hist_entry__folded (entry );
1390- }
1391-
13921241 if (row_offset == 0 ) {
13931242 struct hpp_arg arg = {
13941243 .b = & browser -> b ,
@@ -1420,8 +1269,7 @@ static int hist_browser__show_entry(struct hist_browser *browser,
14201269 }
14211270
14221271 if (first ) {
1423- if (symbol_conf .use_callchain ||
1424- symbol_conf .inline_name ) {
1272+ if (symbol_conf .use_callchain ) {
14251273 ui_browser__printf (& browser -> b , "%c " , folded_sign );
14261274 width -= 2 ;
14271275 }
@@ -1463,15 +1311,11 @@ static int hist_browser__show_entry(struct hist_browser *browser,
14631311 .is_current_entry = current_entry ,
14641312 };
14651313
1466- if (entry -> inline_node )
1467- printed += hist_browser__show_inline (browser ,
1468- entry -> inline_node , row , 0 );
1469- else
1470- printed += hist_browser__show_callchain (browser ,
1471- entry , 1 , row ,
1472- hist_browser__show_callchain_entry ,
1473- & arg ,
1474- hist_browser__check_output_full );
1314+ printed += hist_browser__show_callchain (browser ,
1315+ entry , 1 , row ,
1316+ hist_browser__show_callchain_entry ,
1317+ & arg ,
1318+ hist_browser__check_output_full );
14751319 }
14761320
14771321 return printed ;
0 commit comments