diff options
| author | Andrey Konovalov <andreyknvl@google.com> | 2019-01-17 14:53:44 +0100 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@gmail.com> | 2019-01-17 16:06:59 +0100 |
| commit | 2cd76d213763c45f05fa0a26d518d6a040c7c8dd (patch) | |
| tree | ce22e5ce057a0e93dfbf11ece83550152a5abf5f /pkg | |
| parent | 769e75ed8e06265afdd9b61898b34439086b0028 (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')
| -rw-r--r-- | pkg/host/host_linux.go | 2 |
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, |
