[XRay][AArch64] Attempt to fix unstable test XRay-aarch64-linux::patching-unpatching.cc
authorSerge Rogatch <srogatch@accesssoftek.com>
Mon, 5 Dec 2016 23:29:56 +0000 (23:29 +0000)
committerSerge Rogatch <srogatch@accesssoftek.com>
Mon, 5 Dec 2016 23:29:56 +0000 (23:29 +0000)
Summary: Currently test XRay-aarch64-linux::patching-unpatching.cc sometimes passes, sometimes fails. This is an attempt to fix it by handling better the situations when both `__arm__` and `__aarch64__` are defined.

Reviewers: dberris, rengolin

Subscribers: llvm-commits, iid_iunknown, aemerson, rengolin, dberris

Differential Revision: https://reviews.llvm.org/D27421

llvm-svn: 288729

compiler-rt/lib/xray/xray_interface.cc

index f2c8074..20a2b66 100644 (file)
@@ -31,10 +31,10 @@ namespace __xray {
 // FIXME: The actual length is 11 bytes. Why was length 12 passed to mprotect()
 // ?
 static const int16_t cSledLength = 12;
-#elif defined(__arm__)
-static const int16_t cSledLength = 28;
 #elif defined(__aarch64__)
 static const int16_t cSledLength = 32;
+#elif defined(__arm__)
+static const int16_t cSledLength = 28;
 #else
 #error "Unsupported CPU Architecture"
 #endif /* CPU architecture */