aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--executor/executor_bsd.h14
-rw-r--r--pkg/host/host_openbsd.go1
2 files changed, 3 insertions, 12 deletions
diff --git a/executor/executor_bsd.h b/executor/executor_bsd.h
index 3af57fa5b..15ac8aad2 100644
--- a/executor/executor_bsd.h
+++ b/executor/executor_bsd.h
@@ -38,22 +38,12 @@ static long execute_syscall(const call_t* c, long a[kMaxArgs])
return __syscall(c->sys_nr, a[0], a[1], a[2], a[3], a[4], a[5], a[6], a[7], a[8]);
}
-#if GOOS_freebsd
-
-// KCOV support was added in https://svnweb.freebsd.org/changeset/base/342962
-#include <sys/kcov.h>
-
-#elif GOOS_openbsd
+#if GOOS_freebsd || GOOS_openbsd
-// TODO(mptre): temporary defined until trace-cmp is fully supported
-#define KCOV_MODE_TRACE_CMP 2
+// KCOV support was added to FreeBSD in https://svnweb.freebsd.org/changeset/base/342962
#include <sys/kcov.h>
-#endif
-
-#if GOOS_freebsd || GOOS_openbsd
-
static void cover_open(cover_t* cov, bool extra)
{
int fd = open("/dev/kcov", O_RDWR);
diff --git a/pkg/host/host_openbsd.go b/pkg/host/host_openbsd.go
index 915078300..4e4a509c7 100644
--- a/pkg/host/host_openbsd.go
+++ b/pkg/host/host_openbsd.go
@@ -13,6 +13,7 @@ func isSupported(c *prog.Syscall, target *prog.Target, sandbox string) (bool, st
func init() {
checkFeature[FeatureCoverage] = unconditionallyEnabled
+ checkFeature[FeatureComparisons] = unconditionallyEnabled
checkFeature[FeatureNetworkInjection] = unconditionallyEnabled
checkFeature[FeatureSandboxSetuid] = unconditionallyEnabled
}