mirror of
https://git.freebsd.org/ports.git
synced 2025-05-12 23:31:50 -04:00
The igt testing suite is separated into tests and tools that target kms, memory management, and command submission. These tests are especially helpful for low-level reporting, transparent tracking of kernel changes, and efficient debugging of modern drm drivers. Reviewed by: diizzy, lwhsu, jrm Differential Revision: https://reviews.freebsd.org/D36213
24 lines
594 B
C
24 lines
594 B
C
--- lib/igt_perf.h.orig 2022-08-31 20:00:01 UTC
|
|
+++ lib/igt_perf.h
|
|
@@ -27,10 +27,13 @@
|
|
|
|
#include <stdint.h>
|
|
|
|
+#ifdef __linux__
|
|
#include <linux/perf_event.h>
|
|
+#endif
|
|
|
|
#include "igt_gt.h"
|
|
|
|
+#ifdef __linux__
|
|
static inline int
|
|
perf_event_open(struct perf_event_attr *attr,
|
|
pid_t pid,
|
|
@@ -50,6 +53,7 @@ perf_event_open(struct perf_event_attr *attr,
|
|
attr->size = sizeof(*attr);
|
|
return syscall(__NR_perf_event_open, attr, pid, cpu, group_fd, flags);
|
|
}
|
|
+#endif /* __linux__ */
|
|
|
|
uint64_t igt_perf_type_id(const char *device);
|
|
int igt_perf_open(uint64_t type, uint64_t config);
|