1\ 2\ Copyright 2007 Sun Microsystems, Inc. All rights reserved. 3\ Use is subject to license terms. 4\ 5\ CDDL HEADER START 6\ 7\ The contents of this file are subject to the terms of the 8\ Common Development and Distribution License (the "License"). 9\ You may not use this file except in compliance with the License. 10\ 11\ You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 12\ or http://www.opensolaris.org/os/licensing. 13\ See the License for the specific language governing permissions 14\ and limitations under the License. 15\ 16\ When distributing Covered Code, include this CDDL HEADER in each 17\ file and include the License file at usr/src/OPENSOLARIS.LICENSE. 18\ If applicable, add the following below this CDDL HEADER, with the 19\ fields enclosed by brackets "[]" replaced with your own identifying 20\ information: Portions Copyright [yyyy] [name of copyright owner] 21\ 22\ CDDL HEADER END 23\ 24 25#pragma ident "%Z%%M% %I% %E% SMI" 26 27\ 28\ offsets.in: input file to produce assym.h using the ctfstabs program 29\ 30 31#ifndef _GENASSYM 32#define _GENASSYM 33#endif 34 35#define SIZES 1 36 37#include <sys/types.h> 38#include <sys/bootsvcs.h> 39#include <sys/systm.h> 40#include <sys/sysinfo.h> 41#include <sys/user.h> 42#include <sys/thread.h> 43#include <sys/proc.h> 44#include <sys/cpuvar.h> 45#include <sys/tss.h> 46#include <sys/privregs.h> 47#include <sys/segments.h> 48#include <sys/devops.h> 49#include <sys/ddi_impldefs.h> 50#include <vm/as.h> 51#include <sys/avintr.h> 52#include <sys/pic.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> 60#include <sys/lgrp.h> 61#include <sys/dtrace.h> 62#include <sys/brand.h> 63 64proc PROCSIZE 65 p_link 66 p_next 67 p_child 68 p_sibling 69 p_sig 70 p_flag 71 p_tlist 72 p_as 73 p_lockp 74 p_user 75 p_ldt 76 p_ldt_desc 77 p_model 78 p_pctx 79 p_agenttp 80 p_brand 81 p_brand_data 82 83_kthread THREAD_SIZE 84 t_pcb T_LABEL 85 t_lock 86 t_lockstat 87 t_lockp 88 t_lock_flush 89 t_kpri_req 90 t_oldspl 91 t_pri 92 t_pil 93 t_lwp 94 t_procp 95 t_link 96 t_state 97 t_mstate 98 t_preempt_lk 99 t_stk T_STACK 100 t_swap 101 t_lwpchan.lc_wchan T_WCHAN 102 t_flag T_FLAGS 103 t_ctx 104 t_lofault 105 t_onfault 106 t_ontrap 107 t_cpu 108 t_lpl 109 t_bound_cpu 110 t_intr 111 t_forw 112 t_back 113 t_sig 114 t_tid 115 t_pre_sys 116 t_preempt 117 t_proc_flag 118 t_startpc 119 t_sysnum 120 t_intr_start 121 _tu._ts._t_astflag T_ASTFLAG 122 _tu._ts._t_post_sys T_POST_SYS 123 _tu._t_post_sys_ast T_POST_SYS_AST 124 t_copyops 125 126ctxop 127 save_op CTXOP_SAVE 128 129as 130 a_hat 131 132user USIZEBYTES 133 u_comm 134 u_signal 135 136_label_t 137 val LABEL_VAL 138 139\#define LABEL_PC LABEL_VAL 140\#define LABEL_SP _CONST(LABEL_VAL + LABEL_VAL_INCR) 141\#define T_PC _CONST(T_LABEL + LABEL_PC) 142\#define T_SP _CONST(T_LABEL + LABEL_SP) 143 144_klwp 145 lwp_thread 146 lwp_procp 147 lwp_brand 148 lwp_eosys 149 lwp_regs 150 lwp_arg 151 lwp_ap 152 lwp_cursig 153 lwp_state 154 lwp_mstate.ms_acct LWP_MS_ACCT 155 lwp_mstate.ms_prev LWP_MS_PREV 156 lwp_mstate.ms_start LWP_MS_START 157 lwp_mstate.ms_state_start LWP_MS_STATE_START 158 lwp_pcb 159 lwp_ru.sysc LWP_RU_SYSC 160 161\#define LWP_ACCT_USER _CONST(LWP_MS_ACCT + _MUL(LMS_USER, LWP_MS_ACCT_INCR)) 162\#define LWP_ACCT_SYSTEM _CONST(LWP_MS_ACCT + _MUL(LMS_SYSTEM, LWP_MS_ACCT_INCR)) 163 164fpu_ctx 165 fpu_regs FPU_CTX_FPU_REGS 166 fpu_flags FPU_CTX_FPU_FLAGS 167 168fxsave_state FXSAVE_STATE_SIZE 169 fx_fsw FXSAVE_STATE_FSW 170 fx_mxcsr_mask FXSAVE_STATE_MXCSR_MASK 171 172 173autovec AUTOVECSIZE 174 av_vector 175 av_intarg1 176 av_intarg2 177 av_ticksp 178 av_link 179 av_prilevel 180 av_dip 181 182av_head 183 avh_link 184 avh_hi_pri 185 avh_lo_pri 186 187cpu 188 cpu_id 189 cpu_flags 190 cpu_self 191 cpu_thread 192 cpu_thread_lock 193 cpu_kprunrun 194 cpu_lwp 195 cpu_fpowner 196 cpu_idle_thread 197 cpu_intr_thread 198 cpu_intr_actv 199 cpu_base_spl 200 cpu_intr_stack 201 cpu_stats.sys.cpumigrate CPU_STATS_SYS_CPUMIGRATE 202 cpu_stats.sys.intr CPU_STATS_SYS_INTR 203 cpu_stats.sys.intrblk CPU_STATS_SYS_INTRBLK 204 cpu_stats.sys.syscall CPU_STATS_SYS_SYSCALL 205 cpu_profile_pc 206 cpu_profile_upc 207 cpu_profile_pil 208 cpu_ftrace.ftd_state CPU_FTRACE_STATE 209 cpu_mstate 210 cpu_intracct 211 212\#define CPU_INTR_ACTV_REF _CONST(CPU_INTR_ACTV + 2) 213 214cpu 215 cpu_m.pil_high_start CPU_PIL_HIGH_START 216 cpu_m.intrstat CPU_INTRSTAT 217 cpu_m.mcpu_current_hat CPU_CURRENT_HAT 218 cpu_m.mcpu_gdt CPU_GDT 219 cpu_m.mcpu_idt CPU_IDT 220 cpu_m.mcpu_tss CPU_TSS 221 cpu_m.mcpu_softinfo CPU_SOFTINFO 222 cpu_m.mcpu_pri CPU_PRI 223 cpu_m.mcpu_pri_data CPU_PRI_DATA 224#if defined(__xpv) 225 cpu_m.mcpu_vcpu_info CPU_VCPU_INFO 226#endif 227 228machcpu 229 mcpu_pri_data MCPU_PRI_DATA 230 231standard_pic 232 c_curmask 233 c_iplmask 234 235ddi_dma_impl 236 dmai_rflags 237 dmai_rdip 238 239dev_info 240 devi_ops DEVI_DEV_OPS 241 devi_bus_ctl 242 devi_bus_dma_map 243 devi_bus_dma_ctl 244 devi_bus_dma_allochdl 245 devi_bus_dma_freehdl 246 devi_bus_dma_bindhdl 247 devi_bus_dma_unbindhdl 248 devi_bus_dma_flush 249 devi_bus_dma_win 250 251dev_ops 252 devo_bus_ops DEVI_BUS_OPS 253 254bus_ops 255 bus_ctl OPS_CTL 256 bus_dma_map OPS_MAP 257 bus_dma_ctl OPS_MCTL 258 bus_dma_allochdl OPS_ALLOCHDL 259 bus_dma_freehdl OPS_FREEHDL 260 bus_dma_bindhdl OPS_BINDHDL 261 bus_dma_unbindhdl OPS_UNBINDHDL 262 bus_dma_flush OPS_FLUSH 263 bus_dma_win OPS_WIN 264 265sysent SYSENT_SIZE SYSENT_SIZE_SHIFT 266 sy_callc 267 sy_flags 268 sy_narg 269 270stdata 271 sd_lock 272 273queue 274 q_flag 275 q_next 276 q_stream 277 q_syncq 278 q_qinfo 279 280qinit 281 qi_putp 282 283syncq 284 sq_flags 285 sq_count 286 sq_lock 287 sq_wait 288 289rm_platter 290 rm_idt_lim IDTROFF 291 rm_gdt_lim GDTROFF 292 rm_pdbr CR3OFF 293 rm_cpu CPUNOFF 294 rm_cr4 CR4OFF 295 rm_x86feature X86FEATURE 296 297ddi_acc_impl 298 ahi_acc_attr ACC_ATTR 299 ahi_get8 ACC_GETB 300 ahi_get16 ACC_GETW 301 ahi_get32 ACC_GETL 302 ahi_get64 ACC_GETLL 303 ahi_put8 ACC_PUTB 304 ahi_put16 ACC_PUTW 305 ahi_put32 ACC_PUTL 306 ahi_put64 ACC_PUTLL 307 ahi_rep_get8 ACC_REP_GETB 308 ahi_rep_get16 ACC_REP_GETW 309 ahi_rep_get32 ACC_REP_GETL 310 ahi_rep_get64 ACC_REP_GETLL 311 ahi_rep_put8 ACC_REP_PUTB 312 ahi_rep_put16 ACC_REP_PUTW 313 ahi_rep_put32 ACC_REP_PUTL 314 ahi_rep_put64 ACC_REP_PUTLL 315 316on_trap_data 317 ot_prot 318 ot_trap 319 ot_trampoline 320 ot_jmpbuf 321 ot_prev 322 ot_handle 323 ot_pad1 324 325trap_trace_ctl_t __TRAPTR_SIZE TRAPTR_SIZE_SHIFT 326 ttc_next TRAPTR_NEXT 327 ttc_first TRAPTR_FIRST 328 ttc_limit TRAPTR_LIMIT 329 330trap_trace_rec_t TRAP_ENT_SIZE 331 ttr_cr2 332 ttr_info.idt_entry.vector TTR_VECTOR 333 ttr_info.idt_entry.ipl TTR_IPL 334 ttr_info.idt_entry.spl TTR_SPL 335 ttr_info.idt_entry.pri TTR_PRI 336 ttr_info.gate_entry.sysnum TTR_SYSNUM 337 ttr_marker 338 ttr_stamp 339 ttr_curthread 340 ttr_sdepth 341 ttr_stack 342 343lgrp_ld 344 lpl_lgrpid 345 346dtrace_id_t DTRACE_IDSIZE 347 348cpu_core CPU_CORE_SIZE CPU_CORE_SHIFT 349 cpuc_dtrace_flags 350 cpuc_dtrace_illval 351 352timespec TIMESPEC_SIZE 353 354gate_desc GATE_DESC_SIZE 355 356desctbr_t DESCTBR_SIZE 357 dtr_limit 358 dtr_base 359 360mod_stub_info MODS_SIZE 361 mods_func_adr MODS_INSTFCN 362 mods_errfcn MODS_RETFCN 363 mods_flag 364 365\#define TRAP_TSIZE _MUL(TRAP_ENT_SIZE, TRAPTR_NENT) 366 367copyops 368 cp_copyin 369 cp_xcopyin 370 cp_copyout 371 cp_xcopyout 372 cp_copyinstr 373 cp_copyoutstr 374 cp_fuword8 375 cp_fuword16 376 cp_fuword32 377 cp_fuword64 378 cp_suword8 379 cp_suword16 380 cp_suword32 381 cp_suword64 382 cp_physio 383 384brand 385 b_machops 386