aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux
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 /sys/linux
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 'sys/linux')
-rw-r--r--sys/linux/init.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/linux/init.go b/sys/linux/init.go
index e0efe22c7..9b53116d4 100644
--- a/sys/linux/init.go
+++ b/sys/linux/init.go
@@ -83,6 +83,7 @@ func InitTarget(target *prog.Target) {
KCOV_ENABLE = uintptr(target.GetConst("KCOV_ENABLE"))
KCOV_REMOTE_ENABLE = uintptr(target.GetConst("KCOV_REMOTE_ENABLE"))
KCOV_DISABLE = uintptr(target.GetConst("KCOV_DISABLE"))
+ KCOV_TRACE_PC = uintptr(target.GetConst("KCOV_TRACE_PC"))
KCOV_TRACE_CMP = uintptr(target.GetConst("KCOV_TRACE_CMP"))
}
}
@@ -93,6 +94,7 @@ var (
KCOV_ENABLE uintptr
KCOV_REMOTE_ENABLE uintptr
KCOV_DISABLE uintptr
+ KCOV_TRACE_PC uintptr
KCOV_TRACE_CMP uintptr
)