summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/sancov
Commit message (Collapse)AuthorAgeFilesLines
* Revert 374629 "[sancov] Accommodate sancov and coverage report server for ↵Vitaly Buka2019-10-129-13/+11
| | | | | | | | | | | | use under Windows" http://lab.llvm.org:8011/builders/clang-s390x-linux/builds/27650/steps/ninja%20check%201/logs/stdio http://lab.llvm.org:8011/builders/clang-ppc64be-linux-lnt/builds/31759 http://lab.llvm.org:8011/builders/clang-s390x-linux-lnt/builds/15095 http://lab.llvm.org:8011/builders/clang-ppc64be-linux-multistage/builds/21075 http://lab.llvm.org:8011/builders/clang-ppc64be-linux-lnt/builds/31759 llvm-svn: 374636
* [sancov] Accommodate sancov and coverage report server for use under WindowsVitaly Buka2019-10-129-11/+13
| | | | | | | | | | | | | | | | | | | | | | Summary: This patch makes the following changes to SanCov and its complementary Python script in order to resolve issues pertaining to non-UNIX file paths in JSON symbolization information: * Convert all paths to use forward slash. * Update `coverage-report-server.py` to correctly handle paths to sources which contain spaces. * Remove Linux platform restriction for all SanCov unit tests. All SanCov tests passed when ran on my local Windows machine. Patch by Douglas Gliner. Reviewers: kcc, filcab, phosek, morehouse, vitalybuka, metzman Reviewed By: vitalybuka Subscribers: vsk, Dor1s, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D51018 llvm-svn: 374629
* [sancov] Use LLVM Support library JSON writer in favor of individual ↵Vitaly Buka2019-10-123-78/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | implementation Summary: In this diff, I've replaced the individual implementation of `JSONWriter` with `json::OStream` provided by `llvm/Support/JSON.h`. Important Note: The output format of the JSON is considerably different compared to the original implementation. Important differences include: * New line for each entry in an array (should make diffs cleaner) * No space between keys and colon in attributed object entries. * Attributes with empty strings will now print the attribute name and a quote pair rather than excluding the attribute altogether Examples of these differences can be seen in the changes to the sancov tests which compare the JSON output. Patch by Douglas Gliner. Reviewers: kcc, filcab, phosek, morehouse, vitalybuka, metzman Subscribers: mehdi_amini, dexonsmith, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D68752 llvm-svn: 374628
* [sancov] better input parameters validationMike Aizatsky2017-03-032-1/+7
| | | | | | Differential Revision: https://reviews.llvm.org/D30370 llvm-svn: 296900
* [sancov] applying blacklist to covered points tooMike Aizatsky2017-01-192-6/+22
| | | | | | Differential Revision: https://reviews.llvm.org/D28872 llvm-svn: 292468
* [sancov] hash prefix results in huge merge files, use shorter prefixMike Aizatsky2016-12-211-19/+19
| | | | llvm-svn: 290277
* [sancov] skip dead files from computationsMike Aizatsky2016-12-174-8/+32
| | | | | | Differential Revision: https://reviews.llvm.org/D27863 llvm-svn: 290017
* [sancov] introducing symbolized coverage files (.symcov)Mike Aizatsky2016-09-285-6/+143
| | | | | | | | | | | | | | | | | | | | | Summary: Answering any meaningful questions about .sancov files requires accessing symbol information from the corresponding binary. This change introduces a separate intermediate data structure and format: symbolized coverage. It contains all symbol information that is required to answer common queries: - merging - coverd/uncovered files and functions - line status. Also removing the html report functionality from sancov: generated HTML files are too huge, and a different approach is required. Maintaining this half-working approach in the C++ is painful. Differential Revision: https://reviews.llvm.org/D24947 llvm-svn: 282639
* [sancov] extracting AArch64 test to a separate file.Mike Aizatsky2016-08-152-4/+5
| | | | llvm-svn: 278754
* Add missing REQUIRES in sancov/print_coverage_pcs.test: it requires aarch64 ↵Mehdi Amini2016-08-131-1/+1
| | | | | | as well now llvm-svn: 278601
* [AArch64] Registering default MCInstrAnalysisMike Aizatsky2016-08-122-0/+4
| | | | | | | | | | | | Even in this form it is useful: it can detect branch instructions. https://github.com/google/sanitizers/issues/706 Subscribers: aemerson, rengolin Differential Revision: https://reviews.llvm.org/D23426 llvm-svn: 278560
* [sancov] test file cleanupMike Aizatsky2016-08-121-1/+0
| | | | llvm-svn: 278556
* [sancov] MachO indirect symbols support.Mike Aizatsky2016-08-122-0/+24
| | | | | | Differential Revision: https://reviews.llvm.org/D23338 llvm-svn: 278551
* Disable sancov tests failing due to apparent endianness issuesReid Kleckner2016-08-102-2/+2
| | | | | | Undoes some of the effect of r278271 llvm-svn: 278285
* [sancov] Port sancov -print-coverage-pcs to COFFReid Kleckner2016-08-102-10/+33
| | | | | | | | | | | The export table is not considered part of the object file symbol table, so we have to look through it separately. Reviewers: kcc Differential Revision: https://reviews.llvm.org/D23321 llvm-svn: 278284
* [sancov] Run more sancov tests on non-x86-Linux machinesReid Kleckner2016-08-103-3/+3
| | | | | | | | | | | | Add the $arch-registered-target features that clang uses to disable tests that require a registered backend, so that we can run the sancov tests on Windows. LLVM's lit suite did not appear to have a per-test way to do this, and I would rather not split up the sancov tests into architecture directories. Split out of https://reviews.llvm.org/D23321 llvm-svn: 278271
* [sancov] Revert r271695 which broke all of the PPC bots.Chandler Carruth2016-06-047-10/+5
| | | | | | | | | | | Original commit message: [sancov] Run sancov tests on more platforms The only tests that need to be run on Linux are the ones that use C++ demangling. I'm assuming they will fail on Mac, since __cxa_demangle there won't handle the non-double-underscore prefixed mangled names. llvm-svn: 271763
* [sancov] Disable these tests if there is no X86 backendReid Kleckner2016-06-031-0/+4
| | | | | | Copied from test/CodeGen/X86 llvm-svn: 271698
* [sancov] Run sancov tests on more platformsReid Kleckner2016-06-037-5/+10
| | | | | | | | The only tests that need to be run on Linux are the ones that use C++ demangling. I'm assuming they will fail on Mac, since __cxa_demangle there won't handle the non-double-underscore prefixed mangled names. llvm-svn: 271695
* [sancov] using normalized filenames for blacklist checks.Mike Aizatsky2016-04-2110-29/+28
| | | | | | Differential Revision: http://reviews.llvm.org/D19395 llvm-svn: 267078
* [sancov] renaming statistics fields.Mike Aizatsky2016-03-241-4/+4
| | | | llvm-svn: 264349
* [sancov] -print-coverage-stats option to print various coverage statistics.Mike Aizatsky2016-03-241-0/+9
| | | | | | Differential Revision: http://reviews.llvm.org/D18418 llvm-svn: 264222
* [sancov] using md5 for anchors in attempt to reduce file size.Mike Aizatsky2016-03-111-1/+1
| | | | | | Differential Revision: http://reviews.llvm.org/D18102 llvm-svn: 263308
* [sancov] print_coverage_points command.Mike Aizatsky2016-02-271-0/+20
| | | | | | Differential Revision: http://reviews.llvm.org/D17670 llvm-svn: 262104
* [sancov] improved object files handling.Mike Aizatsky2016-02-127-8/+8
| | | | | | | | | | | | | | | | | | | Multi-dso programs result in multiple coverage files dumped of the form '<module_name>.<pid>.sancov'. When analyzing these coverage files it is important to use correct corresponding object file. This change removes the "-obj" sancov flag and lets user specify object file names alongside coverage files. Sancov tool would match them using <module_name> part of coverage file and short file name of the object file. Corresponding changes: - compiler-rt: http://reviews.llvm.org/D17171 - docs: http://reviews.llvm.org/D17175 Differential Revision: http://reviews.llvm.org/D17169 llvm-svn: 260628
* [sancov] html reportMike Aizatsky2016-01-141-0/+6
| | | | | | Differential Revision: http://reviews.llvm.org/D16161 llvm-svn: 257824
* [sancov] blacklist support.Mike Aizatsky2015-12-168-10/+17
| | | | | | | | | | Summary: Using the blacklist the user can filter own unwanted functions from all outputs. By default blacklist contains "fun:__sancov*" line. Differential Revision: http://reviews.llvm.org/D15364 llvm-svn: 255732
* sancov -not-covered-functions.Mike Aizatsky2015-12-042-6/+12
| | | | | | | | | | | | Summary: The command prints out list of functions that were not entered. To do this, addresses are first converted to function locations. Set operations are used for function locations. Differential Revision: http://reviews.llvm.org/D14889 review llvm-svn: 254742
* enabling sancov tests on linux x86_64 onlyMike Aizatsky2015-11-172-0/+2
| | | | | | Differential Revision: http://reviews.llvm.org/D14728 llvm-svn: 253354
* disabling sancov tests: too many failures on different platforms.Mike Aizatsky2015-11-122-0/+0
| | | | | | Differential Revision: http://reviews.llvm.org/D14624 llvm-svn: 252945
* sancov tests - platform independent separatorsMike Aizatsky2015-11-121-4/+4
| | | | llvm-svn: 252943
* sancov test suiteMike Aizatsky2015-11-127-0/+47
Differential Revision: http://reviews.llvm.org/D14589 llvm-svn: 252933
OpenPOWER on IntegriCloud