Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adopt Rust's source-based code coverage instrumentation #3119

Merged
merged 66 commits into from
Aug 27, 2024
Merged
Changes from 1 commit
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
b786e18
Adopt Rust's region-based coverage instrumentation
adpaco-aws Feb 8, 2024
8741945
Add missing file
adpaco-aws Apr 2, 2024
b3813fd
Serialize results
adpaco-aws Apr 3, 2024
99eda5a
Print where coverage results are saved
adpaco-aws Apr 3, 2024
42836c1
Match on parentheses, all props need to match
adpaco-aws Apr 5, 2024
ec1f196
Better splits
adpaco-aws Apr 8, 2024
a30de87
Autoformat
adpaco-aws Apr 18, 2024
3dfa074
Fixes for toolchain upgrade sync
adpaco-aws Apr 20, 2024
89dc04b
Missing copyright
adpaco-aws Apr 20, 2024
fe0ee14
Remove `cov` subcommand
adpaco-aws Apr 22, 2024
6fd483b
Update unstable option for source coverage
adpaco-aws Apr 22, 2024
12216ec
fixes for `clippy`
adpaco-aws Apr 22, 2024
e010665
Use square brackets to match on func. name
adpaco-aws Apr 22, 2024
d512c4b
Use curly brackets instead
adpaco-aws Apr 22, 2024
fa8e2bd
Merge branch 'main' into region-cov-basic
adpaco-aws Jul 29, 2024
c68c7ed
Fix issues related to toolchain update
adpaco-aws Jul 30, 2024
77d53c2
Save timestamped coverage metadata and results
adpaco-aws Aug 12, 2024
d9ad862
Followup fix warnings and format
adpaco-aws Aug 12, 2024
655ee69
Comment out debugging statements
adpaco-aws Aug 12, 2024
ecf1f7e
Do not instrument stdlib
adpaco-aws Aug 12, 2024
e086ef1
Better names in `codegen_coverage`
adpaco-aws Aug 12, 2024
a8d5c8f
Update RFC number
adpaco-aws Aug 12, 2024
0b5faa5
Add placeholder to show coverage summary
adpaco-aws Aug 12, 2024
bd5dee6
Merge branch 'main' into region-cov-basic
adpaco-aws Aug 13, 2024
0229a40
Cleanup and document coverage-related compiler APIs
adpaco-aws Aug 13, 2024
e4dda7a
Improve coverage checks postprocessing
adpaco-aws Aug 13, 2024
b01cb64
Implement `Display` for `CoverageResults` and use
adpaco-aws Aug 13, 2024
f79e074
Clarify comment in `format_coverage`
adpaco-aws Aug 13, 2024
c0008d5
Reformat
adpaco-aws Aug 14, 2024
9730d5f
Deal with `clippy` issues
adpaco-aws Aug 14, 2024
e88a056
Reformat
adpaco-aws Aug 14, 2024
dc37cfd
Bless coverage tests with source coverage results
adpaco-aws Aug 14, 2024
f029874
Bless tests more
adpaco-aws Aug 14, 2024
6eefd6f
Fix postprocess with closures - bless test too
adpaco-aws Aug 14, 2024
0262056
Fix format in tests..
adpaco-aws Aug 14, 2024
be21bd7
Manual `cargo update` to see if lock errors go away
adpaco-aws Aug 14, 2024
db1b1a3
Scaffold coverage results saving for standalone mdoe
adpaco-aws Aug 14, 2024
0162d30
Save coverage results with standalone mode
adpaco-aws Aug 15, 2024
9620601
Format fixes
adpaco-aws Aug 15, 2024
8511087
Add test for saving coverage results
adpaco-aws Aug 15, 2024
a94800e
Merge branch 'main' into region-cov-basic
adpaco-aws Aug 15, 2024
93faa8a
Format new test
adpaco-aws Aug 15, 2024
d484c54
Add running test to `coverage`
adpaco-aws Aug 15, 2024
9afd0a3
Fix `variant.rs` test
adpaco-aws Aug 15, 2024
a8bb841
Merge branch 'main' into region-cov-basic
adpaco-aws Aug 15, 2024
e630a32
Avoid problems with functions with cov info
adpaco-aws Aug 16, 2024
7bfd919
Temp: Run `kani-perf.sh` with coverage on
adpaco-aws Aug 16, 2024
95e8788
Use $ as the separator for function names
adpaco-aws Aug 16, 2024
a79c9d6
Remove comment and `-C opt-level=0`
adpaco-aws Aug 20, 2024
5a574f7
Undo change in `compiletest` to run with coverage
adpaco-aws Aug 20, 2024
0943ee3
Format
adpaco-aws Aug 20, 2024
f86595b
Merge branch 'main' into region-cov-basic
adpaco-aws Aug 20, 2024
e6165a2
Use `time` instead of `chrono`
adpaco-aws Aug 20, 2024
ecf1d7e
Change in format
adpaco-aws Aug 20, 2024
047f24d
Fix test description
adpaco-aws Aug 20, 2024
88ba7e5
Paste link to issue
adpaco-aws Aug 20, 2024
c0cc10d
Reorganize and document tests
adpaco-aws Aug 20, 2024
fb7c9e9
Fix up some `expected` outputs
adpaco-aws Aug 21, 2024
cf3b465
Make `parse_coverage_opaque` return a `CovTerm` directly
adpaco-aws Aug 22, 2024
a7ea4ee
Add documentation to `parse_coverage_opaque`
adpaco-aws Aug 22, 2024
0d56bdd
Remove `coverage_args` module
adpaco-aws Aug 22, 2024
8912288
Add timestamp comment
adpaco-aws Aug 23, 2024
1f821fd
Fix args and comment in postprocessing
adpaco-aws Aug 23, 2024
7ad9c8d
Add comment on regex
adpaco-aws Aug 23, 2024
41882b4
Merge branch 'main' into region-cov-basic
adpaco-aws Aug 23, 2024
50e1378
Merge branch 'main' into region-cov-basic
adpaco-aws Aug 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Do not instrument stdlib
  • Loading branch information
adpaco-aws committed Aug 12, 2024
commit ecf1f7e126583d51bfeb68be6f738b98443b8bbb
8 changes: 1 addition & 7 deletions tools/build-kani/src/sysroot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,7 @@ pub fn build_lib(bin_folder: &Path) -> Result<()> {
fn build_verification_lib(compiler_path: &Path) -> Result<()> {
let extra_args =
["-Z", "build-std=panic_abort,std,test", "--config", "profile.dev.panic=\"abort\""];
let compiler_args = [
"--kani-compiler",
"-Cllvm-args=--ignore-global-asm --build-std",
"-Cinstrument-coverage",
"-Z",
"no-profiler-runtime",
];
let compiler_args = ["--kani-compiler", "-Cllvm-args=--ignore-global-asm --build-std"];
let packages = ["std", "kani", "kani_macros"];
let artifacts = build_kani_lib(compiler_path, &packages, &extra_args, &compiler_args)?;
copy_artifacts(&artifacts, &kani_sysroot_lib(), true)
Expand Down