Lines Matching defs:offsetof
107 #undef offsetof
108 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE)0)->MEMBER)
134 DECLARE("SLOCK_ILK", offsetof(usimple_lock_t, interlock));
136 DECLARE("SLOCK_TYPE", offsetof(usimple_lock_t, lock_type));
137 DECLARE("SLOCK_PC", offsetof(usimple_lock_t, debug.lock_pc));
138 DECLARE("SLOCK_THREAD", offsetof(usimple_lock_t, debug.lock_thread));
139 DECLARE("SLOCK_DURATIONH",offsetof(usimple_lock_t, debug.duration[0]));
140 DECLARE("SLOCK_DURATIONL",offsetof(usimple_lock_t, debug.duration[1]));
145 DECLARE("MUTEX_OWNER", offsetof(lck_mtx_t *, lck_mtx_owner));
146 DECLARE("MUTEX_PTR", offsetof(lck_mtx_t *, lck_mtx_ptr));
147 DECLARE("MUTEX_STATE", offsetof(lck_mtx_t *, lck_mtx_state));
149 DECLARE("MUTEX_TYPE", offsetof(lck_mtx_ext_t *, lck_mtx_deb.type));
150 DECLARE("MUTEX_PC", offsetof(lck_mtx_ext_t *, lck_mtx_deb.pc));
151 DECLARE("MUTEX_ATTR", offsetof(lck_mtx_ext_t *, lck_mtx_attr));
159 DECLARE("MUTEX_PTR", offsetof(lck_mtx_t *, lck_mtx_ptr));
162 DECLARE("GRP_MTX_STAT_UTIL", offsetof(lck_grp_t *, lck_grp_stat.lck_grp_mtx_stat.lck_grp_mtx_util_cnt));
163 DECLARE("GRP_MTX_STAT_MISS", offsetof(lck_grp_t *, lck_grp_stat.lck_grp_mtx_stat.lck_grp_mtx_miss_cnt));
164 DECLARE("GRP_MTX_STAT_WAIT", offsetof(lck_grp_t *, lck_grp_stat.lck_grp_mtx_stat.lck_grp_mtx_wait_cnt));
170 DECLARE("MTX_ACQ_TSC", offsetof(lck_mtx_ext_t *, lck_mtx_stat));
173 DECLARE("MUTEX_GRP", offsetof(lck_mtx_ext_t *, lck_mtx_grp));
178 DECLARE("GRP_MTX_STAT_DIRECT_WAIT", offsetof(lck_grp_t *, lck_grp_stat.lck_grp_mtx_stat.lck_grp_mtx_held_cnt));
180 DECLARE("GRP_MTX_STAT_HELD_MAX", offsetof(lck_grp_t *, lck_grp_stat.lck_grp_mtx_stat.lck_grp_mtx_held_max));
185 DECLARE("TH_RECOVER", offsetof(thread_t, recover));
186 DECLARE("TH_CONTINUATION", offsetof(thread_t, continuation));
187 DECLARE("TH_KERNEL_STACK", offsetof(thread_t, kernel_stack));
188 DECLARE("TH_MUTEX_COUNT", offsetof(thread_t, mutex_count));
189 DECLARE("TH_WAS_PROMOTED_ON_WAKEUP", offsetof(thread_t, was_promoted_on_wakeup));
191 DECLARE("TH_SYSCALLS_MACH", offsetof(thread_t, syscalls_mach));
192 DECLARE("TH_SYSCALLS_UNIX", offsetof(thread_t, syscalls_unix));
194 DECLARE("TASK_VTIMERS", offsetof(struct task *, vtimers));
197 DECLARE("TH_TASK", offsetof(thread_t, task));
198 DECLARE("TH_AST", offsetof(thread_t, ast));
199 DECLARE("TH_MAP", offsetof(thread_t, map));
200 DECLARE("TH_SPF", offsetof(thread_t, machine.specFlags));
201 DECLARE("TH_PCB_ISS", offsetof(thread_t, machine.iss));
202 DECLARE("TH_PCB_IDS", offsetof(thread_t, machine.ids));
203 DECLARE("TH_PCB_FPS", offsetof(thread_t, machine.ifps));
205 DECLARE("TH_COPYIO_STATE", offsetof(thread_t, machine.copyio_state));
209 DECLARE("MAP_PMAP", offsetof(vm_map_t, pmap));
218 DECLARE("KSS_EBX", offsetof(struct x86_kernel_state *, k_ebx));
219 DECLARE("KSS_ESP", offsetof(struct x86_kernel_state *, k_esp));
220 DECLARE("KSS_EBP", offsetof(struct x86_kernel_state *, k_ebp));
221 DECLARE("KSS_EDI", offsetof(struct x86_kernel_state *, k_edi));
222 DECLARE("KSS_ESI", offsetof(struct x86_kernel_state *, k_esi));
223 DECLARE("KSS_EIP", offsetof(struct x86_kernel_state *, k_eip));
225 DECLARE("KSS_RBX", offsetof(struct x86_kernel_state *, k_rbx));
226 DECLARE("KSS_RSP", offsetof(struct x86_kernel_state *, k_rsp));
227 DECLARE("KSS_RBP", offsetof(struct x86_kernel_state *, k_rbp));
228 DECLARE("KSS_R12", offsetof(struct x86_kernel_state *, k_r12));
229 DECLARE("KSS_R13", offsetof(struct x86_kernel_state *, k_r13));
230 DECLARE("KSS_R14", offsetof(struct x86_kernel_state *, k_r14));
231 DECLARE("KSS_R15", offsetof(struct x86_kernel_state *, k_r15));
232 DECLARE("KSS_RIP", offsetof(struct x86_kernel_state *, k_rip));
237 DECLARE("DS_DR0", offsetof(struct x86_debug_state32 *, dr0));
238 DECLARE("DS_DR1", offsetof(struct x86_debug_state32 *, dr1));
239 DECLARE("DS_DR2", offsetof(struct x86_debug_state32 *, dr2));
240 DECLARE("DS_DR3", offsetof(struct x86_debug_state32 *, dr3));
241 DECLARE("DS_DR4", offsetof(struct x86_debug_state32 *, dr4));
242 DECLARE("DS_DR5", offsetof(struct x86_debug_state32 *, dr5));
243 DECLARE("DS_DR6", offsetof(struct x86_debug_state32 *, dr6));
244 DECLARE("DS_DR7", offsetof(struct x86_debug_state32 *, dr7));
246 DECLARE("DS64_DR0", offsetof(struct x86_debug_state64 *, dr0));
247 DECLARE("DS64_DR1", offsetof(struct x86_debug_state64 *, dr1));
248 DECLARE("DS64_DR2", offsetof(struct x86_debug_state64 *, dr2));
249 DECLARE("DS64_DR3", offsetof(struct x86_debug_state64 *, dr3));
250 DECLARE("DS64_DR4", offsetof(struct x86_debug_state64 *, dr4));
251 DECLARE("DS64_DR5", offsetof(struct x86_debug_state64 *, dr5));
252 DECLARE("DS64_DR6", offsetof(struct x86_debug_state64 *, dr6));
253 DECLARE("DS64_DR7", offsetof(struct x86_debug_state64 *, dr7));
255 DECLARE("FP_VALID", offsetof(struct x86_fx_thread_state *,fp_valid));
257 DECLARE("SS_FLAVOR", offsetof(x86_saved_state_t *, flavor));
261 #define R_(x) offsetof(x86_saved_state_t *, ss_32.x)
283 #define R64_(x) offsetof(x86_saved_state_t *, ss_64.x)
316 #define ISF64_(x) offsetof(x86_64_intr_stack_frame_t *, x)
327 DECLARE("ISC32_OFFSET", offsetof(x86_saved_state_compat32_t *, isf64));
328 #define ISC32_(x) offsetof(x86_saved_state_compat32_t *, isf64.x)
399 offsetof(cpu_data_t *, cpu_this));
401 offsetof(cpu_data_t *, cpu_active_thread));
403 offsetof(cpu_data_t *, cpu_active_stack));
405 offsetof(cpu_data_t *, cpu_kernel_stack));
407 offsetof(cpu_data_t *, cpu_int_stack_top));
410 offsetof(cpu_data_t *, cpu_preemption_level));
413 offsetof(cpu_data_t *, cpu_hibernate));
415 offsetof(cpu_data_t *, cpu_interrupt_level));
417 offsetof(cpu_data_t *, cpu_nested_istack));
419 offsetof(cpu_data_t *,cpu_number));
421 offsetof(cpu_data_t *,cpu_running));
423 offsetof(cpu_data_t *,cpu_pending_ast));
425 offsetof(cpu_data_t *,cpu_desc_tablep));
427 offsetof(cpu_data_t *,cpu_desc_index));
429 offsetof(cpu_desc_index_t *,cdi_gdt));
431 offsetof(cpu_desc_index_t *,cdi_idt));
433 offsetof(cpu_data_t *,cpu_processor));
435 offsetof(cpu_data_t *, cpu_int_state));
437 offsetof(cpu_data_t *, cpu_int_event_time));
441 offsetof(cpu_data_t *, cpu_hi_iss));
444 offsetof(cpu_data_t *, cpu_task_cr3));
446 offsetof(cpu_data_t *, cpu_active_cr3));
448 offsetof(cpu_data_t *, cpu_kernel_cr3));
451 offsetof(cpu_data_t *, cpu_tlb_invalid));
455 offsetof(cpu_data_t *, cpu_is64bit));
457 offsetof(cpu_data_t *, cpu_task_map));
464 offsetof(cpu_data_t *, cpu_uber.cu_user_gs_base));
466 offsetof(cpu_data_t *, cpu_uber.cu_isf));
468 offsetof(cpu_data_t *, cpu_uber.cu_tmp));
470 offsetof(cpu_data_t *, cpu_uber_arg_store));
472 offsetof(cpu_data_t *, cpu_uber_arg_store_valid));
475 offsetof(cpu_data_t *, cpu_nanotime));
478 offsetof(cpu_data_t *, cpu_dr7));
480 DECLARE("hwIntCnt", offsetof(cpu_data_t *,cpu_hwIntCnt));
483 offsetof(cpu_data_t *, cpu_active_pcid));
485 offsetof(cpu_data_t *, cpu_pmap_pcid_coherentp));
487 offsetof(cpu_data_t *, cpu_pmap_pcid_coherentp_kernel));
489 offsetof(cpu_data_t *, cpu_pmap_pcid_enabled));
493 offsetof(cpu_data_t *, cpu_pmap_user_rets));
495 offsetof(cpu_data_t *, cpu_pmap_pcid_preserves));
497 offsetof(cpu_data_t *, cpu_pmap_pcid_flushes));
500 offsetof(cpu_data_t *, cpu_tlb_invalid));
502 offsetof(cpu_data_t *, cpu_tlb_invalid_local));
504 offsetof(cpu_data_t *, cpu_tlb_invalid_global));
512 DECLARE("dgLock", offsetof(struct diagWork *, dgLock));
513 DECLARE("dgFlags", offsetof(struct diagWork *, dgFlags));
514 DECLARE("dgMisc1", offsetof(struct diagWork *, dgMisc1));
515 DECLARE("dgMisc2", offsetof(struct diagWork *, dgMisc2));
516 DECLARE("dgMisc3", offsetof(struct diagWork *, dgMisc3));
517 DECLARE("dgMisc4", offsetof(struct diagWork *, dgMisc4));
518 DECLARE("dgMisc5", offsetof(struct diagWork *, dgMisc5));
535 DECLARE("TSS_ESP0", offsetof(struct i386_tss *, esp0));
536 DECLARE("TSS_SS0", offsetof(struct i386_tss *, ss0));
537 DECLARE("TSS_LDT", offsetof(struct i386_tss *, ldt));
538 DECLARE("TSS_PDBR", offsetof(struct i386_tss *, cr3));
539 DECLARE("TSS_LINK", offsetof(struct i386_tss *, back_link));
551 DECLARE("USL_INTERLOCK", offsetof(usimple_lock_t, interlock));
554 DECLARE("KADDR", offsetof(struct boot_args *, kaddr));
555 DECLARE("KSIZE", offsetof(struct boot_args *, ksize));
556 DECLARE("MEMORYMAP", offsetof(struct boot_args *, MemoryMap));
557 DECLARE("DEVICETREEP", offsetof(struct boot_args *, deviceTreeP));
560 offsetof(pal_rtc_nanotime_t *, tsc_base));
562 offsetof(pal_rtc_nanotime_t *, ns_base));
564 offsetof(pal_rtc_nanotime_t *, scale));
566 offsetof(pal_rtc_nanotime_t *, shift));
568 offsetof(pal_rtc_nanotime_t *, generation));
572 DECLARE("TIMER_ALL", offsetof(struct timer *, all_bits));
574 DECLARE("TIMER_LOW", offsetof(struct timer *, low_bits));
575 DECLARE("TIMER_HIGH", offsetof(struct timer *, high_bits));
576 DECLARE("TIMER_HIGHCHK", offsetof(struct timer *, high_bits_check));
579 offsetof(struct timer *, tstamp));
582 offsetof(struct processor *, processor_data.thread_timer));
584 offsetof(struct processor *, processor_data.kernel_timer));
586 offsetof(struct thread *, system_timer));
588 offsetof(struct thread *, user_timer));
590 offsetof(struct processor *, processor_data.system_state));
592 offsetof(struct processor *, processor_data.user_state));
594 offsetof(struct processor *, processor_data.idle_state));
596 offsetof(struct processor *, processor_data.current_state));