History log of /external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0b694fcab9b2f33bdd6691cbea4e80a5c27191b1 17-May-2013 Peter Collingbourne <peter@pcc.me.uk> [nolibc] Move all platforms to internal_getpid.

Before, we had an unused internal_getpid function for Linux, and a
platform-independent GetPid function. To make the naming conventions
consistent for syscall-like functions, the GetPid syscall wrapper
in sanitizer_posix.cc is moved to sanitizer_mac.cc, and GetPid is
renamed to internal_getpid, bringing the Linux variant into use.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182132 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
0c547de62dc0852a03fae2d868fa571e7f5512b3 17-May-2013 Peter Collingbourne <peter@pcc.me.uk> [nolibc] Begin moving sanitizer_common's libc-dependent code to a separate library

Introduce a new object library, RTSanitizerCommonLibc, which will contain
the subset of sanitizer_common with libc dependencies. RTSanitizerCommon
contains the remainder of sanitizer_common, and is intended to have no
libc dependencies. Begin moving code to RTSanitizerCommonLibc, starting
with sanitizer_common.cc, whose libc-dependent portion is moved to
sanitizer_common_libcdep.cc, the first member of the new library.

This split affects the CMake build only. The makefile build continues
to produce the full sanitizer_common library.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182118 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
15bb32b9e1342030a6c4742625f3c3356de42a2a 13-May-2013 Sergey Matveev <earthdok@google.com> [sanitizer] Generic sorting in sanitizer_common.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181698 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
9578a3ecfc35a264ede1135033398e2a77a6cad6 08-May-2013 Peter Collingbourne <peter@pcc.me.uk> [nolibc] Change internal syscall API to remove reliance on libc's errno.

This change moves to a model where the error value of a system call is
potentially contained in the return value itself rather than being
implicit in errno. The helper function internal_iserror can be used
to extract the error value from a return value. On platforms other
than Linux/x86_64 this still uses errno, but other platforms are free
to port their error handling to this new model.

Differential Revision: http://llvm-reviews.chandlerc.com/D756

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181436 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
3614c16084e8a0dc8ae3418402a2d0c6f8107e39 15-Mar-2013 Alexander Potapenko <glider@google.com> [libsanitizer] StopTheWorld in sanitizer_common

StopTheWorld puts the process in a suspended state before running the
user-supplied callback. To be used in TSan and in leak checking code.

Linux implementation provided.

Patch by Sergey Matveev (earthdok@google.com)


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177156 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
f882247088952deed954a19d745c2dd8871e2035 20-Feb-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] use raw syscall instead of _exit() function on Linux

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@175622 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
1d333c5a34d896f239001e3fe69a660e40d15301 07-Feb-2013 Kostya Serebryany <kcc@google.com> [msan] add strip_path_prefix flag; print error summary; don't crash while printing summary if debug info is missing. The tests will follow later once we establish the lit-like tests for msan.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174595 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
2f588f9d3417aa107ebbbd8830f97501023d3f40 06-Feb-2013 Kostya Serebryany <kcc@google.com> [tsan] print error summary line

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174505 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
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_common.cc
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_common.cc
859778a4e2dffa4024fa3e13b105fd62eca44b1c 31-Jan-2013 Kostya Serebryany <kcc@google.com> [sanitizer] make the error messages from sanitizer_common contain the actual tool name

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174059 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
9b42f5207c6e99e8f94b790bb4d5a04cdcc1c755 20-Jan-2013 Alexey Samsonov <samsonov@google.com> Fixup for r172828: use InternalScopedBuffer in favor of large stack buffers

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172975 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
dedba5d6b0664218b1b1109f024a1ab151642776 18-Jan-2013 Alexander Potapenko <glider@google.com> [ASan] Fix the log_path option to use different log files for parent and child processes after fork().


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172828 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
e3c35c7e30ce24b76f1e67eb049cf9e84c9b89d8 11-Jan-2013 Dmitry Vyukov <dvyukov@google.com> asan: fix format string in CHECK


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172203 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
321e1254d3bf8d67232aaff133961573fa0e3ec4 11-Dec-2012 Kostya Serebryany <kcc@google.com> [asan] more sceleton code for asan_allocator2

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169836 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
25742574510cfb41b97e32f63f107fbb9b328d13 10-Dec-2012 Alexander Potapenko <glider@google.com> Add a libsanitizer API __sanitizer_sandbox_on_notify(void* reserved), which should be used by
the client programs to notify the tools that sandboxing is about to be turned on.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169732 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
3617ad70f3ade71b944b35fa3faaadfb97700dea 06-Dec-2012 Dmitry Vyukov <dvyukov@google.com> tsan: fix lint warning and make output tests more robust


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169511 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
2dae63aea3589fded1ef17b5a6c7f0c9352559a2 06-Dec-2012 Bill Wendling <isanbard@gmail.com> Remove unused variable.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169485 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
cc7525951f401d61e2467f1ebc1b133205516a6c 06-Dec-2012 Kostya Serebryany <kcc@google.com> [tsan] add MmapAlignedOrDie

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169474 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
f67ec2b6e8d2ae328c27de0b026eea2d6667836e 23-Nov-2012 Kostya Serebryany <kcc@google.com> [asan] get rid of some of the uses of kPageSize. The intent is to get rid of it completely to support platforms with multiple possible page sizes.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168517 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
84d57b4ce545d6c19effac01124749a9df0fd0a5 02-Nov-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Add internal_isatty to sanitizer_libc and PrintsToTty to determine whether error reports are printed to terminal

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167298 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
a517641e8f4365fbc5e3cddf614ebc27efd69c35 02-Nov-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] move unit test for Printf from tsan to sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167296 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
f3457cb9c3e1ddbbea07ee97b22ca387687b72e0 02-Nov-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Use kStderrFd constant instead of hardcoded 2

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167291 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
ac8564e7ce11e31b1d29e92dbbcfa1a5d36bc596 02-Nov-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer]: add __sanitizer_set_report_fd function to alter file descriptor for error reports

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167290 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
81dfbb76f858fbc4084771fce4967ede04ed5f44 14-Sep-2012 Kostya Serebryany <kcc@google.com> [asan] add asan option log_path=PATH to let users redirect asan reports to a file PATH.PID instead of stderr

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163872 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
591616d323d73b7ea7cd8fea4eec46cedccda27e 11-Sep-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Get rid of dependency between sanitizer_common and asan/tsan runtimes: implement tool-specific Die and CheckFailed functions via callbacks

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163603 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
0dc3177d6c54fafb9577254a93b2f3c4169129d7 16-Jul-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] implement straightforward nlogn sorting, as qsort() may call malloc, which leads to deadlock in ASan allocator

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160262 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
00d345c87c2e36a11d2d64e67f49b13cf17c91a4 05-Jul-2012 Dmitry Vyukov <dvyukov@google.com> tsan/asan: kill STL
First, placement new from standard library conflicts with our own.
Second, we are in trouble if user uses the same function (we either get instrumented code in runtime, or non-instrumented code in user program).



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159738 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
4c49666e611f06241bb8462cea7674d877241492 15-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] move atomic ops, min/max and sort to commnon runtime

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158496 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
cffe2f5c30c27234260d004b54152916ff0c45c6 07-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Move ReadFileToBuffer to sanitizer_common.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158138 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/sanitizer_common/sanitizer_common.cc
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_common.cc