krytarowski added inline comments.
================ Comment at: compiler-rt/lib/xray/xray_x86_64.cc:25 + size_t Len = 0; + if (sysctlbyname("hw.cpufrequency_max", &CPUFreq, &Len, NULL, 0) == -1) { + Report("Unable to determine CPU frequency for TSC accounting; errno = %d\n", ---------------- Is it OK for you to call here internally malloc(3)? At least the NetBSD version calls it. https://reviews.llvm.org/D39114 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits