]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/host.h
xnu-2782.1.97.tar.gz
[apple/xnu.git] / osfmk / kern / host.h
index 3c64c3b08573f32c8383ce8529636f916fd5d137..59458f00cc2b846b3888aba15c4e189d19cad02a 100644 (file)
@@ -74,7 +74,7 @@
 #include <mach/exception_types.h>
 #include <mach/host_special_ports.h>
 #include <kern/kern_types.h>
-
+#include <mach/vm_statistics.h>
 
 struct host {
        decl_lck_mtx_data(,lock)                /* lock to protect exceptions */
@@ -89,6 +89,19 @@ extern host_data_t   realhost;
 #define host_lock(host)                lck_mtx_lock(&(host)->lock)
 #define host_unlock(host)      lck_mtx_unlock(&(host)->lock)
 
+extern vm_extmod_statistics_data_t host_extmod_statistics;
+
+typedef struct {
+       uint64_t total_user_time;
+       uint64_t total_system_time;
+       uint64_t task_interrupt_wakeups;
+       uint64_t task_platform_idle_wakeups;
+       uint64_t task_timer_wakeups_bin_1;
+       uint64_t task_timer_wakeups_bin_2;
+} expired_task_statistics_t;
+
+extern expired_task_statistics_t dead_task_statistics;
+
 #endif /* MACH_KERNEL_PRIVATE */
 
 /*