File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -561,16 +561,12 @@ void symbol__annotate_decay_histogram(struct symbol *sym, int evidx)
561
561
{
562
562
struct annotation * notes = symbol__annotation (sym );
563
563
struct sym_hist * h = annotation__histogram (notes , evidx );
564
- struct objdump_line * pos ;
565
- int len = sym -> end - sym -> start ;
564
+ int len = sym -> end - sym -> start , offset ;
566
565
567
566
h -> sum = 0 ;
568
-
569
- list_for_each_entry (pos , & notes -> src -> source , node ) {
570
- if (pos -> offset != -1 && pos -> offset < len ) {
571
- h -> addr [pos -> offset ] = h -> addr [pos -> offset ] * 7 / 8 ;
572
- h -> sum += h -> addr [pos -> offset ];
573
- }
567
+ for (offset = 0 ; offset < len ; ++ offset ) {
568
+ h -> addr [offset ] = h -> addr [offset ] * 7 / 8 ;
569
+ h -> sum += h -> addr [offset ];
574
570
}
575
571
}
576
572
You can’t perform that action at this time.
0 commit comments