aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorJosh Poimboeuf <[email protected]>2020-04-28 21:45:16 +0000
committerPeter Zijlstra <[email protected]>2020-05-07 15:22:31 +0000
commit1119d265bc20226c241e5540fc8a246d9e30b272 (patch)
tree322ca3376268851548322f333f58160865366abe /tools/perf/scripts/python/event_analyzing_sample.py
parentLinux 5.7-rc4 (diff)
downloadkernel-1119d265bc20226c241e5540fc8a246d9e30b272.tar.gz
kernel-1119d265bc20226c241e5540fc8a246d9e30b272.zip
objtool: Fix infinite loop in find_jump_table()
Kristen found a hang in objtool when building with -ffunction-sections. It was caused by evergreen_pcie_gen2_enable.cold() being laid out immediately before evergreen_pcie_gen2_enable(). Since their "pfunc" is always the same, find_jump_table() got into an infinite loop because it didn't recognize the boundary between the two functions. Fix that with a new prev_insn_same_sym() helper, which doesn't cross subfunction boundaries. Reported-by: Kristen Carlson Accardi <[email protected]> Signed-off-by: Josh Poimboeuf <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lkml.kernel.org/r/378b51c9d9c894dc3294bc460b4b0869e950b7c5.1588110291.git.jpoimboe@redhat.com
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions