diff options
Diffstat (limited to 'tools/perf/util/probe-finder.c')
-rw-r--r-- | tools/perf/util/probe-finder.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c index 1e6c65ebbd80..f9cbbf18e6ca 100644 --- a/tools/perf/util/probe-finder.c +++ b/tools/perf/util/probe-finder.c | |||
@@ -455,6 +455,9 @@ static void show_probe_point(Dwarf_Die *sp_die, struct probe_finder *pf) | |||
455 | /* *pf->fb_ops will be cached in libdw. Don't free it. */ | 455 | /* *pf->fb_ops will be cached in libdw. Don't free it. */ |
456 | pf->fb_ops = NULL; | 456 | pf->fb_ops = NULL; |
457 | 457 | ||
458 | if (pp->found == MAX_PROBES) | ||
459 | die("Too many( > %d) probe point found.\n", MAX_PROBES); | ||
460 | |||
458 | pp->probes[pp->found] = strdup(tmp); | 461 | pp->probes[pp->found] = strdup(tmp); |
459 | pp->found++; | 462 | pp->found++; |
460 | } | 463 | } |