X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/8f6c56a50524aa785f7e596d52dddfb331e18961..490019cf9519204c5fb36b2fba54ceb983bb6b72:/osfmk/kern/host.h?ds=sidebyside diff --git a/osfmk/kern/host.h b/osfmk/kern/host.h index 8381a868b..59458f00c 100644 --- a/osfmk/kern/host.h +++ b/osfmk/kern/host.h @@ -69,15 +69,15 @@ #ifdef MACH_KERNEL_PRIVATE -#include +#include #include #include #include #include - +#include struct host { - decl_mutex_data(,lock) /* lock to protect exceptions */ + decl_lck_mtx_data(,lock) /* lock to protect exceptions */ ipc_port_t special[HOST_MAX_SPECIAL_PORT + 1]; struct exception_action exc_actions[EXC_TYPES_COUNT]; }; @@ -86,8 +86,21 @@ typedef struct host host_data_t; extern host_data_t realhost; -#define host_lock(host) mutex_lock(&(host)->lock) -#define host_unlock(host) mutex_unlock(&(host)->lock) +#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 */