[clang] [compiler-rt] [XRay] Add support for instrumentation of DSOs on x86_64 (PR #90959)

Brian Cain via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 3 14:12:37 PDT 2024


================
@@ -471,42 +518,123 @@ uint16_t __xray_register_event_type(
 }
 
 XRayPatchingStatus __xray_patch() XRAY_NEVER_INSTRUMENT {
-  return controlPatching(true);
+  XRayPatchingStatus CombinedStatus{SUCCESS};
----------------
androm3da wrote:

If none of the objects are loaded, `__xray_patch()` will return `SUCCESS`.  That's the expected result?

(same for unpatch below)

https://github.com/llvm/llvm-project/pull/90959


More information about the cfe-commits mailing list