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 /sys | |
| 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 'sys')
| -rw-r--r-- | sys/linux/init.go | 2 |
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 ) |
