summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/scripts/sancov.py
Commit message (Collapse)AuthorAgeFilesLines
* [sanitizer-coverage] remove stale code (old coverage); compiler-rt part Kostya Serebryany2017-05-311-1/+1
| | | | llvm-svn: 304318
* sancov.py: [Py3] Get rid of "print" statement. Use print() or write() instead.NAKAMURA Takumi2017-02-121-26/+28
| | | | | | Differential Revision: https://reviews.llvm.org/D27405 llvm-svn: 294880
* sancov.py: [Py3] Use sys.stdout.buffer for bytes.NAKAMURA Takumi2017-02-111-2/+3
| | | | | | This is part of https://reviews.llvm.org/D27405 llvm-svn: 294812
* sancov.py: [Py3] Use bytes.decode() explicitly.NAKAMURA Takumi2017-02-071-1/+1
| | | | | | | | Or bogus filename like "b'foo'" would be generated. This is part of https://reviews.llvm.org/D27405 llvm-svn: 294307
* sancov.py: [Py3] Use '//' instead of '/' as division operator.NAKAMURA Takumi2017-02-071-3/+5
| | | | | | | | Py3 emits float with '/'. This is part of https://reviews.llvm.org/D27405 llvm-svn: 294306
* [ASAN] Use struct instead of array in sancov.pySagar Thakur2016-04-221-8/+13
| | | | | | | | | | | | Summary: When using 32-bit python with 64-bit asan the pc array in sancov.py cannot fit in 64-bit pc's because the type-code 'L' for arrays in python corresponds to the C type long which is only of 4 bytes. Because of this some of the coverage tool tests fail on mips. To fix these test possible solutions are to use 64-bit python or use struct.unpack with the 'Q' type-code. We have used struct.unpack with 'Q' type code since it is not appropriate to have a 64-bit python on all hosts. Reviewed by kcc, aizatsky Differential: http://reviews.llvm.org/D18817 llvm-svn: 267126
* [sanitizer] Update "sancov.py missing" to allow __sanitizer_cov_with_check().Sergey Matveev2015-05-121-1/+5
| | | | llvm-svn: 237149
* [sanitizer] Extend sancov.py to show which PCs are missing from coverage.Sergey Matveev2015-05-061-4/+41
| | | | | | | | Example usage: sancov.py print a.out.1234.sancov | sancov.py missing a.out llvm-svn: 236637
* [Sanitizers Coverage] Make sancov.py work with wildcards from Windows CMD shellTimur Iskhodzhanov2015-04-011-6/+13
| | | | | | Reviewed at http://reviews.llvm.org/D8724 llvm-svn: 233809
* [PowerPC]Fix sancov.py to once again support big endianBill Seurer2015-03-251-9/+9
| | | | | | | | Some recent changes to sancov.py broke ASAN for big endian. This fixes it. http://reviews.llvm.org/D8594 llvm-svn: 233189
* [sanitizer] fix 'sancov.py merge' and add a test for itKostya Serebryany2015-03-191-9/+11
| | | | llvm-svn: 232763
* [sanitizer] trying to fix sancov.py with 32-bit pythonKostya Serebryany2015-03-191-7/+18
| | | | llvm-svn: 232754
* [sanitizer] change the sanitizer coverage format once again, this time ↵Kostya Serebryany2015-03-181-34/+53
| | | | | | adding a magic to the beginning of the file llvm-svn: 232679
* [sanitizer] add run-time a flag coverage_order_pcs. When true, the PCs are ↵Kostya Serebryany2015-03-181-3/+6
| | | | | | dumped in the order of their appearance llvm-svn: 232573
* [sanitizer] change the format of coverage dump: instead of always dumping ↵Kostya Serebryany2015-03-171-33/+44
| | | | | | 32-bit offsets dump 32-bit offsets on 32-bit arch and 64-bit offsets on 64-bit arch. Also add the 'bits' parameter to sancov.py. This is a user-visible interface change. llvm-svn: 232555
* [sanitizer] Tweak sancov.py output.Evgeniy Stepanov2014-12-251-1/+1
| | | | llvm-svn: 224841
* [sanitizer] sancov.py: print status to stderrEvgeniy Stepanov2014-12-251-1/+1
| | | | llvm-svn: 224840
* [sancov] Handle spaces in module name.Evgeniy Stepanov2014-06-031-2/+1
| | | | llvm-svn: 210108
* [sancov] Remove debug leftovers and update usage text.Evgeniy Stepanov2014-06-021-4/+2
| | | | llvm-svn: 210009
* [asancov] Write coverage directly to a memory-mapped file.Evgeniy Stepanov2014-05-271-0/+61
| | | | | | | | | | | 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
* [sanitizer] Support sandboxing in sanitizer coverage.Sergey Matveev2014-05-191-7/+40
| | | | | | | | | | | Summary: Sandboxed code may now pass additional arguments to __sanitizer_sandbox_on_notify() to force all coverage data to be dumped to a single file (the default is one file per module). The user may supply a file or socket to write to. The latter option can be used to broker out the file writing functionality. If -1 is passed, we pre-open a file. llvm-svn: 209121
* [asan] helper script to dump/merge coverage dataKostya Serebryany2013-11-151-0/+56
llvm-svn: 194809
OpenPOWER on IntegriCloud