diff options
author | Masami Hiramatsu <mhiramat@redhat.com> | 2010-04-21 15:56:32 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-04-26 14:33:08 -0400 |
commit | 5d1ee0413c8e2e0aa48510b1edfb3c4d2d43455b (patch) | |
tree | bd0dbf0fd4ac13b8b5bc0f5504e658861a7fbdc2 /tools/perf/util/probe-finder.c | |
parent | 15eca306ec95e164d05457f9f27c722f69af6d18 (diff) |
perf probe: Fix to exit callback soon after finding too many probe points
Fix to exit callback soon after finding too many probe points.
Don't try to continue searching because it already failed.
Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
LKML-Reference: <20100421195632.24664.42598.stgit@localhost6.localdomain6>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/probe-finder.c')
-rw-r--r-- | tools/perf/util/probe-finder.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c index e7ee52fd0e09..0d795bc3e1a8 100644 --- a/tools/perf/util/probe-finder.c +++ b/tools/perf/util/probe-finder.c | |||
@@ -871,6 +871,8 @@ static int probe_point_inline_cb(Dwarf_Die *in_die, void *data) | |||
871 | (uintmax_t)pf->addr); | 871 | (uintmax_t)pf->addr); |
872 | 872 | ||
873 | param->retval = convert_probe_point(in_die, pf); | 873 | param->retval = convert_probe_point(in_die, pf); |
874 | if (param->retval < 0) | ||
875 | return DWARF_CB_ABORT; | ||
874 | } | 876 | } |
875 | 877 | ||
876 | return DWARF_CB_OK; | 878 | return DWARF_CB_OK; |
@@ -1106,6 +1108,8 @@ static int line_range_funcdecl_cb(Dwarf_Die *sp_die, void *data) | |||
1106 | return DWARF_CB_OK; | 1108 | return DWARF_CB_OK; |
1107 | 1109 | ||
1108 | param->retval = line_range_add_line(src, lineno, lf->lr); | 1110 | param->retval = line_range_add_line(src, lineno, lf->lr); |
1111 | if (param->retval < 0) | ||
1112 | return DWARF_CB_ABORT; | ||
1109 | return DWARF_CB_OK; | 1113 | return DWARF_CB_OK; |
1110 | } | 1114 | } |
1111 | 1115 | ||