[lldb][AArch64] Don't check for VmFlags in smaps files
authorDavid Spickett <david.spickett@linaro.org>
Wed, 14 Apr 2021 16:11:26 +0000 (17:11 +0100)
committerDavid Spickett <david.spickett@linaro.org>
Thu, 29 Apr 2021 08:30:14 +0000 (09:30 +0100)
commitf31e390453d255bc6a486bbd5cb990e684b29510
tree72bf0d23cecfc8be1241f20e65e997190afcc061
parentc50796475d9452a3f62a0c103a78d72649557c0b
[lldb][AArch64] Don't check for VmFlags in smaps files

AArch64 kernel builds default to having /smaps and
the "VmFlags" line was added in 3.8. Long before MTE
was supported.

So we can assume that if you're AArch64 with MTE,
you can run this test.

The previous method of checking had a race condition
where the process we read smaps for, could finish before
we get to read the file.

I explored some alternatives but in the end I think
it's fine to just assume we have what we need.

Reviewed By: omjavaid

Differential Revision: https://reviews.llvm.org/D100493
lldb/packages/Python/lldbsuite/test/lldbtest.py
lldb/test/API/linux/aarch64/mte_memory_region/TestAArch64LinuxMTEMemoryRegion.py