Timur Iskhodzhanov
							
						 
						
							 
							
							
							
							
								
							
							
								a6600a974a 
								
							 
						 
						
							
							
								
								Use RenameFile instead of internal_rename in non-POSIX code  
							
							 
							
							... 
							
							
							
							llvm-svn: 234490 
							
						 
						
							2015-04-09 14:45:17 +00:00  
						
					 
				
					
						
							
							
								 
								Timur Iskhodzhanov
							
						 
						
							 
							
							
							
							
								
							
							
								e8a6fbbfd3 
								
							 
						 
						
							
							
								
								Use WriteToFile instead of internal_write in non-POSIX code  
							
							 
							
							... 
							
							
							
							llvm-svn: 234487 
							
						 
						
							2015-04-09 14:11:25 +00:00  
						
					 
				
					
						
							
							
								 
								Timur Iskhodzhanov
							
						 
						
							 
							
							
							
							
								
							
							
								864308a78d 
								
							 
						 
						
							
							
								
								Introduce CloseFile to be used instead of internal_close on non-POSIX  
							
							 
							
							... 
							
							
							
							llvm-svn: 234481 
							
						 
						
							2015-04-09 12:37:05 +00:00  
						
					 
				
					
						
							
							
								 
								Timur Iskhodzhanov
							
						 
						
							 
							
							
							
							
								
							
							
								daa9e2d4e8 
								
							 
						 
						
							
							
								
								[Sanitizers] Make OpenFile more portable  
							
							 
							
							... 
							
							
							
							llvm-svn: 234410 
							
						 
						
							2015-04-08 16:03:22 +00:00  
						
					 
				
					
						
							
							
								 
								Timur Iskhodzhanov
							
						 
						
							 
							
							
							
							
								
							
							
								b97bcc4981 
								
							 
						 
						
							
							
								
								[ASan] Unify handling of loaded modules between POSIX and Windows  
							
							 
							
							... 
							
							
							
							Reviewed at http://reviews.llvm.org/D8805 
llvm-svn: 234150 
							
						 
						
							2015-04-06 12:49:30 +00:00  
						
					 
				
					
						
							
							
								 
								Alexey Samsonov
							
						 
						
							 
							
							
							
							
								
							
							
								c4ed548b40 
								
							 
						 
						
							
							
								
								[Sanitizer] Be consistent about separating ==%PID== and logged data.  
							
							 
							
							... 
							
							
							
							See https://code.google.com/p/address-sanitizer/issues/detail?id=385 .
llvm-svn: 233720 
							
						 
						
							2015-03-31 18:16:42 +00:00  
						
					 
				
					
						
							
							
								 
								Alexander Potapenko
							
						 
						
							 
							
							
							
							
								
							
							
								141e420a81 
								
							 
						 
						
							
							
								
								[ASan] Distinguish between read, write and read-write file access modes in OpenFile.  
							
							 
							
							... 
							
							
							
							This is to fix mapping coverage files into memory on OSX.
llvm-svn: 232936 
							
						 
						
							2015-03-23 10:10:46 +00:00  
						
					 
				
					
						
							
							
								 
								Alexey Samsonov
							
						 
						
							 
							
							
							
							
								
							
							
								a04ca22edf 
								
							 
						 
						
							
							
								
								Fix memory leaks in GetListOfModules() users.  
							
							 
							
							... 
							
							
							
							llvm-svn: 225472 
							
						 
						
							2015-01-08 22:31:14 +00:00  
						
					 
				
					
						
							
							
								 
								Alexey Samsonov
							
						 
						
							 
							
							
							
							
								
							
							
								b40fd1b24e 
								
							 
						 
						
							
							
								
								[Sanitizer] Remove the hardcoded limit of address ranges in LoadedModule.  
							
							 
							
							... 
							
							
							
							This should fix https://code.google.com/p/address-sanitizer/issues/detail?id=368 .
llvm-svn: 225469 
							
						 
						
							2015-01-08 22:03:05 +00:00  
						
					 
				
					
						
							
							
								 
								Evgeniy Stepanov
							
						 
						
							 
							
							
							
							
								
							
							
								05dc4be0dc 
								
							 
						 
						
							
							
								
								[asan] Allow enabling coverage at activation.  
							
							 
							
							... 
							
							
							
							This is a re-commit of r224838 + r224839, previously reverted in r224850.
Test failures were likely (still can not reproduce) caused by two lit tests
using the same name for an intermediate build target.
llvm-svn: 224853 
							
						 
						
							2014-12-26 12:32:32 +00:00  
						
					 
				
					
						
							
							
								 
								Evgeniy Stepanov
							
						 
						
							 
							
							
							
							
								
							
							
								f8c7e25560 
								
							 
						 
						
							
							
								
								Revert r224838, r224839.  
							
							 
							
							... 
							
							
							
							Flaky failures on the build bots.
llvm-svn: 224850 
							
						 
						
							2014-12-26 10:19:56 +00:00  
						
					 
				
					
						
							
							
								 
								Evgeniy Stepanov
							
						 
						
							 
							
							
							
							
								
							
							
								be9a53fec6 
								
							 
						 
						
							
							
								
								[asan] Allow enabling coverage at activation.  
							
							 
							
							... 
							
							
							
							llvm-svn: 224838 
							
						 
						
							2014-12-25 14:26:45 +00:00  
						
					 
				
					
						
							
							
								 
								Evgeniy Stepanov
							
						 
						
							 
							
							
							
							
								
							
							
								b2dacb0c76 
								
							 
						 
						
							
							
								
								[asan] Fix line >80 chars.  
							
							 
							
							... 
							
							
							
							llvm-svn: 224763 
							
						 
						
							2014-12-23 10:18:47 +00:00  
						
					 
				
					
						
							
							
								 
								Evgeniy Stepanov
							
						 
						
							 
							
							
							
							
								
							
							
								874b2bb228 
								
							 
						 
						
							
							
								
								[asan] Better error message in coverage.  
							
							 
							
							... 
							
							
							
							llvm-svn: 224762 
							
						 
						
							2014-12-23 10:12:51 +00:00  
						
					 
				
					
						
							
							
								 
								Alexey Samsonov
							
						 
						
							 
							
							
							
							
								
							
							
								656c29b08f 
								
							 
						 
						
							
							
								
								Replace InternalScopedBuffer<char> with InternalScopedString where applicable.  
							
							 
							
							... 
							
							
							
							Summary: No functionality change.
Test Plan: make check-all
Reviewers: kcc
Reviewed By: kcc
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D6472 
llvm-svn: 223164 
							
						 
						
							2014-12-02 22:20:11 +00:00  
						
					 
				
					
						
							
							
								 
								Alexey Samsonov
							
						 
						
							 
							
							
							
							
								
							
							
								26ca05ad96 
								
							 
						 
						
							
							
								
								[Sanitizer] Get rid of unnecessary allocations in StripModuleName. NFC.  
							
							 
							
							... 
							
							
							
							llvm-svn: 221287 
							
						 
						
							2014-11-04 19:34:29 +00:00  
						
					 
				
					
						
							
							
								 
								Evgeniy Stepanov
							
						 
						
							 
							
							
							
							
								
							
							
								b2b4c3ab32 
								
							 
						 
						
							
							
								
								[asan] Exclude non-executable mappings from coverage.  
							
							 
							
							... 
							
							
							
							llvm-svn: 210649 
							
						 
						
							2014-06-11 10:11:51 +00:00  
						
					 
				
					
						
							
							
								 
								Evgeniy Stepanov
							
						 
						
							 
							
							
							
							
								
							
							
								38c228a842 
								
							 
						 
						
							
							
								
								[asancov] Faster coverage in memory-mapped mode.  
							
							 
							
							... 
							
							
							
							Use caller pc of __sanitizer_cov_module_init to figure out
when 2 sequential calls are from the same module; skip
.sancov.map file update in this case.
llvm-svn: 210267 
							
						 
						
							2014-06-05 14:38:53 +00:00  
						
					 
				
					
						
							
							
								 
								Evgeniy Stepanov
							
						 
						
							 
							
							
							
							
								
							
							
								fe18102649 
								
							 
						 
						
							
							
								
								[sancov] Handle fork.  
							
							 
							
							... 
							
							
							
							Reset coverage data on fork().
For memory-mapped mode (coverage_direct=1) this helps avoid loss of data
(before this change two processes would write to the same file simultaneously).
For normal mode, this reduces coverage dump size, because PCs from the parent
process are no longer inherited by the child.
llvm-svn: 210180 
							
						 
						
							2014-06-04 12:13:54 +00:00  
						
					 
				
					
						
							
							
								 
								Evgeniy Stepanov
							
						 
						
							 
							
							
							
							
								
							
							
								bb2fc7e4bb 
								
							 
						 
						
							
							
								
								[sancov] Fix map update logic on Android.  
							
							 
							
							... 
							
							
							
							dlopen()/dlclose() are not interceptable on Android,
so we update .sancov.map in module constructor callbacks.
llvm-svn: 210098 
							
						 
						
							2014-06-03 12:15:43 +00:00  
						
					 
				
					
						
							
							
								 
								Evgeniy Stepanov
							
						 
						
							 
							
							
							
							
								
							
							
								fa5c0750f0 
								
							 
						 
						
							
							
								
								[sanitizer] Add coverage_dir flag.  
							
							 
							
							... 
							
							
							
							llvm-svn: 209815 
							
						 
						
							2014-05-29 14:33:16 +00:00  
						
					 
				
					
						
							
							
								 
								Evgeniy Stepanov
							
						 
						
							 
							
							
							
							
								
							
							
								567e516015 
								
							 
						 
						
							
							
								
								[asancov] Write coverage directly to a memory-mapped file.  
							
							 
							
							... 
							
							
							
							This way does not require a __sanitizer_cov_dump() call. That's
important on Android, where apps can be killed at arbitrary time.
We write raw PCs to disk instead of module offsets; we also write
memory layout to a separate file. This increases dump size by the
factor of 2 on 64-bit systems.
llvm-svn: 209653 
							
						 
						
							2014-05-27 12:37:52 +00:00