summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage.cpp
AgeCommit message (Collapse)Author
2021-02-10trusty: Allow fuzzing without coverageTri Vo
Bug: 171750250 Test: m Change-Id: I9e4cbf11fd223092f9ad800b35d0502c27f71e8f
2021-02-10trusty: Fix up error messagesTri Vo
Bug: 171750250 Test: m Change-Id: I41cde13a891da36c85df6a451b2d051c18365797
2021-01-14trusty: coverage: Append .<pid>.sancov to sancov file namesTri Vo
Bug: 175221942 Test: adb shell ./trusty_gatekeeper_fuzzer -runs=0 corpus Change-Id: Ic7a30b7531e8a327fb8ebe953fa02946e8539579
2021-01-13trusty: Write out sancov file when fuzzer exitsStephen Crane
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
2021-01-13trusty: Switch to dmabuf for coverage shared memoryStephen Crane
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
2020-12-19Add explicit Result::has_value() checks where neededBernie Innocenti
Test: m checkbuild continuous_instrumentation_tests continuous_instrumentation_tests_api_coverage continuous_native_tests device-tests platform_tests Change-Id: Ifd5dcda48e370d750e243d427e68a77dce333951
2020-12-14trusty: Retrieve coverage PCs from coverage recordStephen Crane
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
2020-11-30trusty: coverage: Coverage client libraryTri Vo
Bug: 169776499 Test: /data/nativetest64/libtrusty_coverage_test/libtrusty_coverage_test Change-Id: I5f432a3df04fe7b0e2940a12f8d28b3d0655791f