summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/scripts
Commit message (Collapse)AuthorAgeFilesLines
* [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
* [asan] Tweak gen_dynamic_list.py to work with both Py2 and Py3.Evgeniy Stepanov2015-10-011-1/+1
| | | | llvm-svn: 249051
* [asan] Add new(unsigned int) to ASan interface list.Evgeniy Stepanov2015-05-281-5/+12
| | | | | | | | | Also, sized-delete with size_t == unsigned int. These guys appear when building for Android with gnu-stl. Fixes a number of ASan tests in that particular configuration. llvm-svn: 238484
* Use /usr/bin/env to find pythonEd Maste2015-05-282-2/+2
| | | | | | | | | | Python may not be /usr/bin/python on some systems. For example, on FreeBSD it will be /usr/local/bin/python. Reviewers: samsonov Differential Revision: http://reviews.llvm.org/D9914 llvm-svn: 238428
* [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
* [asan] Fix dynamic-runtime tests.Evgeniy Stepanov2015-05-061-2/+3
| | | | | | | | | | They are not part of check-all :( This change adds sized-delete operators to the version list, and disables the hack that excluded versioned symbols from the dynamic list - this is not an issue in this case. llvm-svn: 236559
* [asan] Use a version script to limit the symbols exported by the ASan shared ↵Evgeniy Stepanov2015-05-051-4/+17
| | | | | | runtime library. llvm-svn: 236551
* [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
* Exclude LLVM sources from lint check.Alexey Samsonov2015-03-041-4/+0
| | | | | | | Checking files from different repository is not nice, and LLVM code follows its own style guide anyway. llvm-svn: 231289
* [sanitizer] Fix bashism in check_lint.sh.Evgeniy Stepanov2015-01-161-1/+1
| | | | llvm-svn: 226267
* [sanitizer] Cleanup linter temporary files.Evgeniy Stepanov2015-01-161-1/+8
| | | | llvm-svn: 226266
* [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
* Custom wrappers for DFSanitizing sprintf & snprintf.Lorenzo Martignoni2014-10-081-1/+1
| | | | | | Differential Revision: http://reviews.llvm.org/D5561 llvm-svn: 219293
* Avoid bashisms and switch to /bin/shEd Maste2014-10-071-14/+23
| | | | | | | | Bash may not be installed on some systems by default, like FreeBSD. Differential Revision: http://reviews.llvm.org/D5654 llvm-svn: 219231
* Adjust gen_dynamic_list for PowerPC function descriptorsAlexey Samsonov2014-07-211-1/+5
| | | | llvm-svn: 213577
* Don't check lint for SpecialCaseList.cppAlexey Samsonov2014-07-091-2/+1
| | | | llvm-svn: 212642
* [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
* cleanup and test litlintGreg Fitzgerald2014-05-152-13/+82
| | | | llvm-svn: 208907
* Fix typosAlp Toker2014-05-151-2/+2
| | | | llvm-svn: 208841
* migrate litlint from argparse to optparse. reenabledGreg Fitzgerald2014-05-142-8/+6
| | | | llvm-svn: 208826
* Disabled litlint. It requires Python 2.7 or laterGreg Fitzgerald2014-05-141-1/+2
| | | | llvm-svn: 208823
* add script to ensure lit test contains %runGreg Fitzgerald2014-05-142-1/+31
| | | | llvm-svn: 208819
* fixed check_lint.sh in standalone buildGreg Fitzgerald2014-03-211-1/+3
| | | | | Change-Id: I30d340bbe6b2028cc0f831399b62521912dcac60 llvm-svn: 204419
* Update sanitizers' bash scripts.Alexey Samsonov2014-02-251-7/+7
| | | | | | | * Fix bash scripts to work on FreeBSD (patch by Viktor Kutuzov) * Update locations of lit tests in check_lint script. llvm-svn: 202145
* [sanitizer] Support most ioctls from /usr/include/sound/.Sergey Matveev2014-01-311-1/+1
| | | | llvm-svn: 200544
* Fix gen_dynamic_list.py for Python 3. Patch by Marcoen Hirschberg.Alexey Samsonov2013-12-171-4/+4
| | | | llvm-svn: 197493
* Implement a bunch of custom glibc wrappers & corresponding testsLorenzo Martignoni2013-11-261-0/+6
| | | | llvm-svn: 195749
* Revert r195381, "Implement a bunch of custom glibc wrappers & corresponding ↵Peter Collingbourne2013-11-211-8/+0
| | | | | | | | tests." It broke a buildbot. llvm-svn: 195392
* Implement a bunch of custom glibc wrappers & corresponding tests.Peter Collingbourne2013-11-211-0/+8
| | | | | | | | | | | | | - Introduce several new custom glibc wrappers - Implement some of the not yet implemented wrappers - Refactor and extend the tests - Add script to make sure all declare custom glibc wrappers are implemented & tested. Patch by Lorenzo Martignoni! Differential Revision: http://llvm-reviews.chandlerc.com/D2234 llvm-svn: 195381
* [asan] helper script to dump/merge coverage dataKostya Serebryany2013-11-151-0/+56
| | | | llvm-svn: 194809
* [Sanitizer] Add pthread_attr_getaffinity_np to the list of versioned functionsAlexey Samsonov2013-10-261-1/+2
| | | | llvm-svn: 193470
* [Sanitizer] Fix lint checker script on MacAlexey Samsonov2013-10-161-4/+4
| | | | llvm-svn: 192791
* tsan: do not leave trash source files in source dirDmitry Vyukov2013-10-151-1/+1
| | | | llvm-svn: 192700
* [libsanitizer] Pass an explicit template to mktemp. Running mktemp without a ↵Alexander Potapenko2013-09-201-3/+3
| | | | | | template doesn't work on Darwin. llvm-svn: 191084
* [Sanitizer] Add pthread_cond_init to the list of versioned functionsAlexey Samsonov2013-09-201-3/+4
| | | | llvm-svn: 191078
* Minor updates to gen_dynamic_list script suggested by gliderAlexey Samsonov2013-08-291-42/+49
| | | | llvm-svn: 189588
* [sanitizer] Parallelize lint checker scriptAlexey Samsonov2013-08-291-28/+36
| | | | llvm-svn: 189578
* sanitizer_common: Use PYTHON_EXECUTABLE to choose appropriate python.Will Dietz2013-08-281-1/+3
| | | | | | Fixes build on systems where 'python' is not python2. llvm-svn: 189486
* Make lint checker script more robustAlexey Samsonov2013-08-281-3/+4
| | | | llvm-svn: 189479
OpenPOWER on IntegriCloud