diff options
author | Ingo Molnar <mingo@kernel.org> | 2012-03-31 09:27:41 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-03-31 09:27:41 +0200 |
commit | 8ebfdf2babcda5a3b06cc67523bca1f9aed46009 (patch) | |
tree | 160fe42903b8fdd399347ae9e7a7d72c331570f8 /tools/perf/util/probe-finder.c | |
parent | tracing: Fix ent_size in trace output (diff) | |
parent | perf tools: Remove auto-generated bison/flex files (diff) | |
download | linux-8ebfdf2babcda5a3b06cc67523bca1f9aed46009.tar.xz linux-8ebfdf2babcda5a3b06cc67523bca1f9aed46009.zip |
Merge branch 'perf/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
Diffstat (limited to 'tools/perf/util/probe-finder.c')
-rw-r--r-- | tools/perf/util/probe-finder.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c index 2cc162d3b78c..d448984ed789 100644 --- a/tools/perf/util/probe-finder.c +++ b/tools/perf/util/probe-finder.c @@ -972,10 +972,12 @@ static int probe_point_search_cb(Dwarf_Die *sp_die, void *data) struct dwarf_callback_param *param = data; struct probe_finder *pf = param->data; struct perf_probe_point *pp = &pf->pev->point; + Dwarf_Attribute attr; /* Check tag and diename */ if (dwarf_tag(sp_die) != DW_TAG_subprogram || - !die_compare_name(sp_die, pp->function)) + !die_compare_name(sp_die, pp->function) || + dwarf_attr(sp_die, DW_AT_declaration, &attr)) return DWARF_CB_OK; /* Check declared file */ |