summaryrefslogtreecommitdiff
path: root/toolchain-extras/profile-extras-test.cpp
AgeCommit message (Collapse)Author
2021-01-15Replace __gcov_flush with __gcov_dump + __gcov_resetPirama Arumuga Nainar
compiler-rt removed __gcov_flush with https://reviews.llvm.org/D83149. Test: m NATIVE_COVERAGE=true NATIVE_COVERAGE_PATHS=* rand_emmc_perf Change-Id: Ib35ee97fb62ff0e81c0ca0c64a423749b86e1619
2020-01-31Remove unused property-watcher thread for native coverage flushing.Oliver Nguyen
Test: Unit tests Bug: 148406394 Change-Id: Ice8f6d59f48a489fe07c89f7f9b16428de3922ed
2020-01-13Add cross-process coverage flushing for the LLVM toolchain.Oliver Nguyen
Bug: 143977934 Test: Build with native coverage Test: kill -37 <pid> and check for coverage in /data/misc/trace Change-Id: Iadf93e62d92dc35cdaa35162ca4a75d26190db85
2019-05-22Prefix sysprop for flushing coverage with 'debug.'Pirama Arumuga Nainar
Bug: http://b/133322197 Fix selinux denials when reading the coverage.flush sysprop by prefixing it with 'debug.'. Sysprops starting with 'debug.' are readable by all processes when ro.debuggable is set. Test: Build cuttlefish with coverage and verify that selinux denials for sysprop reads no longer happen. Change-Id: I76bef0a658ce881cc81e2d2d4947bef966060376
2019-03-28Helper static library for coverage/profile collectionPirama Arumuga Nainar
Bug: http://b/128524141 This static library adds two different ways to trigger the Clang profile runtime to flush GCOV profiles: - a real-time signal (37) targeted to this process/pid - a transistion of "coverage.flush" sysprop from "0" -> "1". Test: libprofile-extras-test Change-Id: I6bc8149b32ca1aebd4646b28150985b7b93ab33f