Test to check backtraces with machine function splitting.
authorSriraman Tallam <tmsriram@google.com>
Mon, 26 Oct 2020 20:42:18 +0000 (13:42 -0700)
committerSriraman Tallam <tmsriram@google.com>
Mon, 26 Oct 2020 21:08:42 +0000 (14:08 -0700)
commit9aa7a721ce3dc84d0ad2d987af72cf14ff76d8a7
tree2d0d4139c856d334f4328a459f26f1308675e6cf
parentd4c667c9af0335ac20015decce204c43f03a6cee
Test to check backtraces with machine function splitting.

clang supports option -fsplit-machine-functions and this test checks if the
backtraces are sane when functions are split.

With -fsplit-machine-functions, a function with profiles can get split into 2
parts, the original function containing hot code and a cold part as determined
by the profile info and the cold cutoff threshold.. The cold part gets the
".cold" suffix to disambiguate its symbol from the hot part and can be placed
arbitrarily in the address space.

This test checks if the back-trace looks correct when the cold part is executed.

Differential Revision: https://reviews.llvm.org/D90081
lldb/test/Shell/Unwind/Inputs/split-machine-functions.ll [new file with mode: 0644]
lldb/test/Shell/Unwind/split-machine-functions.test [new file with mode: 0644]