aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host/host_linux.go
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2019-01-17 14:53:44 +0100
committerAndrey Konovalov <andreyknvl@gmail.com>2019-01-17 16:06:59 +0100
commit2cd76d213763c45f05fa0a26d518d6a040c7c8dd (patch)
treece22e5ce057a0e93dfbf11ece83550152a5abf5f /pkg/host/host_linux.go
parent769e75ed8e06265afdd9b61898b34439086b0028 (diff)
kcov: some fixes for extra coverage
Use PC tracing mode when detecting KCOV_REMOTE_ENABLE support in the kernel. Also fix kcov_remote_handle_usb argument.
Diffstat (limited to 'pkg/host/host_linux.go')
-rw-r--r--pkg/host/host_linux.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/host/host_linux.go b/pkg/host/host_linux.go
index 9e90bbd1f..12cd048a0 100644
--- a/pkg/host/host_linux.go
+++ b/pkg/host/host_linux.go
@@ -431,7 +431,7 @@ func checkCoverageFeature(feature int) (reason string) {
}
case FeatureExtraCoverage:
arg := KcovRemoteArg{
- TraceMode: uint32(linux.KCOV_TRACE_CMP),
+ TraceMode: uint32(linux.KCOV_TRACE_PC),
AreaSize: uint32(coverSize * unsafe.Sizeof(uintptr(0))),
NumHandles: 0,
CommonHandle: 0,