Lines Matching refs:offsetof

87 #undef offsetof
127 DECLARE("SLOCK_ILK", offsetof(usimple_lock_data_t, interlock));
129 DECLARE("SLOCK_TYPE", offsetof(usimple_lock_data_t, lock_type));
130 DECLARE("SLOCK_PC", offsetof(usimple_lock_data_t, debug.lock_pc));
131 DECLARE("SLOCK_THREAD", offsetof(usimple_lock_data_t, debug.lock_thread));
132 DECLARE("SLOCK_DURATIONH",offsetof(usimple_lock_data_t, debug.duration[0]));
133 DECLARE("SLOCK_DURATIONL",offsetof(usimple_lock_data_t, debug.duration[1]));
138 DECLARE("MUTEX_OWNER", offsetof(lck_mtx_t, lck_mtx_owner));
139 DECLARE("MUTEX_PTR", offsetof(lck_mtx_t, lck_mtx_ptr));
140 DECLARE("MUTEX_STATE", offsetof(lck_mtx_t, lck_mtx_state));
142 DECLARE("MUTEX_PTR", offsetof(lck_mtx_t, lck_mtx_ptr));
145 DECLARE("GRP_MTX_STAT_UTIL", offsetof(lck_grp_t, lck_grp_stat.lck_grp_mtx_stat.lck_grp_mtx_util_cnt));
146 DECLARE("GRP_MTX_STAT_MISS", offsetof(lck_grp_t, lck_grp_stat.lck_grp_mtx_stat.lck_grp_mtx_miss_cnt));
147 DECLARE("GRP_MTX_STAT_WAIT", offsetof(lck_grp_t, lck_grp_stat.lck_grp_mtx_stat.lck_grp_mtx_wait_cnt));
153 DECLARE("MTX_ACQ_TSC", offsetof(lck_mtx_ext_t, lck_mtx_stat));
156 DECLARE("MUTEX_GRP", offsetof(lck_mtx_ext_t, lck_mtx_grp));
161 DECLARE("GRP_MTX_STAT_DIRECT_WAIT", offsetof(lck_grp_t, lck_grp_stat.lck_grp_mtx_stat.lck_grp_mtx_held_cnt));
163 DECLARE("GRP_MTX_STAT_HELD_MAX", offsetof(lck_grp_t, lck_grp_stat.lck_grp_mtx_stat.lck_grp_mtx_held_max));
168 DECLARE("TH_RECOVER", offsetof(struct thread, recover));
169 DECLARE("TH_CONTINUATION", offsetof(struct thread, continuation));
170 DECLARE("TH_KERNEL_STACK", offsetof(struct thread, kernel_stack));
171 DECLARE("TH_MUTEX_COUNT", offsetof(struct thread, mutex_count));
172 DECLARE("TH_WAS_PROMOTED_ON_WAKEUP", offsetof(struct thread, was_promoted_on_wakeup));
173 DECLARE("TH_IOTIER_OVERRIDE", offsetof(struct thread, iotier_override));
175 DECLARE("TH_SYSCALLS_MACH", offsetof(struct thread, syscalls_mach));
176 DECLARE("TH_SYSCALLS_UNIX", offsetof(struct thread, syscalls_unix));
178 DECLARE("TASK_VTIMERS", offsetof(struct task, vtimers));
181 DECLARE("TH_TASK", offsetof(struct thread, task));
182 DECLARE("TH_AST", offsetof(struct thread, ast));
183 DECLARE("TH_MAP", offsetof(struct thread, map));
184 DECLARE("TH_SPF", offsetof(struct thread, machine.specFlags));
185 DECLARE("TH_PCB_ISS", offsetof(struct thread, machine.iss));
186 DECLARE("TH_PCB_IDS", offsetof(struct thread, machine.ids));
187 DECLARE("TH_PCB_FPS", offsetof(struct thread, machine.ifps));
189 DECLARE("TH_COPYIO_STATE", offsetof(struct thread, machine.copyio_state));
192 DECLARE("TH_RWLOCK_COUNT", offsetof(struct thread, rwlock_count));
194 DECLARE("MAP_PMAP", offsetof(struct _vm_map, pmap));
202 DECLARE("KSS_RBX", offsetof(struct x86_kernel_state, k_rbx));
203 DECLARE("KSS_RSP", offsetof(struct x86_kernel_state, k_rsp));
204 DECLARE("KSS_RBP", offsetof(struct x86_kernel_state, k_rbp));
205 DECLARE("KSS_R12", offsetof(struct x86_kernel_state, k_r12));
206 DECLARE("KSS_R13", offsetof(struct x86_kernel_state, k_r13));
207 DECLARE("KSS_R14", offsetof(struct x86_kernel_state, k_r14));
208 DECLARE("KSS_R15", offsetof(struct x86_kernel_state, k_r15));
209 DECLARE("KSS_RIP", offsetof(struct x86_kernel_state, k_rip));
211 DECLARE("DS_DR0", offsetof(struct x86_debug_state32, dr0));
212 DECLARE("DS_DR1", offsetof(struct x86_debug_state32, dr1));
213 DECLARE("DS_DR2", offsetof(struct x86_debug_state32, dr2));
214 DECLARE("DS_DR3", offsetof(struct x86_debug_state32, dr3));
215 DECLARE("DS_DR4", offsetof(struct x86_debug_state32, dr4));
216 DECLARE("DS_DR5", offsetof(struct x86_debug_state32, dr5));
217 DECLARE("DS_DR6", offsetof(struct x86_debug_state32, dr6));
218 DECLARE("DS_DR7", offsetof(struct x86_debug_state32, dr7));
220 DECLARE("DS64_DR0", offsetof(struct x86_debug_state64, dr0));
221 DECLARE("DS64_DR1", offsetof(struct x86_debug_state64, dr1));
222 DECLARE("DS64_DR2", offsetof(struct x86_debug_state64, dr2));
223 DECLARE("DS64_DR3", offsetof(struct x86_debug_state64, dr3));
224 DECLARE("DS64_DR4", offsetof(struct x86_debug_state64, dr4));
225 DECLARE("DS64_DR5", offsetof(struct x86_debug_state64, dr5));
226 DECLARE("DS64_DR6", offsetof(struct x86_debug_state64, dr6));
227 DECLARE("DS64_DR7", offsetof(struct x86_debug_state64, dr7));
229 DECLARE("FP_VALID", offsetof(struct x86_fx_thread_state,fp_valid));
231 DECLARE("SS_FLAVOR", offsetof(x86_saved_state_t, flavor));
235 #define R_(x) offsetof(x86_saved_state_t, ss_32.x)
257 #define R64_(x) offsetof(x86_saved_state_t, ss_64.x)
287 #define ISF64_(x) offsetof(x86_64_intr_stack_frame_t, x)
342 offsetof(cpu_data_t, cpu_this));
344 offsetof(cpu_data_t, cpu_active_thread));
346 offsetof(cpu_data_t, cpu_active_stack));
348 offsetof(cpu_data_t, cpu_kernel_stack));
350 offsetof(cpu_data_t, cpu_int_stack_top));
353 offsetof(cpu_data_t, cpu_preemption_level));
356 offsetof(cpu_data_t, cpu_hibernate));
358 offsetof(cpu_data_t, cpu_interrupt_level));
360 offsetof(cpu_data_t, cpu_nested_istack));
362 offsetof(cpu_data_t,cpu_number));
364 offsetof(cpu_data_t,cpu_running));
366 offsetof(cpu_data_t,cpu_pending_ast));
368 offsetof(cpu_data_t,cpu_desc_tablep));
370 offsetof(cpu_data_t,cpu_desc_index));
372 offsetof(cpu_desc_index_t,cdi_gdt));
374 offsetof(cpu_desc_index_t,cdi_idt));
376 offsetof(cpu_data_t,cpu_processor));
378 offsetof(cpu_data_t, cpu_int_state));
380 offsetof(cpu_data_t, cpu_int_event_time));
383 offsetof(cpu_data_t, cpu_task_cr3));
385 offsetof(cpu_data_t, cpu_active_cr3));
387 offsetof(cpu_data_t, cpu_kernel_cr3));
389 offsetof(cpu_data_t, cpu_tlb_invalid));
392 offsetof(cpu_data_t, cpu_task_map));
396 offsetof(cpu_data_t, cpu_uber.cu_user_gs_base));
398 offsetof(cpu_data_t, cpu_uber.cu_isf));
400 offsetof(cpu_data_t, cpu_uber.cu_tmp));
403 offsetof(cpu_data_t, cpu_nanotime));
406 offsetof(cpu_data_t, cpu_dr7));
408 DECLARE("hwIntCnt", offsetof(cpu_data_t,cpu_hwIntCnt));
410 offsetof(cpu_data_t, cpu_active_pcid));
412 offsetof(cpu_data_t, cpu_pmap_pcid_coherentp));
414 offsetof(cpu_data_t, cpu_pmap_pcid_coherentp_kernel));
416 offsetof(cpu_data_t, cpu_pmap_pcid_enabled));
420 offsetof(cpu_data_t, cpu_pmap_user_rets));
422 offsetof(cpu_data_t, cpu_pmap_pcid_preserves));
424 offsetof(cpu_data_t, cpu_pmap_pcid_flushes));
427 offsetof(cpu_data_t, cpu_tlb_invalid));
429 offsetof(cpu_data_t, cpu_tlb_invalid_local));
431 offsetof(cpu_data_t, cpu_tlb_invalid_global));
438 DECLARE("dgLock", offsetof(struct diagWork, dgLock));
439 DECLARE("dgFlags", offsetof(struct diagWork, dgFlags));
440 DECLARE("dgMisc1", offsetof(struct diagWork, dgMisc1));
441 DECLARE("dgMisc2", offsetof(struct diagWork, dgMisc2));
442 DECLARE("dgMisc3", offsetof(struct diagWork, dgMisc3));
443 DECLARE("dgMisc4", offsetof(struct diagWork, dgMisc4));
444 DECLARE("dgMisc5", offsetof(struct diagWork, dgMisc5));
455 DECLARE("TSS_ESP0", offsetof(struct i386_tss, esp0));
456 DECLARE("TSS_SS0", offsetof(struct i386_tss, ss0));
457 DECLARE("TSS_LDT", offsetof(struct i386_tss, ldt));
458 DECLARE("TSS_PDBR", offsetof(struct i386_tss, cr3));
459 DECLARE("TSS_LINK", offsetof(struct i386_tss, back_link));
471 DECLARE("USL_INTERLOCK", offsetof(usimple_lock_data_t, interlock));
474 DECLARE("KADDR", offsetof(struct boot_args, kaddr));
475 DECLARE("KSIZE", offsetof(struct boot_args, ksize));
476 DECLARE("MEMORYMAP", offsetof(struct boot_args, MemoryMap));
477 DECLARE("DEVICETREEP", offsetof(struct boot_args, deviceTreeP));
480 offsetof(pal_rtc_nanotime_t, tsc_base));
482 offsetof(pal_rtc_nanotime_t, ns_base));
484 offsetof(pal_rtc_nanotime_t, scale));
486 offsetof(pal_rtc_nanotime_t, shift));
488 offsetof(pal_rtc_nanotime_t, generation));
492 DECLARE("TIMER_ALL", offsetof(struct timer, all_bits));
494 DECLARE("TIMER_LOW", offsetof(struct timer, low_bits));
495 DECLARE("TIMER_HIGH", offsetof(struct timer, high_bits));
496 DECLARE("TIMER_HIGHCHK", offsetof(struct timer, high_bits_check));
499 offsetof(struct timer, tstamp));
502 offsetof(struct processor, processor_data.thread_timer));
504 offsetof(struct processor, processor_data.kernel_timer));
506 offsetof(struct thread, system_timer));
508 offsetof(struct thread, user_timer));
510 offsetof(struct processor, processor_data.system_state));
512 offsetof(struct processor, processor_data.user_state));
514 offsetof(struct processor, processor_data.idle_state));
516 offsetof(struct processor, processor_data.current_state));