2 \ Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
3 \ Copyright 2012 Garrett D'Amore <garrett@damore.org>. All rights reserved.
4 \ Copyright 2018 Joyent, Inc.
8 \ The contents of this file are subject to the terms of the
9 \ Common Development and Distribution License (the "License").
10 \ You may not use this file except in compliance with the License.
12 \ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
13 \ or http://www.opensolaris.org/os/licensing.
14 \ See the License for the specific language governing permissions
15 \ and limitations under the License.
17 \ When distributing Covered Code, include this CDDL HEADER in each
18 \ file and include the License file at usr/src/OPENSOLARIS.LICENSE.
19 \ If applicable, add the following below this CDDL HEADER, with the
20 \ fields enclosed by brackets "[]" replaced with your own identifying
21 \ information: Portions Copyright [yyyy] [name of copyright owner]
28 \ offsets.in: input file to produce assym.h using the ctfstabs program
37 #include <sys/types.h>
38 #include <sys/bootsvcs.h>
39 #include <sys/systm.h>
40 #include <sys/sysinfo.h>
42 #include <sys/thread.h>
44 #include <sys/cpuvar.h>
46 #include <sys/privregs.h>
47 #include <sys/segments.h>
48 #include <sys/devops.h>
49 #include <sys/ddi_impldefs.h>
51 #include <sys/avintr.h>
53 #include <sys/rm_platter.h>
54 #include <sys/stream.h>
55 #include <sys/strsubr.h>
56 #include <sys/sunddi.h>
57 #include <sys/modctl.h>
58 #include <sys/traptrace.h>
59 #include <sys/ontrap.h>
61 #include <sys/dtrace.h>
62 #include <sys/brand.h>
63 #include <sys/fastboot.h>
64 #include <sys/cpr_wakecode.h>
65 #include <sys/comm_page.h>
103 t_lwpchan.lc_wchan T_WCHAN
123 _tu._ts._t_astflag T_ASTFLAG
124 _tu._ts._t_post_sys T_POST_SYS
125 _tu._t_post_sys_ast T_POST_SYS_AST
144 \#define LABEL_PC LABEL_VAL
145 \#define LABEL_SP _CONST(LABEL_VAL + LABEL_VAL_INCR)
146 \#define T_PC _CONST(T_LABEL + LABEL_PC)
147 \#define T_SP _CONST(T_LABEL + LABEL_SP)
159 lwp_mstate.ms_acct LWP_MS_ACCT
160 lwp_mstate.ms_prev LWP_MS_PREV
161 lwp_mstate.ms_start LWP_MS_START
162 lwp_mstate.ms_state_start LWP_MS_STATE_START
164 lwp_ru.sysc LWP_RU_SYSC
166 \#define LWP_ACCT_USER _CONST(LWP_MS_ACCT + _MUL(LMS_USER, LWP_MS_ACCT_INCR))
167 \#define LWP_ACCT_SYSTEM _CONST(LWP_MS_ACCT + _MUL(LMS_SYSTEM, LWP_MS_ACCT_INCR))
170 fpu_regs FPU_CTX_FPU_REGS
171 fpu_flags FPU_CTX_FPU_FLAGS
172 fpu_xsave_mask FPU_CTX_FPU_XSAVE_MASK
174 fxsave_state FXSAVE_STATE_SIZE
175 fx_fsw FXSAVE_STATE_FSW
176 fx_mxcsr_mask FXSAVE_STATE_MXCSR_MASK
207 cpu_stats.sys.cpumigrate CPU_STATS_SYS_CPUMIGRATE
208 cpu_stats.sys.intr CPU_STATS_SYS_INTR
209 cpu_stats.sys.intrblk CPU_STATS_SYS_INTRBLK
210 cpu_stats.sys.syscall CPU_STATS_SYS_SYSCALL
214 cpu_ftrace.ftd_state CPU_FTRACE_STATE
218 \#define CPU_INTR_ACTV_REF _CONST(CPU_INTR_ACTV + 2)
221 cpu_m.pil_high_start CPU_PIL_HIGH_START
222 cpu_m.intrstat CPU_INTRSTAT
223 cpu_m.mcpu_current_hat CPU_CURRENT_HAT
224 cpu_m.mcpu_gdt CPU_GDT
225 cpu_m.mcpu_idt CPU_IDT
226 cpu_m.mcpu_tss CPU_TSS
227 cpu_m.mcpu_softinfo CPU_SOFTINFO
228 cpu_m.mcpu_pri CPU_PRI
230 cpu_m.mcpu_vcpu_info CPU_VCPU_INFO
234 cpu_m.mcpu_kpti.kf_kernel_cr3 CPU_KPTI_KCR3
235 cpu_m.mcpu_kpti.kf_user_cr3 CPU_KPTI_UCR3
236 cpu_m.mcpu_kpti.kf_tr_rsp CPU_KPTI_TR_RSP
237 cpu_m.mcpu_kpti.kf_tr_cr3 CPU_KPTI_TR_CR3
238 cpu_m.mcpu_kpti.kf_r13 CPU_KPTI_R13
239 cpu_m.mcpu_kpti.kf_r14 CPU_KPTI_R14
240 cpu_m.mcpu_kpti.kf_tr_ret_rsp CPU_KPTI_RET_RSP
242 cpu_m.mcpu_kpti.kf_ss CPU_KPTI_SS
243 cpu_m.mcpu_kpti.kf_rsp CPU_KPTI_RSP
244 cpu_m.mcpu_kpti.kf_rflags CPU_KPTI_RFLAGS
245 cpu_m.mcpu_kpti.kf_cs CPU_KPTI_CS
246 cpu_m.mcpu_kpti.kf_rip CPU_KPTI_RIP
247 cpu_m.mcpu_kpti.kf_err CPU_KPTI_ERR
249 cpu_m.mcpu_pad2 CPU_KPTI_START
250 cpu_m.mcpu_pad3 CPU_KPTI_END
252 cpu_m.mcpu_kpti_dbg CPU_KPTI_DBG
260 kf_rflags KPTI_RFLAGS
266 kf_kernel_cr3 KPTI_KCR3
267 kf_user_cr3 KPTI_UCR3
268 kf_tr_ret_rsp KPTI_RET_RSP
269 kf_tr_cr3 KPTI_TR_CR3
282 devi_ops DEVI_DEV_OPS
285 devi_bus_dma_allochdl
288 devi_bus_dma_unbindhdl
293 devo_bus_ops DEVI_BUS_OPS
299 bus_dma_allochdl OPS_ALLOCHDL
300 bus_dma_freehdl OPS_FREEHDL
301 bus_dma_bindhdl OPS_BINDHDL
302 bus_dma_unbindhdl OPS_UNBINDHDL
303 bus_dma_flush OPS_FLUSH
306 sysent SYSENT_SIZE SYSENT_SIZE_SHIFT
336 rm_cpu_halt_code CPUHALTCODEOFF
337 rm_cpu_halted CPUHALTEDOFF
340 ahi_acc_attr ACC_ATTR
349 ahi_rep_get8 ACC_REP_GETB
350 ahi_rep_get16 ACC_REP_GETW
351 ahi_rep_get32 ACC_REP_GETL
352 ahi_rep_get64 ACC_REP_GETLL
353 ahi_rep_put8 ACC_REP_PUTB
354 ahi_rep_put16 ACC_REP_PUTW
355 ahi_rep_put32 ACC_REP_PUTL
356 ahi_rep_put64 ACC_REP_PUTLL
367 trap_trace_ctl_t __TRAPTR_SIZE TRAPTR_SIZE_SHIFT
369 ttc_first TRAPTR_FIRST
370 ttc_limit TRAPTR_LIMIT
372 trap_trace_rec_t TRAP_ENT_SIZE
374 ttr_info.idt_entry.vector TTR_VECTOR
375 ttr_info.idt_entry.ipl TTR_IPL
376 ttr_info.idt_entry.spl TTR_SPL
377 ttr_info.idt_entry.pri TTR_PRI
378 ttr_info.gate_entry.sysnum TTR_SYSNUM
388 dtrace_id_t DTRACE_IDSIZE
390 cpu_core CPU_CORE_SIZE CPU_CORE_SHIFT
394 timespec TIMESPEC_SIZE
396 gate_desc GATE_DESC_SIZE
398 desctbr_t DESCTBR_SIZE
402 mod_stub_info MODS_SIZE
403 mods_func_adr MODS_INSTFCN
404 mods_errfcn MODS_RETFCN
407 \#define TRAP_TSIZE _MUL(TRAP_ENT_SIZE, TRAPTR_NENT)
511 comm_page_s COMM_PAGE_S_SIZE