aboutsummaryrefslogtreecommitdiffstats
path: root/executor/executor_bsd.h
diff options
context:
space:
mode:
Diffstat (limited to 'executor/executor_bsd.h')
-rw-r--r--executor/executor_bsd.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/executor/executor_bsd.h b/executor/executor_bsd.h
index 3d22f91ed..1095c2beb 100644
--- a/executor/executor_bsd.h
+++ b/executor/executor_bsd.h
@@ -71,7 +71,8 @@ static void cover_open(cover_t* cov)
close(fd);
#if GOOS_freebsd
- if (ioctl(cov->fd, KIOSETBUFSIZE, kCoverSize))
+ // On FreeBSD provide the size in bytes, not in number of entries.
+ if (ioctl(cov->fd, KIOSETBUFSIZE, kCoverSize * sizeof(uint64_t)))
fail("ioctl init trace write failed");
#elif GOOS_openbsd
unsigned long cover_size = kCoverSize;