Searched refs:offsetof (Results 1 - 25 of 528) sorted by relevance

1234567891011>>

/freebsd-10.0-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/offsetof/
H A Derr.D_OFFSETOF_TYPE.notsou.d33 * Test invocation of offsetof() with a type that is not a struct or union.
43 trace(offsetof(int, x));
H A Derr.D_OFFSETOF_TYPE.badtype.d32 * Test invocation of offsetof() with an invalid type.
43 trace(offsetof(struct no_such_type, x));
H A Derr.D_UNKNOWN.badmemb.d32 * Test invocation of offsetof() with an invalid member.
43 trace(offsetof(vnode_t, v_no_such_member));
H A Dtst.OffsetofArith.d29 * 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 Dtst.OffsetofAlias.d30 * 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 Dtst.OffsetofUnion.d30 * 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 Derr.D_OFFSETOF_BITFIELD.bitfield.d32 * Test invocation of offsetof() with a member that is a bit-field.
48 trace(offsetof(struct foo, b));
H A Derr.D_UNKNOWN.OffsetofNULL.d30 * ASSERTION: Querying the offsetof an non-member variable of a struct throws
46 printf("offsetof (struct record, NULL): %d\n",
47 offsetof (struct record, NULL));
H A Dtst.struct.d31 * Test invocation of offsetof() with a struct type.
48 printf("offsetof(s, y) = %d\n", offsetof(struct D`s, y));
/freebsd-10.0-release/lib/libkse/thread/
H A Dthr_symbols.c44 int _thread_off_tcb = offsetof(struct pthread, tcb);
45 int _thread_off_tmbx = offsetof(struct tcb, tcb_tmbx);
46 int _thread_off_next = offsetof(struct pthread, tle.tqe_next);
47 int _thread_off_attr_flags = offsetof(struct pthread, attr.flags);
48 int _thread_off_kse = offsetof(struct pthread, kse);
49 int _thread_off_kse_locklevel = offsetof(struct kse, k_locklevel);
50 int _thread_off_thr_locklevel = offsetof(struct pthread, locklevel);
51 int _thread_off_linkmap = offsetof(Obj_Entry, linkmap);
52 int _thread_off_tlsindex = offsetof(Obj_Entry, tlsindex);
54 int _thread_off_key_allocated = offsetof(struc
[all...]
/freebsd-10.0-release/lib/libkse/arch/powerpc/powerpc/
H A Dassym.c41 ASSYM(_MC_VERS, offsetof(mcontext_t, mc_vers));
42 ASSYM(_MC_FLAGS, offsetof(mcontext_t, mc_flags));
44 ASSYM(_MC_R0, offsetof(mcontext_t, mc_frame[0]));
45 ASSYM(_MC_R1, offsetof(mcontext_t, mc_frame[1]));
46 ASSYM(_MC_R2, offsetof(mcontext_t, mc_frame[2]));
47 ASSYM(_MC_R3, offsetof(mcontext_t, mc_frame[3]));
48 ASSYM(_MC_R4, offsetof(mcontext_t, mc_frame[4]));
49 ASSYM(_MC_R5, offsetof(mcontext_t, mc_frame[5]));
50 ASSYM(_MC_R6, offsetof(mcontext_t, mc_frame[6]));
51 ASSYM(_MC_R7, offsetof(mcontext_
[all...]
/freebsd-10.0-release/lib/libthr/thread/
H A Dthr_symbols.c42 int _thread_off_tcb = offsetof(struct pthread, tcb);
43 int _thread_off_tid = offsetof(struct pthread, tid);
44 int _thread_off_next = offsetof(struct pthread, tle.tqe_next);
45 int _thread_off_attr_flags = offsetof(struct pthread, attr.flags);
46 int _thread_off_linkmap = offsetof(Obj_Entry, linkmap);
47 int _thread_off_tlsindex = offsetof(Obj_Entry, tlsindex);
48 int _thread_off_report_events = offsetof(struct pthread, report_events);
49 int _thread_off_event_mask = offsetof(struct pthread, event_mask);
50 int _thread_off_event_buf = offsetof(struct pthread, event_buf);
52 int _thread_off_key_allocated = offsetof(struc
[all...]
/freebsd-10.0-release/sys/amd64/vmm/intel/
H A Dvmx_genassym.c47 ASSYM(VMXCTX_TMPSTKTOP, offsetof(struct vmxctx, tmpstktop));
48 ASSYM(VMXCTX_GUEST_RDI, offsetof(struct vmxctx, guest_rdi));
49 ASSYM(VMXCTX_GUEST_RSI, offsetof(struct vmxctx, guest_rsi));
50 ASSYM(VMXCTX_GUEST_RDX, offsetof(struct vmxctx, guest_rdx));
51 ASSYM(VMXCTX_GUEST_RCX, offsetof(struct vmxctx, guest_rcx));
52 ASSYM(VMXCTX_GUEST_R8, offsetof(struct vmxctx, guest_r8));
53 ASSYM(VMXCTX_GUEST_R9, offsetof(struct vmxctx, guest_r9));
54 ASSYM(VMXCTX_GUEST_RAX, offsetof(struct vmxctx, guest_rax));
55 ASSYM(VMXCTX_GUEST_RBX, offsetof(struct vmxctx, guest_rbx));
56 ASSYM(VMXCTX_GUEST_RBP, offsetof(struc
[all...]
/freebsd-10.0-release/sys/mips/mips/
H A Dgenassym.c65 #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-10.0-release/sys/arm/arm/
H A Dgenassym.c58 ASSYM(PCB_ONFAULT, offsetof(struct pcb, pcb_onfault));
59 ASSYM(PCB_DACR, offsetof(struct pcb, pcb_dacr));
60 ASSYM(PCB_FLAGS, offsetof(struct pcb, pcb_flags));
61 ASSYM(PCB_UND_SP, offsetof(struct pcb, un_32.pcb32_und_sp));
62 ASSYM(PCB_PAGEDIR, offsetof(struct pcb, pcb_pagedir));
63 ASSYM(PCB_L1VEC, offsetof(struct pcb, pcb_l1vec));
64 ASSYM(PCB_PL1VEC, offsetof(struct pcb, pcb_pl1vec));
65 ASSYM(PCB_R8, offsetof(struct pcb, un_32.pcb32_r8));
66 ASSYM(PCB_R9, offsetof(struct pcb, un_32.pcb32_r9));
67 ASSYM(PCB_R10, offsetof(struc
[all...]
/freebsd-10.0-release/sys/sparc64/sparc64/
H A Dgenassym.c80 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-10.0-release/sys/i386/linux/
H A Dlinux_genassym.c10 ASSYM(LINUX_SIGF_HANDLER, offsetof(struct l_sigframe, sf_handler));
11 ASSYM(LINUX_SIGF_SC, offsetof(struct l_sigframe, sf_sc));
12 ASSYM(LINUX_SC_GS, offsetof(struct l_sigcontext, sc_gs));
13 ASSYM(LINUX_SC_EFLAGS, offsetof(struct l_sigcontext, sc_eflags));
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));
/freebsd-10.0-release/sys/amd64/amd64/
H A Dgenassym.c76 ASSYM(P_VMSPACE, offsetof(struct proc, p_vmspace));
77 ASSYM(VM_PMAP, offsetof(struct vmspace, vm_pmap));
78 ASSYM(PM_ACTIVE, offsetof(struct pmap, pm_active));
79 ASSYM(PM_SAVE, offsetof(struct pmap, pm_save));
80 ASSYM(PM_PCID, offsetof(struct pmap, pm_pcid));
82 ASSYM(P_MD, offsetof(struct proc, p_md));
83 ASSYM(MD_LDT, offsetof(struct mdproc, md_ldt));
84 ASSYM(MD_LDT_SD, offsetof(struct mdproc, md_ldt_sd));
86 ASSYM(TD_LOCK, offsetof(struct thread, td_lock));
87 ASSYM(TD_FLAGS, offsetof(struc
[all...]
/freebsd-10.0-release/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/bitfields/
H A Derr.D_OFFSETOF_BITFIELD.d30 * 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-10.0-release/gnu/usr.bin/gdb/gdbserver/
H A Dfbsd-amd64-low.c37 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-10.0-release/sys/compat/ia32/
H A Dia32_genassym.c14 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-10.0-release/sys/i386/i386/
H A Dgenassym.c81 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));
91 ASSYM(TD_TID, offsetof(struc
[all...]
/freebsd-10.0-release/sys/powerpc/powerpc/
H A Dgenassym.c59 ASSYM(PC_CURTHREAD, offsetof(struct pcpu, pc_curthread));
60 ASSYM(PC_CURPCB, offsetof(struct pcpu, pc_curpcb));
61 ASSYM(PC_CURPMAP, offsetof(struct pcpu, pc_curpmap));
62 ASSYM(PC_TEMPSAVE, offsetof(struct pcpu, pc_tempsave));
63 ASSYM(PC_DISISAVE, offsetof(struct pcpu, pc_disisave));
64 ASSYM(PC_DBSAVE, offsetof(struct pcpu, pc_dbsave));
67 ASSYM(PC_BOOKE_CRITSAVE, offsetof(struct pcpu, pc_booke_critsave));
68 ASSYM(PC_BOOKE_MCHKSAVE, offsetof(struct pcpu, pc_booke_mchksave));
69 ASSYM(PC_BOOKE_TLBSAVE, offsetof(struct pcpu, pc_booke_tlbsave));
70 ASSYM(PC_BOOKE_TLB_LEVEL, offsetof(struc
[all...]
/freebsd-10.0-release/gnu/usr.bin/gdb/kgdb/
H A Dtrgt_mips.c110 offsetof(struct trapframe, zero),
111 offsetof(struct trapframe, ast),
112 offsetof(struct trapframe, v0),
113 offsetof(struct trapframe, v1),
114 offsetof(struct trapframe, a0),
115 offsetof(struct trapframe, a1),
116 offsetof(struct trapframe, a2),
117 offsetof(struct trapframe, a3),
119 offsetof(struct trapframe, a4),
120 offsetof(struc
[all...]
/freebsd-10.0-release/sys/amd64/linux32/
H A Dlinux32_genassym.c10 ASSYM(LINUX_SIGF_HANDLER, offsetof(struct l_sigframe, sf_handler));
11 ASSYM(LINUX_SIGF_SC, offsetof(struct l_sigframe, sf_sc));
12 ASSYM(LINUX_RT_SIGF_HANDLER, offsetof(struct l_rt_sigframe, sf_handler));
13 ASSYM(LINUX_RT_SIGF_UC, offsetof(struct l_rt_sigframe, sf_sc));
14 ASSYM(LINUX_RT_SIGF_SC, offsetof(struct l_ucontext, uc_mcontext));

Completed in 287 milliseconds

1234567891011>>