From fc6ae81a344440b24e74577076581b6919ba49ad Mon Sep 17 00:00:00 2001 From: Anton Lindqvist Date: Thu, 27 Dec 2018 15:33:18 +0100 Subject: executor: KIOENABLE accepts a mode argument on OpenBSD --- executor/executor_bsd.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'executor') diff --git a/executor/executor_bsd.h b/executor/executor_bsd.h index 9795dd198..290ddce2b 100644 --- a/executor/executor_bsd.h +++ b/executor/executor_bsd.h @@ -52,6 +52,9 @@ static long execute_syscall(const call_t* c, long a[kMaxArgs]) #elif GOOS_openbsd +// TODO(mptre): temporary defined until trace-cmp is fully supported +#define KCOV_MODE_TRACE_CMP 2 + #include #endif @@ -88,14 +91,9 @@ static void cover_open(cover_t* cov) static void cover_enable(cover_t* cov, bool collect_comps) { -#if GOOS_freebsd int kcov_mode = flag_collect_comps ? KCOV_MODE_TRACE_CMP : KCOV_MODE_TRACE_PC; if (ioctl(cov->fd, KIOENABLE, &kcov_mode)) exitf("cover enable write trace failed, mode=%d", kcov_mode); -#elif GOOS_openbsd - if (ioctl(cov->fd, KIOENABLE)) - exitf("cover enable write trace failed"); -#endif } static void cover_reset(cover_t* cov) -- cgit mrf-deployment