[PATCH] Prevent infinite loop if unwind fails

2013-11-22 Thread Francis Giraldeau
Unwind may loop forever if sample is incomplete or bogus. Bound the number of unw_step() that yield the same IP to prevent infinite loop. Signed-off-by: Francis Giraldeau --- tools/perf/util/unwind.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

[PATCH] Prevent infinite loop if unwind fails

2013-11-22 Thread Francis Giraldeau
Unwind may loop forever if sample is incomplete or bogus. Bound the number of unw_step() that yield the same IP to prevent infinite loop. Signed-off-by: Francis Giraldeau francis.girald...@gmail.com --- tools/perf/util/unwind.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff