]> granicus.if.org Git - llvm/commit
[sancov] Ignore PC samples with value 0
authorPetr Hosek <phosek@chromium.org>
Thu, 11 Jul 2019 22:59:23 +0000 (22:59 +0000)
committerPetr Hosek <phosek@chromium.org>
Thu, 11 Jul 2019 22:59:23 +0000 (22:59 +0000)
commit3b8424a079200e13706af605008e7dc3dd4ac145
treecf9e909b86c83cdb06edbf4796b24a31c84b9946
parent3f54675197e7ae20d67b303f6e250c06e84e7e95
[sancov] Ignore PC samples with value 0

The sancov runtime for the (Fuchsia) Zircon kernel delivers results
in the standard format, but as the full array of possible samples
with 0 in uncovered slots. That runtime delivers "live" data and
has no final "export" pass to compactify out the uncovered slots,
and it seems silly to require another offline tool just for that.

Patch By: mcgrathr
Differential Revision: https://reviews.llvm.org/D63695

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365839 91177308-0d34-0410-b5e6-96231b3b80d8
tools/sancov/sancov.cpp