aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/util/probe-finder.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c
index 1b2124d12f68..3e10dbe22ab8 100644
--- a/tools/perf/util/probe-finder.c
+++ b/tools/perf/util/probe-finder.c
@@ -788,6 +788,7 @@ static void find_line_range_by_line(struct line_finder *lf)
788 Dwarf_Addr addr; 788 Dwarf_Addr addr;
789 int ret; 789 int ret;
790 790
791 INIT_LIST_HEAD(&lf->lr->line_list);
791 ret = dwarf_srclines(lf->cu_die, &lines, &cnt, &__dw_error); 792 ret = dwarf_srclines(lf->cu_die, &lines, &cnt, &__dw_error);
792 DIE_IF(ret != DW_DLV_OK); 793 DIE_IF(ret != DW_DLV_OK);
793 794
@@ -848,8 +849,6 @@ static int linefunc_callback(struct die_link *dlink, void *data)
848 lr->start = lf->lno_s; 849 lr->start = lf->lno_s;
849 lr->end = lf->lno_e; 850 lr->end = lf->lno_e;
850 find_line_range_by_line(lf); 851 find_line_range_by_line(lf);
851 /* If we find a target function, this should be end. */
852 lf->found = 1;
853 return 1; 852 return 1;
854 } 853 }
855 return 0; 854 return 0;