History log of /external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6fb47af2d2d305adbfc3d41bea589d1527a364a9 27-Feb-2013 Kostya Serebryany <kcc@google.com> add Linux syscall wrappers and ThreadLister to sanitizer_common

ThreadLister is a Linux-specific class for obtaining the thread IDs of a process from procfs (/proc/<pid>/task/). It will be used by leak checking code.
Also add several syscall wrappers which will be required by the same code that uses ThreadLister, but are not used in ThreadLister itself.
Patch by Sergey Matveev


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176179 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
e31eca900a1f8849af75100c2d92e838d79d0920 15-Feb-2013 Kostya Serebryany <kcc@google.com> [asan] make asan work with 7fff8000 offset and prelink

When prelink is installed in the system, prelink-ed
libraries map between 0x003000000000 and 0x004000000000 thus occupying the shadow Gap,
so we need so split the address space even further, like this:
|| [0x10007fff8000, 0x7fffffffffff] || HighMem ||
|| [0x02008fff7000, 0x10007fff7fff] || HighShadow ||
|| [0x004000000000, 0x02008fff6fff] || ShadowGap3 ||
|| [0x003000000000, 0x003fffffffff] || MidMem ||
|| [0x00087fff8000, 0x002fffffffff] || ShadowGap2 ||
|| [0x00067fff8000, 0x00087fff7fff] || MidShadow ||
|| [0x00008fff7000, 0x00067fff7fff] || ShadowGap ||
|| [0x00007fff8000, 0x00008fff6fff] || LowShadow ||
|| [0x000000000000, 0x00007fff7fff] || LowMem ||

Do it only if necessary.

Also added a bit of profiling code to make sure that the
mapping code is efficient.

Added a lit test to simulate prelink-ed libraries.
Unfortunately, this test does not work with binutils-gold linker.
If gold is the default linker the test silently passes.

Also replaced
__has_feature(address_sanitizer)
with
__has_feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__)
in two places.

Patch partially by Jakub Jelinek.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175263 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
2673fd8406197c42f16cede6d287f72169298c2e 06-Feb-2013 Kostya Serebryany <kcc@google.com> [asan] print a short one-line report summary after the full report. Currently, works only if symbolization happens in-process.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174501 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
e85c83dcee3d35068e6670ab32545953d4330335 01-Feb-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] use u32 instead of mode_t, which is defined in Darwin headers

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174189 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
ee7cc4454421a176d23442382afd9a01d36e7ad4 01-Feb-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] make internal_open have the same interface as libc version

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174187 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
250f221ae0dee295098da8aa631977b6c2ebc99b 30-Jan-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Further split private and public sanitizer headers.

And make msan_interface.h C-compatible.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173928 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
0c7f61c7f0a6981a1722aea325500ce80dc08a04 16-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan: fix ARM build


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172613 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
db1b58a0a513fed750bf1bf4eac5544ee4c35565 15-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan: correct non-temporal prefetch for memory allocator


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172522 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
b1bd208bfa496391085056b1709542b80dcfb21e 11-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan: add memory prefetch to quarantine recycle


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172216 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
5af39e50366f1aacbebc284f572f08ad1ad07357 21-Nov-2012 Kostya Serebryany <kcc@google.com> [asan/tsan] do not use __WORDSIZE macro, as it is glibc-private thing. Instead, define our own SANITIZER_WORDSIZE

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168424 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
e2462f7461961925f7f20577352c01e867365d8b 06-Nov-2012 Dmitry Vyukov <dvyukov@google.com> tsan: define missing compier macros for windows



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167450 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
bb19294a1195fb320047bace7732f15e85ac4da5 06-Nov-2012 Dmitry Vyukov <dvyukov@google.com> tsan: fix non-msvc windows build



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167449 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
97daee89b35f6141db09aee612f0f377f754092f 06-Nov-2012 Dmitry Vyukov <dvyukov@google.com> tasn: improve sanitizer_internal_defs.h
The file uses namespaces and extern "LANG", so it's kinda senseless to use #ifdef __cplusplus



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167448 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
bfa45e11e52081c55294355f36fa547f163dcc67 06-Nov-2012 Dmitry Vyukov <dvyukov@google.com> tsan: fix windows build
__declspec is not _WIN32, it's _MSC_VER



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167447 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
5759d92e99e2b7adcc46a8729f16023208dd8f37 16-Oct-2012 Kostya Serebryany <kcc@google.com> [asan] fix lint

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@166006 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
45418d1ccb083cad3cb84e0b8184adfb85876fc5 09-Oct-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Add UNREACHABLE(msg) macro

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165492 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
3334e12d33261cb8f211f2f49f28ddfa027a40c3 02-Oct-2012 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [*San]: handle EINTR.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165006 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
b46941a1d23012491a7a8a52718cacbde3c19ba1 24-Sep-2012 Alexey Samsonov <samsonov@google.com> [ASan] Apply some ASan-relevant pieces of patch by Ruben Van Boxem. In the same time, remove ASan from CMake build on Windows after conversation with Timur. We don't want to support building ASan on Windows until it is in a working state.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164486 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
d7ed1f09f316628b2d981a1d8c2cf0f5af30e90e 11-Sep-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] fix warnings reported by gcc. Update the list of targets to check lint for

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163608 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
d865fecddccebf898ceed24d096fc58fb29a6e57 29-Aug-2012 Chandler Carruth <chandlerc@gmail.com> Relocate the external headers provided by ASan and the common sanitizer
library.

These headers are intended to be available to user code when built with
AddressSanitizer (or one of the other sanitizer's in the future) to
interface with the runtime library. As such, they form stable external
C interfaces, and the headers shouldn't be located within the
implementation.

I've pulled them out into what seem like fairly obvious locations and
names, but I'm wide open to further bikeshedding of these names and
locations.

I've updated the code and the build system to cope with the new
locations, both CMake and Makefile. Please let me know if this breaks
anyone's build.

The eventual goal is to install these headers along side the Clang
builtin headers when we build the ASan runtime and install it. My
current thinking is to locate them at:

<prefix>/lib/clang/X.Y/include/sanitizer/common_interface_defs.h
<prefix>/lib/clang/X.Y/include/sanitizer/asan_interface.h
<prefix>/lib/clang/X.Y/include/sanitizer/...

But maybe others have different suggestions?

Fixing the style of the #include between these headers at least unblocks
experimentation with installing them as they now should work when
installed in these locations.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162822 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
80acccf4647c3482c3e3e6ae21e757ba580a5956 28-Aug-2012 Kostya Serebryany <kcc@google.com> [asan] one more fix for windows build

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162762 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
1b5ea8fbbef73f5d9b41dbb26a21b9a0f4d1445e 28-Aug-2012 Kostya Serebryany <kcc@google.com> [asan] actually move StackTrace to sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162757 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
4c2ddda9ac80f94782b2b040208831233db578af 28-Aug-2012 Kostya Serebryany <kcc@google.com> [asan] some renaming before we move StackTrace into sanitizer_common (part 2)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162748 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
70e177e29c6f9ac987b65a79f6b4f3ebdabc75cc 27-Aug-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] move low-level (mmap-based) allocator to sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162663 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
fce5bd4cc29fddb5e8f0cb9c12df7c10187a991d 29-Jun-2012 Dmitry Vyukov <dvyukov@google.com> tsan/asan: unify atomics (move atomics from tsan to sanitizer_common)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159437 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
d51a1a10cba87be50e9ada9fa21337c387edb237 27-Jun-2012 Dmitry Vyukov <dvyukov@google.com> tsan: prevent insertion of unwanted memset/memcpy/memcmp into runtime


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159294 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
c375657778e8a72d566e29951060b7eadc749b0d 21-Jun-2012 Kostya Serebryany <kcc@google.com> [tsan] first step in implementing a custom allocator for tsan (and msan) which saves precious shadow

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158913 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
c925697df6626bb0ea27ea96539bf0580f8f3d3d 15-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] move all the rest re-implementations of libc functions from ASan runtime to common sanitizer runtime

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158519 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
dd3a911e46b3f0416d60d9be5c84ccfc4b1c3aa8 15-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] move ShadowRangeIsAvailable and several defines to common runtime

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158499 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
2ea978704a794e536d2801affcc7f301092d75da 14-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Workaround for -Wunused-private-field warning - add an attribute in TSan unit test, and silence this warning as gtest has unused fields.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158449 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
8c53e54ef9e713953ec9495e82e5c330b96e49f3 06-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Make UNIMPLEMENTED macro common.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158077 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
15a77612e0a89c1df444a2034e531c8968d0cedf 06-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Use common CHECK machinery. Currently each tool has to define its own CheckFailed function.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158075 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
15503b0a4331c7f27f9cebc25e25c2e494f61cb9 06-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] fix Win build - ignore __attribute__((format)).

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158067 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
230c3be6cdd094a187f48e27ba0961dbeee70344 06-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Move more functions/constants to sanitizer_common.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158056 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
94b5036ee6ba866e1702848855b6d687d1e70afa 05-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] rename sanitizer_defs.h to sanitizer_internal_defs.h

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158001 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h