diff options
Diffstat (limited to 'tools/perf/util/probe-finder.c')
-rw-r--r-- | tools/perf/util/probe-finder.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c index 194f9e2a3285..3bcd140b4545 100644 --- a/tools/perf/util/probe-finder.c +++ b/tools/perf/util/probe-finder.c | |||
@@ -1395,6 +1395,10 @@ static int probe_point_search_cb(Dwarf_Die *sp_die, void *data) | |||
1395 | !die_compare_name(sp_die, pp->function)) | 1395 | !die_compare_name(sp_die, pp->function)) |
1396 | return DWARF_CB_OK; | 1396 | return DWARF_CB_OK; |
1397 | 1397 | ||
1398 | /* Check declared file */ | ||
1399 | if (pp->file && strtailcmp(pp->file, dwarf_decl_file(sp_die))) | ||
1400 | return DWARF_CB_OK; | ||
1401 | |||
1398 | pf->fname = dwarf_decl_file(sp_die); | 1402 | pf->fname = dwarf_decl_file(sp_die); |
1399 | if (pp->line) { /* Function relative line */ | 1403 | if (pp->line) { /* Function relative line */ |
1400 | dwarf_decl_line(sp_die, &pf->lno); | 1404 | dwarf_decl_line(sp_die, &pf->lno); |
@@ -1840,6 +1844,10 @@ static int line_range_search_cb(Dwarf_Die *sp_die, void *data) | |||
1840 | struct line_finder *lf = param->data; | 1844 | struct line_finder *lf = param->data; |
1841 | struct line_range *lr = lf->lr; | 1845 | struct line_range *lr = lf->lr; |
1842 | 1846 | ||
1847 | /* Check declared file */ | ||
1848 | if (lr->file && strtailcmp(lr->file, dwarf_decl_file(sp_die))) | ||
1849 | return DWARF_CB_OK; | ||
1850 | |||
1843 | if (dwarf_tag(sp_die) == DW_TAG_subprogram && | 1851 | if (dwarf_tag(sp_die) == DW_TAG_subprogram && |
1844 | die_compare_name(sp_die, lr->function)) { | 1852 | die_compare_name(sp_die, lr->function)) { |
1845 | lf->fname = dwarf_decl_file(sp_die); | 1853 | lf->fname = dwarf_decl_file(sp_die); |