[PATCH] D40679: [sanitizer] Introduce a vDSO aware time function, and use it in the allocator [redo]

Kamil Rytarowski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 30 16:25:12 PST 2017


krytarowski added inline comments.


================
Comment at: lib/sanitizer_common/sanitizer_common_interceptors.inc:2011
+int real_clock_gettime(u32 clk_id, void *tp) {
+  return REAL(clock_gettime)(clk_id, tp);
+}
----------------
This symbol name needs to be mangled for NetBSD.


================
Comment at: lib/sanitizer_common/sanitizer_linux.cc:464
+#if SANITIZER_NETBSD
+  return internal_syscall_ptr(SYSCALL(__clock_gettime50), clk_id, tp);
+#else
----------------
Perhaps we could define `clock_gettime_symname` similar to `sigaction_symname`.


https://reviews.llvm.org/D40679





More information about the llvm-commits mailing list