aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_linux.h
diff options
context:
space:
mode:
Diffstat (limited to 'executor/executor_linux.h')
-rw-r--r--executor/executor_linux.h2
1 files changed, 1 insertions, 1 deletions
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");