@@ -124,6 +124,11 @@ pub type pthread_jit_write_callback_t = ::Option<extern "C" fn(ctx: *mut ::c_voi
124
124
pub type os_unfair_lock = os_unfair_lock_s ;
125
125
pub type os_unfair_lock_t = * mut os_unfair_lock ;
126
126
127
+ pub type os_log_t = * mut :: c_void ;
128
+ pub type os_log_type_t = u8 ;
129
+ pub type os_signpost_id_t = u64 ;
130
+ pub type os_signpost_type_t = u8 ;
131
+
127
132
pub type vm_statistics_t = * mut vm_statistics ;
128
133
pub type vm_statistics_data_t = vm_statistics ;
129
134
pub type vm_statistics64_t = * mut vm_statistics64 ;
@@ -3895,6 +3900,16 @@ pub const OS_UNFAIR_LOCK_INIT: os_unfair_lock = os_unfair_lock {
3895
3900
_os_unfair_lock_opaque : 0 ,
3896
3901
} ;
3897
3902
3903
+ pub const OS_LOG_TYPE_DEFAULT : :: os_log_type_t = 0x00 ;
3904
+ pub const OS_LOG_TYPE_INFO : :: os_log_type_t = 0x01 ;
3905
+ pub const OS_LOG_TYPE_DEBUG : :: os_log_type_t = 0x02 ;
3906
+ pub const OS_LOG_TYPE_ERROR : :: os_log_type_t = 0x10 ;
3907
+ pub const OS_LOG_TYPE_FAULT : :: os_log_type_t = 0x11 ;
3908
+
3909
+ pub const OS_SIGNPOST_EVENT : :: os_signpost_type_t = 0x00 ;
3910
+ pub const OS_SIGNPOST_INTERVAL_BEGIN : :: os_signpost_type_t = 0x01 ;
3911
+ pub const OS_SIGNPOST_INTERVAL_END : :: os_signpost_type_t = 0x02 ;
3912
+
3898
3913
pub const MINSIGSTKSZ : :: size_t = 32768 ;
3899
3914
pub const SIGSTKSZ : :: size_t = 131072 ;
3900
3915
@@ -5259,6 +5274,15 @@ extern "C" {
5259
5274
pub fn os_unfair_lock_assert_owner ( lock : os_unfair_lock_t ) ;
5260
5275
pub fn os_unfair_lock_assert_not_owner ( lock : os_unfair_lock_t ) ;
5261
5276
5277
+ pub fn os_log_create ( subsystem : * const :: c_char , category : * const :: c_char ) -> :: os_log_t ;
5278
+ pub fn os_log_type_enabled ( oslog : :: os_log_t , tpe : :: os_log_type_t ) -> bool ;
5279
+ pub fn os_signpost_id_make_with_pointer (
5280
+ log : :: os_log_t ,
5281
+ ptr : * const :: c_void ,
5282
+ ) -> :: os_signpost_id_t ;
5283
+ pub fn os_signpost_id_generate ( log : :: os_log_t ) -> :: os_signpost_id_t ;
5284
+ pub fn os_signpost_enabled ( log : :: os_log_t ) -> bool ;
5285
+
5262
5286
pub fn thread_policy_set (
5263
5287
thread : thread_t ,
5264
5288
flavor : thread_policy_flavor_t ,
0 commit comments