[PATCH] D22911: [compiler-rt][XRay] Address follow-up comments to initial interface and initialisation code

Evgeniy Stepanov via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 28 14:39:30 PDT 2016


eugenis accepted this revision.
This revision is now accepted and ready to land.

================
Comment at: lib/xray/xray_init.cc:35
@@ -37,1 +34,3 @@
+// __stop_xray_instr_map) to initialise the instrumentation map that XRay uses
+// for runtime patching/unpatching of instrumentation points.
 std::atomic<bool> XRayInitialized{false};
----------------
This only works for the main executable, right? Is this a temporary limitation? I imagine you could emit constructors to all DSOs that would add per-DSO sled maps to the global list.



https://reviews.llvm.org/D22911





More information about the llvm-commits mailing list