llvm-project/compiler-rt/lib/sanitizer_common
Kostya Serebryany 47d5569de1 [asan] Include <sys/stat.h> if __x86_64__ is defined
struct stat defined in <asm/stat.h> is incorrect for x32.  <asm/stat.h>
is included to get struct __old_kernel_stat.  But struct __old_kernel_stat
isn't used for x86-64 nor x32.  This patch includes <sys/stat.h> instead
of <asm/stat.h> and comments out size check of struct __old_kernel_stat
for x86-64.

Patch by H.J. Lu

llvm-svn: 199192
2014-01-14 07:38:53 +00:00
..
scripts Fix gen_dynamic_list.py for Python 3. Patch by Marcoen Hirschberg. 2013-12-17 12:19:16 +00:00
tests [Sanitizer] Use different MemoryMappingLayout::DumpListOfModules on Linux and Mac. 2013-12-25 11:29:19 +00:00
CMakeLists.txt [Sanitizer] Remove now unused symbolization functionality from MemoryMappingLayout 2013-12-25 12:11:06 +00:00
Makefile.mk
sanitizer_allocator.cc [sanitizer] make the allocator crash instead of returning 0 on huge size (controlled by the allocator_may_return_null flag) 2013-09-06 09:25:11 +00:00
sanitizer_allocator.h [sanitizer] Implement TwoLevelByteMap and use it for the internal allocator on 64-bit. 2013-11-25 11:33:41 +00:00
sanitizer_allocator_internal.h [asan] allow asan to use SizeClassAllocator32 on a 64-bit platform (if SANITIZER_CAN_USE_ALLOCATOR64=0). No functionality change by default is intended 2013-12-26 13:52:38 +00:00
sanitizer_asm.h [sanitizer] support toolchains that don't understand CFI directives 2013-12-05 07:44:35 +00:00
sanitizer_atomic.h [ASan] cmake cleanup: make tab/space padding in CMakeLists consistent, silence/fix some pedantic warnings 2012-07-02 06:48:10 +00:00
sanitizer_atomic_clang.h tsan: do not try to use builtin atomic operations 2013-09-21 04:59:02 +00:00
sanitizer_atomic_msvc.h [ASan] Rename a atomic_compare_exchange_strong parameter to avoid a compiler warning 2013-05-23 11:40:51 +00:00
sanitizer_common.cc [Sanitizer] Replace Symbolizer::IsAvailable and Symbolizer::IsExternalAvailable with Symbolizer::CanReturnFileLineInfo. 2013-12-25 07:09:44 +00:00
sanitizer_common.h [asan] allow asan to use SizeClassAllocator32 on a 64-bit platform (if SANITIZER_CAN_USE_ALLOCATOR64=0). No functionality change by default is intended 2013-12-26 13:52:38 +00:00
sanitizer_common_interceptors.inc Fix an ODR violation in the sanitizer runtimes. 2013-12-30 23:36:11 +00:00
sanitizer_common_interceptors_ioctl.inc Remove #include of net/ip_mroute.h for SANITIZER_MAC. 2013-11-15 19:13:08 +00:00
sanitizer_common_interceptors_scanf.inc [sanitizer] Fix handling of %n in scanf interceptor. 2013-08-09 12:58:35 +00:00
sanitizer_common_libcdep.cc [lsan] Colorize LSan reports. 2013-09-03 13:31:03 +00:00
sanitizer_common_syscalls.inc tsan: support synchronization by means of linux aio 2013-11-27 09:10:47 +00:00
sanitizer_coverage.cc [sanitizer] Introduce VReport and VPrintf macros and use them in sanitizer code. 2013-12-05 12:04:51 +00:00
sanitizer_flags.cc [Sanitizer] Always initialize a Symbolizer (even if 'symbolize' is false). 2013-12-17 11:15:39 +00:00
sanitizer_flags.h [Sanitizer] Always initialize a Symbolizer (even if 'symbolize' is false). 2013-12-17 11:15:39 +00:00
sanitizer_interception.h [sanitizer] Add missing file comment. 2013-12-20 13:13:49 +00:00
sanitizer_internal_defs.h [asan] allow asan to use SizeClassAllocator32 on a 64-bit platform (if SANITIZER_CAN_USE_ALLOCATOR64=0). No functionality change by default is intended 2013-12-26 13:52:38 +00:00
sanitizer_lfstack.h [Sanitizer] update style checker script and fix namespace style warnings 2013-01-30 07:45:58 +00:00
sanitizer_libc.cc [ASan] Follow-up fix: use #if SANITIZER_WINDOWS, not #ifdef 2013-11-25 07:56:05 +00:00
sanitizer_libc.h [sanitizer] use 16-byte aligned bzero in performance critical place (mostly for lsan) 2013-11-23 12:49:19 +00:00
sanitizer_libignore.cc [sanitizer] Introduce VReport and VPrintf macros and use them in sanitizer code. 2013-12-05 12:04:51 +00:00
sanitizer_libignore.h tsan: resolve symlinks for called_from_lib suppressions 2013-10-15 11:34:59 +00:00
sanitizer_linux.cc [Sanitizer] Move OS-specific code for MemoryMappingLayout into separate source files. 2013-12-25 08:01:16 +00:00
sanitizer_linux.h tsan: use verbosity flag in sanitizer_common code directly 2013-10-15 14:12:26 +00:00
sanitizer_linux_libcdep.cc tsan: fix Go build 2013-12-31 09:38:23 +00:00
sanitizer_list.h asan/tsan: fix bug in list implementation 2013-01-11 10:15:13 +00:00
sanitizer_mac.cc [Sanitizer] Teach MemoryMappingLayout to dump all loaded modules. 2013-12-25 08:39:38 +00:00
sanitizer_mutex.h Rename SpinMutex::AssertHeld to CheckLocked, for consistency with BlockingMutex. 2013-10-25 23:03:21 +00:00
sanitizer_placement_new.h Introduce an operator new for LowLevelAllocator, and convert most users to it. 2013-10-24 06:23:39 +00:00
sanitizer_platform.h [asan] allow asan to use SizeClassAllocator32 on a 64-bit platform (if SANITIZER_CAN_USE_ALLOCATOR64=0). No functionality change by default is intended 2013-12-26 13:52:38 +00:00
sanitizer_platform_interceptors.h [libsanitizer] fix lint errors 2013-12-30 11:12:11 +00:00
sanitizer_platform_limits_linux.cc [asan] Include <sys/stat.h> if __x86_64__ is defined 2014-01-14 07:38:53 +00:00
sanitizer_platform_limits_posix.cc PR17977: don't assume EOWNERDEAD is always defined 2013-12-09 13:21:43 +00:00
sanitizer_platform_limits_posix.h [asan] Include <sys/stat.h> if __x86_64__ is defined 2014-01-14 07:38:53 +00:00
sanitizer_posix.cc [asan] add flag uar_noreserve to use noreserve mmap for fake stack. uar_noreserve=1 will save some memory but also negatively affect performance 2013-12-13 15:03:49 +00:00
sanitizer_posix_libcdep.cc [Sanitizer] Call Windows unwinder 'slow' and share StackTrace::Unwind across all platforms. No functionality change. 2013-11-07 06:33:06 +00:00
sanitizer_printf.cc [sanitizer] Introduce VReport and VPrintf macros and use them in sanitizer code. 2013-12-05 12:04:51 +00:00
sanitizer_procmaps.h [Sanitizer] Remove now unused symbolization functionality from MemoryMappingLayout 2013-12-25 12:11:06 +00:00
sanitizer_procmaps_linux.cc [Sanitizer] Remove now unused symbolization functionality from MemoryMappingLayout 2013-12-25 12:11:06 +00:00
sanitizer_procmaps_mac.cc [Sanitizer] Remove now unused symbolization functionality from MemoryMappingLayout 2013-12-25 12:11:06 +00:00
sanitizer_quarantine.h [asan] count the size of QuarantineBatch in the total Quarantine size; make QuarantineBatch fit into 8K, fix a MSVC compile warning 2013-10-21 08:36:10 +00:00
sanitizer_report_decorator.h [ASan/RTL] Disable colored reporting on Windows 2013-08-16 11:26:26 +00:00
sanitizer_stackdepot.cc [sanitizer] Add a fast version of StackDepotGet() for use in LSan. 2013-08-26 13:24:43 +00:00
sanitizer_stackdepot.h [sanitizer] fix code style 2013-08-28 11:26:09 +00:00
sanitizer_stacktrace.cc [Sanitizer] Don't use MemoryMappingLayout in StackTrace::PrintStack - it is now a responsibility of Symbolizer class. 2013-12-25 09:29:54 +00:00
sanitizer_stacktrace.h [ASan] Get rid of ASan-specific functions for printing stack traces 2013-12-19 11:25:05 +00:00
sanitizer_stacktrace_libcdep.cc [Sanitizer] Don't use MemoryMappingLayout in StackTrace::PrintStack - it is now a responsibility of Symbolizer class. 2013-12-25 09:29:54 +00:00
sanitizer_stoptheworld.h [Sanitizer] Rename InternalVector to InternalMmapVector 2013-06-14 09:59:40 +00:00
sanitizer_stoptheworld_linux_libcdep.cc [sanitizer] Introduce VReport and VPrintf macros and use them in sanitizer code. 2013-12-05 12:04:51 +00:00
sanitizer_suppressions.cc tsan: ignore interceptors coming from specified libraries 2013-10-03 13:37:17 +00:00
sanitizer_suppressions.h tsan: ignore interceptors coming from specified libraries 2013-10-03 13:37:17 +00:00
sanitizer_symbolizer.cc [Sanitizer] Add Symbolizer::AddHooks() and use it in TSan and MSan. 2013-10-31 21:44:07 +00:00
sanitizer_symbolizer.h [Sanitizer] Add Symbolizer::GetModuleNameAndOffsetForPC() and use it in LSan suppression matching. 2013-12-25 20:15:46 +00:00
sanitizer_symbolizer_libcdep.cc [Sanitizer] Use SpinMutex for Symbolizer initialization (per dvyukov's suggestion) 2013-10-30 17:05:37 +00:00
sanitizer_symbolizer_posix_libcdep.cc [Sanitizer] Add Symbolizer::GetModuleNameAndOffsetForPC() and use it in LSan suppression matching. 2013-12-25 20:15:46 +00:00
sanitizer_symbolizer_win.cc [Sanitizer] Add Symbolizer::GetModuleNameAndOffsetForPC() and use it in LSan suppression matching. 2013-12-25 20:15:46 +00:00
sanitizer_syscall_generic.inc [nolibc] Change internal syscall API to remove reliance on libc's errno. 2013-05-08 14:43:49 +00:00
sanitizer_syscall_linux_x86_64.inc asan/msan/tsan: fix broken linux syscalls 2013-10-03 16:53:50 +00:00
sanitizer_thread_registry.cc tsan/asan: support pthread_setname_np to set thread names 2013-10-29 10:30:39 +00:00
sanitizer_thread_registry.h tsan/asan: support pthread_setname_np to set thread names 2013-10-29 10:30:39 +00:00
sanitizer_win.cc [asan] add flag uar_noreserve to use noreserve mmap for fake stack. uar_noreserve=1 will save some memory but also negatively affect performance 2013-12-13 15:03:49 +00:00