]> git.saurik.com Git - apple/xnu.git/blobdiff - tests/kperf_helpers.h
xnu-7195.81.3.tar.gz
[apple/xnu.git] / tests / kperf_helpers.h
index 466f3d9a7739bb9dc334409cc156982dc8d0d073..130d3e1b22fb8e97b1cfbfa1f497428861f582a3 100644 (file)
@@ -2,7 +2,16 @@
 #define KPERF_HELPERS_H
 
 #include <unistd.h>
+#include <stdbool.h>
 
-void configure_kperf_stacks_timer(pid_t pid, unsigned int period_ms);
+void configure_kperf_stacks_timer(pid_t pid, unsigned int period_ms,
+    bool quiet);
+
+#define PERF_SAMPLE KDBG_EVENTID(DBG_PERF, 0, 0)
+#define PERF_KPC_PMI KDBG_EVENTID(DBG_PERF, 6, 0)
+#define PERF_STK_KHDR  UINT32_C(0x25020014)
+#define PERF_STK_UHDR  UINT32_C(0x25020018)
+#define PERF_STK_KDATA UINT32_C(0x2502000c)
+#define PERF_STK_UDATA UINT32_C(0x25020010)
 
 #endif /* !defined(KPERF_HELPERS_H) */