llvm-cov-html-diff
This tool allows you to inspect and debug fuzzbench results to know why one fuzzer is better than the other.
- Enable the generation of llvm-cov coverage report.
- Use this tool to diff the report.
- Check the report: Check those lines that is not covered by one fuzzer but covered by the other.
Usage
- Install the tool:
pip install llvmcovdiff - Use the tool.
python -m llvmcovdiff <old_report_folder> <new_report_folder> <output_report_folder>
For example, for a fuzzbench result:
python -m llvmcovdiff ./2024-05-13-new-cov/coverage/reports/proj4_proj_crs_to_crs_fuzzer/aflplusplus/ ./2024-05-13-new-cov/coverage/reports/proj4_proj_crs_to_crs_fuzzer/afl/ out3
Develop
python3 -m build && python3 -m pip install ./dist/llvmcovdiff-0.0.4.tar.gz
Details
In generated report from llvm-cov
- There are
index.htmlthat shows the main status of the coverage. - There are
xxxx.c.htmlorxxx.h.htmlthat shows line coverage.
Given two llvm-cov report folder, We generate a new folder that shows the differences.
FAQ
- Why some line hit count changed but not highlighted?
For line coverage count, we only highlight those counts that goes from zero to non-zero, or from non-zero to zero.
Others
Thanks to https://github.com/Dentosal/llvm-codecov-diff/blob/0352d07e486f75b2dfb8bf2d7eb8a6e948e19106/app.py
Tested on python 3.10 pip 24.2:
beautifulsoup4==4.12.2
Metadata
Release files for llvmcovdiff 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llvmcovdiff-0.0.4.tar.gz | 6.8 kB | Without provenance | Details for llvmcovdiff-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llvmcovdiff-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for llvmcovdiff-0.0.4-py3-none-any.whl |
Total release size: 14.3 kB
Release files / llvmcovdiff-0.0.4.tar.gz
| Download URL | llvmcovdiff-0.0.4.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3ecbe09ea26c2164ad22a271522d3ac9414f5b1dbf3b6975d3e8753db1773ab
|
|
BLAKE2b-256 checksum How to use checksums |
66235d3020b4bbeead5bff1ef4eba0e0606dd5c53c2403f42ab9ce7e8d0f2a4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Release files / llvmcovdiff-0.0.4-py3-none-any.whl
| Download URL | llvmcovdiff-0.0.4-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
860beead2b132c77662fb654104000f0e05c1c701af9ecc0046581ecd8c7fe70
|
|
BLAKE2b-256 checksum How to use checksums |
0d3e3d07e98a62e493b2804f3f172004a1e15be9c8b9279c6b90a2ad57df0ce6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.12
|
Security for llvmcovdiff 0.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.