[libc-commits] [libc] [libc] Enabling code coverage via Linux syscalls (PR #213271)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Tue Aug 18 10:56:31 PDT 2026


================
@@ -75,8 +96,26 @@ ProcessStatus invoke_in_subprocess(FunctionCaller *func, int timeout_ms) {
   }
 
   if (!pid) {
+#ifdef LIBC_FULL_BUILD
----------------
michaelrj-google wrote:

there should be a compile flag to track if coverage is enabled or not, and we should check that before registering these signal handlers. It looks like the code would work as-is, but it seems like unnecessary overhead to constantly enable/disable the signal handlers.

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


More information about the libc-commits mailing list