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. --- executor/executor_linux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'executor/executor_linux.h') diff --git a/executor/executor_linux.h b/executor/executor_linux.h index 68b143ba0..a1ef8bd4c 100644 --- a/executor/executor_linux.h +++ b/executor/executor_linux.h @@ -93,7 +93,7 @@ static void cover_enable(cover_t* cov, bool collect_comps, bool extra) // Coverage buffer size of remote threads. arg.area_size = kExtraCoverSize * (is_kernel_64_bit ? 8 : 4); arg.num_handles = 1; - arg.handles[0] = kcov_remote_handle_usb(procid); + arg.handles[0] = kcov_remote_handle_usb(procid + 1); arg.common_handle = procid + 1; if (ioctl(cov->fd, KCOV_REMOTE_ENABLE, &arg)) exitf("cover enable write trace failed"); -- cgit mrf-deployment