diff options
| author | Keith Wyss <wyssman@gmail.com> | 2018-04-17 23:19:23 +0000 |
|---|---|---|
| committer | Keith Wyss <wyssman@gmail.com> | 2018-04-17 23:19:23 +0000 |
| commit | 557890126aba7939de2d7e0b5656af8d9f2edf0a (patch) | |
| tree | f00a00f55502d6c17cdcd889fd6fbd4be619c146 | |
| parent | 8b20b7dc2bb9b995d94ab020eaaf2d488d935628 (diff) | |
| download | bcm5719-llvm-557890126aba7939de2d7e0b5656af8d9f2edf0a.tar.gz bcm5719-llvm-557890126aba7939de2d7e0b5656af8d9f2edf0a.zip | |
[XRay][compiler-rt] Add noop patch functions for unsupported arches.
Summary:
Typed event patching is implemented for x86-64, but functions must
be defined for other arches.
Reviewers: dberris, pelikan
Subscribers: nemanjai, javed.absar, delcypher, #sanitizers, llvm-commits
Differential Revision: https://reviews.llvm.org/D45749
llvm-svn: 330231
| -rw-r--r-- | compiler-rt/lib/xray/xray_AArch64.cc | 6 | ||||
| -rw-r--r-- | compiler-rt/lib/xray/xray_arm.cc | 6 | ||||
| -rw-r--r-- | compiler-rt/lib/xray/xray_mips.cc | 6 | ||||
| -rw-r--r-- | compiler-rt/lib/xray/xray_mips64.cc | 6 | ||||
| -rw-r--r-- | compiler-rt/lib/xray/xray_powerpc64.cc | 6 |
5 files changed, 30 insertions, 0 deletions
diff --git a/compiler-rt/lib/xray/xray_AArch64.cc b/compiler-rt/lib/xray/xray_AArch64.cc index f26e77dd7fc..096de009e83 100644 --- a/compiler-rt/lib/xray/xray_AArch64.cc +++ b/compiler-rt/lib/xray/xray_AArch64.cc @@ -112,6 +112,12 @@ bool patchCustomEvent(const bool Enable, const uint32_t FuncId, return false; } +bool patchTypedEvent(const bool Enable, const uint32_t FuncId, + const XRaySledEntry &Sled) XRAY_NEVER_INSTRUMENT { + // FIXME: Implement in aarch64? + return false; +} + // FIXME: Maybe implement this better? bool probeRequiredCPUFeatures() XRAY_NEVER_INSTRUMENT { return true; } diff --git a/compiler-rt/lib/xray/xray_arm.cc b/compiler-rt/lib/xray/xray_arm.cc index da4efcdd2b1..5b828287e3f 100644 --- a/compiler-rt/lib/xray/xray_arm.cc +++ b/compiler-rt/lib/xray/xray_arm.cc @@ -149,6 +149,12 @@ bool patchCustomEvent(const bool Enable, const uint32_t FuncId, return false; } +bool patchTypedEvent(const bool Enable, const uint32_t FuncId, + const XRaySledEntry &Sled) XRAY_NEVER_INSTRUMENT { + // FIXME: Implement in arm? + return false; +} + // FIXME: Maybe implement this better? bool probeRequiredCPUFeatures() XRAY_NEVER_INSTRUMENT { return true; } diff --git a/compiler-rt/lib/xray/xray_mips.cc b/compiler-rt/lib/xray/xray_mips.cc index cd863304db2..6f824382866 100644 --- a/compiler-rt/lib/xray/xray_mips.cc +++ b/compiler-rt/lib/xray/xray_mips.cc @@ -158,6 +158,12 @@ bool patchCustomEvent(const bool Enable, const uint32_t FuncId, return false; } +bool patchTypedEvent(const bool Enable, const uint32_t FuncId, + const XRaySledEntry &Sled) XRAY_NEVER_INSTRUMENT { + // FIXME: Implement in mips? + return false; +} + } // namespace __xray extern "C" void __xray_ArgLoggerEntry() XRAY_NEVER_INSTRUMENT { diff --git a/compiler-rt/lib/xray/xray_mips64.cc b/compiler-rt/lib/xray/xray_mips64.cc index fa8fdd5abcc..f1bdf1d7d22 100644 --- a/compiler-rt/lib/xray/xray_mips64.cc +++ b/compiler-rt/lib/xray/xray_mips64.cc @@ -166,6 +166,12 @@ bool patchCustomEvent(const bool Enable, const uint32_t FuncId, // FIXME: Implement in mips64? return false; } + +bool patchTypedEvent(const bool Enable, const uint32_t FuncId, + const XRaySledEntry &Sled) XRAY_NEVER_INSTRUMENT { + // FIXME: Implement in mips64? + return false; +} } // namespace __xray extern "C" void __xray_ArgLoggerEntry() XRAY_NEVER_INSTRUMENT { diff --git a/compiler-rt/lib/xray/xray_powerpc64.cc b/compiler-rt/lib/xray/xray_powerpc64.cc index ab03cb10042..5e4938361c0 100644 --- a/compiler-rt/lib/xray/xray_powerpc64.cc +++ b/compiler-rt/lib/xray/xray_powerpc64.cc @@ -99,6 +99,12 @@ bool patchCustomEvent(const bool Enable, const uint32_t FuncId, return false; } +bool patchTypedEvent(const bool Enable, const uint32_t FuncId, + const XRaySledEntry &Sled) XRAY_NEVER_INSTRUMENT { + // FIXME: Implement in powerpc64? + return false; +} + } // namespace __xray extern "C" void __xray_ArgLoggerEntry() XRAY_NEVER_INSTRUMENT { |

