[igt-dev] [PATCH i-g-t v1 6/6] Include igt_freebsd.h in gem benchmarks
Jake Freeland
jake at technologyfriends.net
Fri Oct 7 23:27:57 UTC 2022
Allow benchmark compilation on a FreeBSD system using
the drop-in igt_freebsd header.
Signed-off-by: Jake Freeland <jfree at freebsd.org>
---
benchmarks/gem_exec_tracer.c | 4 ++++
benchmarks/gem_syslatency.c | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/benchmarks/gem_exec_tracer.c b/benchmarks/gem_exec_tracer.c
index e6973991..7e86473e 100644
--- a/benchmarks/gem_exec_tracer.c
+++ b/benchmarks/gem_exec_tracer.c
@@ -41,6 +41,10 @@
#include "intel_aub.h"
#include "intel_chipset.h"
+#ifdef __FreeBSD__
+#include "igt_freebsd.h"
+#endif
+
static int (*libc_close)(int fd);
static int (*libc_ioctl)(int fd, unsigned long request, void *argp);
diff --git a/benchmarks/gem_syslatency.c b/benchmarks/gem_syslatency.c
index c67b23cf..b4011baa 100644
--- a/benchmarks/gem_syslatency.c
+++ b/benchmarks/gem_syslatency.c
@@ -51,6 +51,10 @@
#define sigev_notify_thread_id _sigev_un._tid
+#ifdef __FreeBSD__
+#include "igt_freebsd.h"
+#endif
+
static volatile int done;
struct gem_busyspin {
--
2.37.3
More information about the igt-dev
mailing list