diff options
| author | Jianlin Lv <[email protected]> | 2021-02-03 22:57:02 +0800 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-02-08 16:25:00 -0300 |
| commit | 900547dd0fd273f03fd10cf5f48824056ddb4fdb (patch) | |
| tree | a75ca5d88739b5fc4848e52456de73c139f4dfe0 /tools/perf/scripts/python/stackcollapse.py | |
| parent | d2e31d7e3f7a06ea5f9cd6a9c773931828641805 (diff) | |
perf probe: Add protection to avoid endless loop
if dwarf_offdie() returns NULL, the continue statement forces the next
iteration of the loop without updating the 'off' variable. It will cause
an endless loop in the process of traversing the compile unit. So add
exception protection for looping CUs.
Signed-off-by: Jianlin Lv <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Srikar Dronamraju <[email protected]>
Cc: [email protected]
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions