summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage.cpp
Commit message (Collapse)AuthorAgeFilesLines
* trusty: Allow fuzzing without coverageTri Vo2021-02-101-1/+8
| | | | | | Bug: 171750250 Test: m Change-Id: I9e4cbf11fd223092f9ad800b35d0502c27f71e8f
* trusty: Fix up error messagesTri Vo2021-02-101-2/+2
| | | | | | Bug: 171750250 Test: m Change-Id: I41cde13a891da36c85df6a451b2d051c18365797
* trusty: coverage: Append .<pid>.sancov to sancov file namesTri Vo2021-01-141-2/+3
| | | | | | Bug: 175221942 Test: adb shell ./trusty_gatekeeper_fuzzer -runs=0 corpus Change-Id: Ic7a30b7531e8a327fb8ebe953fa02946e8539579
* trusty: Write out sancov file when fuzzer exitsStephen Crane2021-01-131-0/+19
| | | | | | | | | | | Add emission of sancov file when CoverageRecord is destroyed. This will occur when a fuzzer driver exits cleanly, i.e. -runs=0 with an existing corpus. Test: make trusty_gatekeeper_fuzzer Test: adb shell ./trusty_gatekeeper_fuzzer -runs=0 corpus Bug: 175221942 Change-Id: I6bd1c8b2f2091e894c35f7a4874b54577a91c8fc
* trusty: Switch to dmabuf for coverage shared memoryStephen Crane2021-01-131-9/+9
| | | | | | | | | Trusty shared memory now uses dmabuf instead of memfd. Switch the coverage buffer allocation to use libdmabufheap. Test: atest libtrusty_coverage_test Bug: None Change-Id: I067dd0774d19b42380ce5cb8ceb3541fa77ef9f0
* Add explicit Result::has_value() checks where neededBernie Innocenti2020-12-191-3/+3
| | | | | Test: m checkbuild continuous_instrumentation_tests continuous_instrumentation_tests_api_coverage continuous_native_tests device-tests platform_tests Change-Id: Ifd5dcda48e370d750e243d427e68a77dce333951
* trusty: Retrieve coverage PCs from coverage recordStephen Crane2020-12-141-4/+111
| | | | | | | | | | | | | | Adds the ability to retrieve and save program counter information from the trusty coverage record data. PC information is saved to a .sancov file, parseable by the LLVM sancov tool. Sancov can then symbolize and display this coverage information for consumption by humans. Adds a sancov dump to the libtrusty_coverage_test for testing. Bug: 175221942 Test: atest libtrusty_coverage_test Test: Retrieve sancov file and manually symbolize with sancov Change-Id: I342ea2ca9abb87986b2904ff69415544ee6070fc
* trusty: coverage: Coverage client libraryTri Vo2020-11-301-0/+172
Bug: 169776499 Test: /data/nativetest64/libtrusty_coverage_test/libtrusty_coverage_test Change-Id: I5f432a3df04fe7b0e2940a12f8d28b3d0655791f