From 2cd76d213763c45f05fa0a26d518d6a040c7c8dd Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Thu, 17 Jan 2019 14:53:44 +0100 Subject: 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. --- pkg/host/host_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg') 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, -- cgit mrf-deployment