[PATCH] D41121: [sanitizer] Introduce a vDSO aware timing function
Kostya Kortchinsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 12 10:20:15 PST 2017
cryptoad created this revision.
cryptoad added a reviewer: alekseyshl.
Herald added subscribers: Sanitizers, krytarowski, kubamracek, srhines.
See https://reviews.llvm.org/D40657 & https://reviews.llvm.org/D40679 for previous versions of this patch & description.
A couple of things were fixed here to have it not break some bots.
Weak symbols can't be used with `SANITIZER_GO` so the previous version was
breakin TsanGo. I set up some additional local tests and those pass now.
I changed the workaround for the glibc vDSO issue: `__progname` is initialized
after the vDSO and is actually public and of known type, unlike
`__vdso_clock_gettime`. This works better, and with all compilers.
The rest is the same.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D41121
Files:
lib/sanitizer_common/sanitizer_allocator_primary64.h
lib/sanitizer_common/sanitizer_common.h
lib/sanitizer_common/sanitizer_common_interceptors.inc
lib/sanitizer_common/sanitizer_fuchsia.cc
lib/sanitizer_common/sanitizer_linux.cc
lib/sanitizer_common/sanitizer_linux.h
lib/sanitizer_common/sanitizer_linux_libcdep.cc
lib/sanitizer_common/sanitizer_mac.cc
lib/sanitizer_common/sanitizer_syscall_generic.inc
lib/sanitizer_common/sanitizer_win.cc
lib/scudo/scudo_allocator.cpp
lib/scudo/scudo_tsd.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41121.126574.patch
Type: text/x-patch
Size: 8081 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171212/b41f0b12/attachment.bin>
More information about the llvm-commits
mailing list