android_system_core/libunwindstack/tests
Christopher Ferris be788d891d Allow multiple threads sharing a map to unwind.
Add a mutex in MapInfo, and a mutex in Elf. Lock the creation of an Elf
file using the MapInfo mutex, and lock when calling Step, GetFunctionName,
or GetSoname since they can modify information in the object. It might
be beneficial to use a fine grained lock in the future.

Change the Maps object to contain a vector of MapInfo pointers rather
than the total objects. This avoids copying this data around.

Add a test to libbacktrace to verify that sharing a map while doing
unwinds in different threads works.

Add concurrency tests in libunwindstack to verify the locking works.

Add always inline to the RegsGetLocal arm and aarch64 functions. I had
a case where clang did not inline the code, so make sure this is specified.

Bug: 68813077

Test: New unit tests to cover the case. Passes all unit tests.
Test: Ran a monkey test while dumping bugreports and verified that
Test: no crashes in libunwind.
Test: Remove the locking and verified that all of the concurrenty tests fail.
Change-Id: I769e728c676f6bdae9e64ce4cdc03b6749beae03
2017-11-28 15:20:38 -08:00
..
files Init .gnu_debugdata in GetElf(). 2017-06-30 17:24:58 -07:00
ArmExidxDecodeTest.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
ArmExidxExtractTest.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
DwarfCfaLogTest.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
DwarfCfaTest.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
DwarfDebugFrameTest.cpp Add support for only a .eh_frame. 2017-11-07 13:22:39 -08:00
DwarfEhFrameTest.cpp Add support for only a .eh_frame. 2017-11-07 13:22:39 -08:00
DwarfEhFrameWithHdrTest.cpp Fix another nullptr dereference. 2017-11-08 11:04:48 -08:00
DwarfMemoryTest.cpp Fix another set of bugs. 2017-08-10 17:37:32 -07:00
DwarfOpLogTest.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
DwarfOpTest.cpp Update the Unwinder object and add tests. 2017-10-04 14:40:14 -07:00
DwarfSectionImplTest.cpp Add support for only a .eh_frame. 2017-11-07 13:22:39 -08:00
DwarfSectionTest.cpp Add a new unwind method on error. 2017-09-22 16:55:12 -07:00
ElfFake.cpp Multiple bugfixes, small restructuring. 2017-10-20 11:15:32 -07:00
ElfFake.h Multiple bugfixes, small restructuring. 2017-10-20 11:15:32 -07:00
ElfInterfaceArmTest.cpp If the pc is set to zero, the unwind is done. 2017-10-23 14:55:16 -07:00
ElfInterfaceTest.cpp Add support for only a .eh_frame. 2017-11-07 13:22:39 -08:00
ElfTest.cpp Allow multiple threads sharing a map to unwind. 2017-11-28 15:20:38 -08:00
ElfTestUtils.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
ElfTestUtils.h Make the library usable as a library. 2017-07-14 12:20:23 -07:00
GenGnuDebugdata.cpp Add .gnu_debugdata support. 2017-06-28 15:23:10 -07:00
LogFake.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
LogFake.h Make the library usable as a library. 2017-07-14 12:20:23 -07:00
MapInfoCreateMemoryTest.cpp Allow multiple threads sharing a map to unwind. 2017-11-28 15:20:38 -08:00
MapInfoGetElfTest.cpp Allow multiple threads sharing a map to unwind. 2017-11-28 15:20:38 -08:00
MapsTest.cpp Allow multiple threads sharing a map to unwind. 2017-11-28 15:20:38 -08:00
MemoryBufferTest.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
MemoryFake.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
MemoryFake.h Make the library usable as a library. 2017-07-14 12:20:23 -07:00
MemoryFileTest.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
MemoryLocalTest.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
MemoryRangeTest.cpp Add a method to share the process memory object. 2017-09-05 14:30:22 -07:00
MemoryRemoteTest.cpp Fix UnwindTest repeatability. 2017-09-06 17:08:44 -07:00
MemoryTest.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
RegsFake.h libunwindstack: add method to iterate across registers. 2017-10-20 13:52:56 -07:00
RegsIterateTest.cpp libunwindstack: add method to iterate across registers. 2017-10-20 13:52:56 -07:00
RegsStepIfSignalHandlerTest.cpp Speed up StepIfSignalHandler path. 2017-07-19 21:35:46 +00:00
RegsTest.cpp Allow multiple threads sharing a map to unwind. 2017-11-28 15:20:38 -08:00
SymbolsTest.cpp Make the library usable as a library. 2017-07-14 12:20:23 -07:00
TestUtils.h Fix UnwindTest repeatability. 2017-09-06 17:08:44 -07:00
UnwinderTest.cpp Allow multiple threads sharing a map to unwind. 2017-11-28 15:20:38 -08:00
UnwindTest.cpp Allow multiple threads sharing a map to unwind. 2017-11-28 15:20:38 -08:00