/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/offsetof/ |
H A D | err.D_OFFSETOF_TYPE.notsou.d | 33 * Test invocation of offsetof() with a type that is not a struct or union. 43 trace(offsetof(int, x));
|
H A D | err.D_OFFSETOF_TYPE.badtype.d | 32 * Test invocation of offsetof() with an invalid type. 43 trace(offsetof(struct no_such_type, x));
|
H A D | err.D_UNKNOWN.badmemb.d | 32 * Test invocation of offsetof() with an invalid member. 43 trace(offsetof(struct vnode, v_no_such_member));
|
H A D | tst.OffsetofArith.d | 29 * ASSERTION: offsetof can be used anywhere in a D program that an integer 49 add = offsetof(record_t, c) + offsetof(record_t, x) + 50 offsetof(record_t, y); 51 sub = offsetof(record_t, y) - offsetof(record_t, x); 52 mul = offsetof(record_t, x) * offsetof(record_t, c); 53 div = offsetof(record_t, y) / offsetof(record_ [all...] |
H A D | tst.OffsetofAlias.d | 30 * Test invocation of offsetof() with a struct type alias. 48 printf("offsetof(record_t, c) = %d\n", offsetof(record_t, c)); 49 printf("offsetof(record_t, x) = %d\n", offsetof(record_t, x)); 50 printf("offsetof(record_t, y) = %d\n", offsetof(record_t, y)); 55 /(8 != offsetof(record_t, y)) || (4 != offsetof(record_t, x)) || 56 (0 != offsetof(record_ [all...] |
H A D | tst.OffsetofUnion.d | 30 * Test invocation of offsetof() with a union type alias. 48 printf("offsetof(record, x) = %d\n", offsetof(union D`record, x)); 49 printf("offsetof(record, y) = %d\n", offsetof(union D`record, y)); 50 printf("offsetof(record, c) = %d\n", offsetof(union D`record, c)); 55 /(0 != offsetof(union D`record, y)) && (0 != offsetof(union D`record, x)) && 56 (0 != offsetof(unio [all...] |
H A D | err.D_OFFSETOF_BITFIELD.bitfield.d | 32 * Test invocation of offsetof() with a member that is a bit-field. 48 trace(offsetof(struct foo, b));
|
/freebsd-11-stable/usr.sbin/ntp/ntpdc/ |
H A D | nl.c | 4 printf("offsetof(u32) = %d\n", 5 (int) offsetof(union req_data_u_tag, u32)); 6 printf("offsetof(data) = %d\n", 7 (int) offsetof(union req_data_u_tag, data)); 12 printf("offsetof(rm_vn_mode) = %d\n", 13 (int) offsetof(struct req_pkt, rm_vn_mode)); 14 printf("offsetof(auth_seq) = %d\n", 15 (int) offsetof(struct req_pkt, auth_seq)); 16 printf("offsetof(implementation) = %d\n", 17 (int) offsetof(struc [all...] |
/freebsd-11-stable/lib/libthr/thread/ |
H A D | thr_symbols.c | 43 int _thread_off_tcb = offsetof(struct pthread, tcb); 44 int _thread_off_tid = offsetof(struct pthread, tid); 45 int _thread_off_next = offsetof(struct pthread, tle.tqe_next); 46 int _thread_off_attr_flags = offsetof(struct pthread, attr.flags); 47 int _thread_off_linkmap = offsetof(Obj_Entry, linkmap); 48 int _thread_off_tlsindex = offsetof(Obj_Entry, tlsindex); 49 int _thread_off_report_events = offsetof(struct pthread, report_events); 50 int _thread_off_event_mask = offsetof(struct pthread, event_mask); 51 int _thread_off_event_buf = offsetof(struct pthread, event_buf); 53 int _thread_off_key_allocated = offsetof(struc [all...] |
/freebsd-11-stable/sys/i386/linux/ |
H A D | linux_genassym.c | 11 ASSYM(LINUX_SIGF_HANDLER, offsetof(struct l_sigframe, sf_handler)); 12 ASSYM(LINUX_SIGF_SC, offsetof(struct l_sigframe, sf_sc)); 13 ASSYM(LINUX_SC_GS, offsetof(struct l_sigcontext, sc_gs)); 14 ASSYM(LINUX_SC_EFLAGS, offsetof(struct l_sigcontext, sc_eflags)); 15 ASSYM(LINUX_RT_SIGF_HANDLER, offsetof(struct l_rt_sigframe, sf_handler)); 16 ASSYM(LINUX_RT_SIGF_UC, offsetof(struct l_rt_sigframe, sf_sc)); 17 ASSYM(LINUX_RT_SIGF_SC, offsetof(struct l_ucontext, uc_mcontext)); 18 ASSYM(LINUX_SC_ESP, offsetof(struct l_sigcontext, sc_esp));
|
/freebsd-11-stable/sys/arm/arm/ |
H A D | genassym.c | 66 ASSYM(PCB_ONFAULT, offsetof(struct pcb, pcb_onfault)); 68 ASSYM(PCB_DACR, offsetof(struct pcb, pcb_dacr)); 70 ASSYM(PCB_PAGEDIR, offsetof(struct pcb, pcb_pagedir)); 72 ASSYM(PCB_L1VEC, offsetof(struct pcb, pcb_l1vec)); 73 ASSYM(PCB_PL1VEC, offsetof(struct pcb, pcb_pl1vec)); 75 ASSYM(PCB_R4, offsetof(struct pcb, pcb_regs.sf_r4)); 76 ASSYM(PCB_R5, offsetof(struct pcb, pcb_regs.sf_r5)); 77 ASSYM(PCB_R6, offsetof(struct pcb, pcb_regs.sf_r6)); 78 ASSYM(PCB_R7, offsetof(struct pcb, pcb_regs.sf_r7)); 79 ASSYM(PCB_R8, offsetof(struc [all...] |
/freebsd-11-stable/sys/amd64/vmm/amd/ |
H A D | svm_genassym.c | 38 ASSYM(SCTX_RBX, offsetof(struct svm_regctx, sctx_rbx)); 39 ASSYM(SCTX_RCX, offsetof(struct svm_regctx, sctx_rcx)); 40 ASSYM(SCTX_RBP, offsetof(struct svm_regctx, sctx_rbp)); 41 ASSYM(SCTX_RDX, offsetof(struct svm_regctx, sctx_rdx)); 42 ASSYM(SCTX_RDI, offsetof(struct svm_regctx, sctx_rdi)); 43 ASSYM(SCTX_RSI, offsetof(struct svm_regctx, sctx_rsi)); 44 ASSYM(SCTX_R8, offsetof(struct svm_regctx, sctx_r8)); 45 ASSYM(SCTX_R9, offsetof(struct svm_regctx, sctx_r9)); 46 ASSYM(SCTX_R10, offsetof(struct svm_regctx, sctx_r10)); 47 ASSYM(SCTX_R11, offsetof(struc [all...] |
/freebsd-11-stable/sys/mips/mips/ |
H A D | genassym.c | 65 #ifndef offsetof 66 #define offsetof(t,m) (int)((&((t *)0L)->m)) macro 69 ASSYM(TD_PCB, offsetof(struct thread, td_pcb)); 70 ASSYM(TD_UPTE, offsetof(struct thread, td_md.md_upte)); 71 ASSYM(TD_KSTACK, offsetof(struct thread, td_kstack)); 72 ASSYM(TD_FLAGS, offsetof(struct thread, td_flags)); 73 ASSYM(TD_LOCK, offsetof(struct thread, td_lock)); 74 ASSYM(TD_MDFLAGS, offsetof(struct thread, td_md.md_flags)); 76 ASSYM(U_PCB_REGS, offsetof(struct pcb, pcb_regs.zero)); 77 ASSYM(U_PCB_CONTEXT, offsetof(struc [all...] |
/freebsd-11-stable/sys/amd64/vmm/intel/ |
H A D | vmx_genassym.c | 45 ASSYM(VMXCTX_GUEST_RDI, offsetof(struct vmxctx, guest_rdi)); 46 ASSYM(VMXCTX_GUEST_RSI, offsetof(struct vmxctx, guest_rsi)); 47 ASSYM(VMXCTX_GUEST_RDX, offsetof(struct vmxctx, guest_rdx)); 48 ASSYM(VMXCTX_GUEST_RCX, offsetof(struct vmxctx, guest_rcx)); 49 ASSYM(VMXCTX_GUEST_R8, offsetof(struct vmxctx, guest_r8)); 50 ASSYM(VMXCTX_GUEST_R9, offsetof(struct vmxctx, guest_r9)); 51 ASSYM(VMXCTX_GUEST_RAX, offsetof(struct vmxctx, guest_rax)); 52 ASSYM(VMXCTX_GUEST_RBX, offsetof(struct vmxctx, guest_rbx)); 53 ASSYM(VMXCTX_GUEST_RBP, offsetof(struct vmxctx, guest_rbp)); 54 ASSYM(VMXCTX_GUEST_R10, offsetof(struc [all...] |
/freebsd-11-stable/sys/riscv/riscv/ |
H A D | genassym.c | 65 ASSYM(PCB_ONFAULT, offsetof(struct pcb, pcb_onfault)); 66 ASSYM(PCB_L1ADDR, offsetof(struct pcb, pcb_l1addr)); 68 ASSYM(PCB_RA, offsetof(struct pcb, pcb_ra)); 69 ASSYM(PCB_SP, offsetof(struct pcb, pcb_sp)); 70 ASSYM(PCB_GP, offsetof(struct pcb, pcb_gp)); 71 ASSYM(PCB_TP, offsetof(struct pcb, pcb_tp)); 72 ASSYM(PCB_T, offsetof(struct pcb, pcb_t)); 73 ASSYM(PCB_S, offsetof(struct pcb, pcb_s)); 74 ASSYM(PCB_A, offsetof(struct pcb, pcb_a)); 76 ASSYM(SF_UC, offsetof(struc [all...] |
/freebsd-11-stable/sys/amd64/amd64/ |
H A D | genassym.c | 71 ASSYM(P_VMSPACE, offsetof(struct proc, p_vmspace)); 72 ASSYM(VM_PMAP, offsetof(struct vmspace, vm_pmap)); 73 ASSYM(PM_ACTIVE, offsetof(struct pmap, pm_active)); 75 ASSYM(P_MD, offsetof(struct proc, p_md)); 76 ASSYM(MD_LDT, offsetof(struct mdproc, md_ldt)); 77 ASSYM(MD_LDT_SD, offsetof(struct mdproc, md_ldt_sd)); 79 ASSYM(TD_LOCK, offsetof(struct thread, td_lock)); 80 ASSYM(TD_FLAGS, offsetof(struct thread, td_flags)); 81 ASSYM(TD_PCB, offsetof(struct thread, td_pcb)); 82 ASSYM(TD_PFLAGS, offsetof(struc [all...] |
/freebsd-11-stable/sys/sparc64/sparc64/ |
H A D | genassym.c | 80 ASSYM(CSA_PCPU, offsetof(struct cpu_start_args, csa_pcpu)); 81 ASSYM(CSA_STATE, offsetof(struct cpu_start_args, csa_state)); 82 ASSYM(CSA_MID, offsetof(struct cpu_start_args, csa_mid)); 83 ASSYM(CSA_STICK, offsetof(struct cpu_start_args, csa_stick)); 84 ASSYM(CSA_TICK, offsetof(struct cpu_start_args, csa_tick)); 85 ASSYM(CSA_TTES, offsetof(struct cpu_start_args, csa_ttes)); 86 ASSYM(CSA_VER, offsetof(struct cpu_start_args, csa_ver)); 89 ASSYM(DC_SIZE, offsetof(struct cacheinfo, dc_size)); 90 ASSYM(DC_LINESIZE, offsetof(struct cacheinfo, dc_linesize)); 91 ASSYM(IC_SIZE, offsetof(struc [all...] |
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/bitfields/ |
H A D | err.D_OFFSETOF_BITFIELD.d | 30 * ASSERTION: Cannot apply offsetof operator to a bit-field member. 45 printf("offsetof(struct bitRecord, a): %d\n", 46 offsetof(struct bitRecord, a)); 47 printf("offsetof(struct bitRecord, b): %d\n", 48 offsetof(struct bitRecord, b)); 49 printf("offsetof(struct bitRecord, c): %d\n", 50 offsetof(struct bitRecord, c));
|
/freebsd-11-stable/sys/compat/ia32/ |
H A D | ia32_genassym.c | 14 ASSYM(IA32_SIGF_HANDLER, offsetof(struct ia32_sigframe, sf_ah)); 15 ASSYM(IA32_SIGF_UC, offsetof(struct ia32_sigframe, sf_uc)); 17 ASSYM(IA32_SIGF_SC, offsetof(struct ia32_sigframe3, sf_siginfo.si_sc)); 19 ASSYM(IA32_UC_GS, offsetof(struct ia32_ucontext, uc_mcontext.mc_gs)); 20 ASSYM(IA32_UC_FS, offsetof(struct ia32_ucontext, uc_mcontext.mc_fs)); 21 ASSYM(IA32_UC_ES, offsetof(struct ia32_ucontext, uc_mcontext.mc_es)); 22 ASSYM(IA32_UC_DS, offsetof(struct ia32_ucontext, uc_mcontext.mc_ds)); 24 ASSYM(IA32_SIGF_UC4, offsetof(struct ia32_sigframe4, sf_uc)); 25 ASSYM(IA32_UC4_GS, offsetof(struct ia32_ucontext4, uc_mcontext.mc_gs)); 26 ASSYM(IA32_UC4_FS, offsetof(struc [all...] |
/freebsd-11-stable/gnu/usr.bin/gdb/gdbserver/ |
H A D | fbsd-amd64-low.c | 37 offsetof(struct reg, r_rax), 38 offsetof(struct reg, r_rbx), 39 offsetof(struct reg, r_rcx), 40 offsetof(struct reg, r_rdx), 41 offsetof(struct reg, r_rsi), 42 offsetof(struct reg, r_rdi), 43 offsetof(struct reg, r_rbp), 44 offsetof(struct reg, r_rsp), 45 offsetof(struct reg, r_r8), 46 offsetof(struc [all...] |
/freebsd-11-stable/sys/arm64/arm64/ |
H A D | genassym.c | 44 ASSYM(PC_CURPCB, offsetof(struct pcpu, pc_curpcb)); 45 ASSYM(PC_CURTHREAD, offsetof(struct pcpu, pc_curthread)); 50 ASSYM(PCB_REGS, offsetof(struct pcb, pcb_x)); 51 ASSYM(PCB_SP, offsetof(struct pcb, pcb_sp)); 52 ASSYM(PCB_L0ADDR, offsetof(struct pcb, pcb_l0addr)); 53 ASSYM(PCB_ONFAULT, offsetof(struct pcb, pcb_onfault)); 54 ASSYM(PCB_FLAGS, offsetof(struct pcb, pcb_flags)); 56 ASSYM(SF_UC, offsetof(struct sigframe, sf_uc)); 58 ASSYM(TD_PCB, offsetof(struct thread, td_pcb)); 59 ASSYM(TD_FLAGS, offsetof(struc [all...] |
/freebsd-11-stable/sys/amd64/linux32/ |
H A D | linux32_genassym.c | 12 ASSYM(LINUX_SIGF_HANDLER, offsetof(struct l_sigframe, sf_handler)); 13 ASSYM(LINUX_SIGF_SC, offsetof(struct l_sigframe, sf_sc)); 14 ASSYM(LINUX_RT_SIGF_HANDLER, offsetof(struct l_rt_sigframe, sf_handler)); 15 ASSYM(LINUX_RT_SIGF_UC, offsetof(struct l_rt_sigframe, sf_sc)); 16 ASSYM(LINUX_RT_SIGF_SC, offsetof(struct l_ucontext, uc_mcontext)); 18 ASSYM(LINUX_SC_ESP, offsetof(struct l_sigcontext, sc_esp));
|
/freebsd-11-stable/sys/i386/i386/ |
H A D | genassym.c | 81 ASSYM(P_VMSPACE, offsetof(struct proc, p_vmspace)); 82 ASSYM(VM_PMAP, offsetof(struct vmspace, vm_pmap)); 83 ASSYM(PM_ACTIVE, offsetof(struct pmap, pm_active)); 85 ASSYM(TD_FLAGS, offsetof(struct thread, td_flags)); 86 ASSYM(TD_LOCK, offsetof(struct thread, td_lock)); 87 ASSYM(TD_PCB, offsetof(struct thread, td_pcb)); 88 ASSYM(TD_PFLAGS, offsetof(struct thread, td_pflags)); 89 ASSYM(TD_PROC, offsetof(struct thread, td_proc)); 90 ASSYM(TD_MD, offsetof(struct thread, td_md)); 94 ASSYM(P_MD, offsetof(struc [all...] |
/freebsd-11-stable/sys/contrib/cloudabi/ |
H A D | cloudabi64_types.h | 40 _Static_assert(offsetof(cloudabi64_auxv_t, a_type) == 0, "Incorrect layout"); 41 _Static_assert(offsetof(cloudabi64_auxv_t, a_val) == 8, "Incorrect layout"); 42 _Static_assert(offsetof(cloudabi64_auxv_t, a_ptr) == 8, "Incorrect layout"); 50 _Static_assert(offsetof(cloudabi64_ciovec_t, buf) == 0, "Incorrect layout"); 51 _Static_assert(offsetof(cloudabi64_ciovec_t, buf_len) == 8, "Incorrect layout"); 59 _Static_assert(offsetof(cloudabi64_iovec_t, buf) == 0, "Incorrect layout"); 60 _Static_assert(offsetof(cloudabi64_iovec_t, buf_len) == 8, "Incorrect layout"); 73 _Static_assert(offsetof(cloudabi64_recv_in_t, ri_data) == 0, "Incorrect layout"); 74 _Static_assert(offsetof(cloudabi64_recv_in_t, ri_data_len) == 8, "Incorrect layout"); 75 _Static_assert(offsetof(cloudabi64_recv_in_ [all...] |
H A D | cloudabi32_types.h | 40 _Static_assert(offsetof(cloudabi32_auxv_t, a_type) == 0, "Incorrect layout"); 41 _Static_assert(offsetof(cloudabi32_auxv_t, a_val) == 4, "Incorrect layout"); 42 _Static_assert(offsetof(cloudabi32_auxv_t, a_ptr) == 4, "Incorrect layout"); 50 _Static_assert(offsetof(cloudabi32_ciovec_t, buf) == 0, "Incorrect layout"); 51 _Static_assert(offsetof(cloudabi32_ciovec_t, buf_len) == 4, "Incorrect layout"); 59 _Static_assert(offsetof(cloudabi32_iovec_t, buf) == 0, "Incorrect layout"); 60 _Static_assert(offsetof(cloudabi32_iovec_t, buf_len) == 4, "Incorrect layout"); 73 _Static_assert(offsetof(cloudabi32_recv_in_t, ri_data) == 0, "Incorrect layout"); 74 _Static_assert(offsetof(cloudabi32_recv_in_t, ri_data_len) == 4, "Incorrect layout"); 75 _Static_assert(offsetof(cloudabi32_recv_in_ [all...] |