Searched refs:pc (Results 1 - 25 of 27) sorted by relevance

12

/xnu-2782.1.97/bsd/net/
H A Dbpf_filter.c206 * Execute the filter program starting at pc on the packet p
211 bpf_filter(const struct bpf_insn *pc, u_char *p, u_int wirelen, u_int buflen) argument
219 if (pc == 0)
225 --pc;
227 ++pc;
228 switch (pc->code) {
237 return (u_int)pc->k;
243 k = pc->k;
267 k = pc->k;
284 k = pc
[all...]
H A Droute.h432 void *pc[CTRACE_STACK_SIZE]; /* PC stack trace */ member in struct:ctrace
H A Dpf.c2111 u_int16_t *ic, u_int16_t *pc, struct pf_addr *an, u_int16_t pn,
2139 *pc = ~pf_cksum_fixup(pf_cksum_fixup(~*pc,
2143 *pc = pf_cksum_fixup(pf_cksum_fixup(pf_cksum_fixup(*pc,
2162 *pc = ~pf_cksum_fixup(pf_cksum_fixup(pf_cksum_fixup(
2164 pf_cksum_fixup(pf_cksum_fixup(pf_cksum_fixup(~*pc,
2175 *pc = pf_cksum_fixup(pf_cksum_fixup(pf_cksum_fixup(
2177 pf_cksum_fixup(pf_cksum_fixup(pf_cksum_fixup(*pc,
2231 struct pf_addr *na, u_int16_t np, u_int16_t *pc, u_int16_
2110 pf_change_ap(int dir, struct mbuf *m, struct pf_addr *a, u_int16_t *p, u_int16_t *ic, u_int16_t *pc, struct pf_addr *an, u_int16_t pn, u_int8_t u, sa_family_t af) argument
2230 pf_change_icmp(struct pf_addr *ia, u_int16_t *ip, struct pf_addr *oa, struct pf_addr *na, u_int16_t np, u_int16_t *pc, u_int16_t *h2c, u_int16_t *ic, u_int16_t *hc, u_int8_t u, sa_family_t af) argument
[all...]
H A Droute.c3520 bzero(tr->pc, sizeof (tr->pc));
3521 (void) OSBacktrace(tr->pc, CTRACE_STACK_SIZE);
/xnu-2782.1.97/bsd/dev/i386/
H A Ddtrace_isa.c263 dtrace_getustack_common(uint64_t *pcstack, int pcstack_limit, user_addr_t pc, argument
288 while (pc != 0) {
291 *pcstack++ = (uint64_t)pc;
307 pc = dtrace_fulword(&gregs[REG_PC]);
315 pc = dtrace_fuword32(&gregs[EIP]);
324 pc = dtrace_fuword64((sp + RETURN_OFFSET64));
327 pc = dtrace_fuword32((sp + RETURN_OFFSET));
353 dtrace_adjust_stack(uint64_t **pcstack, int *pcstack_limit, user_addr_t *pc, argument
360 ASSERT(pc != NULL);
367 * add the current pc a
416 user_addr_t pc, sp, fp; local
488 user_addr_t pc, sp, fp; local
541 user_addr_t pc, sp; local
664 uintptr_t pc; local
742 uintptr_t pc; local
[all...]
H A Dfasttrap_isa.c262 fasttrap_tracepoint_init(proc_t *p, fasttrap_tracepoint_t *tp, user_addr_t pc, argument
268 size_t first = MIN(len, PAGE_SIZE - (pc & PAGE_MASK));
286 if (uread(p, &instr[0], first, pc) != 0)
289 uread(p, &instr[first], len - first, pc + first) != 0) {
397 tp->ftt_dest = pc + tp->ftt_size +
506 tp->ftt_dest = pc + tp->ftt_size +
515 tp->ftt_dest = pc + tp->ftt_size +
521 tp->ftt_dest = pc + tp->ftt_size +
527 tp->ftt_dest = pc + tp->ftt_size +
535 tp->ftt_dest = pc
666 fasttrap_return_common(x86_saved_state_t *regs, user_addr_t pc, pid_t pid, user_addr_t new_pc) argument
948 user_addr_t pc = regs32->eip - 1; local
1506 user_addr_t pc = regs64->isf.rip - 1; local
2164 user_addr_t pc = uthread->t_dtrace_pc; local
[all...]
H A Dsdt_x86.c83 uintptr_t pc; local
94 pc = fp->retaddr;
97 && pc > (uintptr_t)dtrace_invop_callsite_pre
98 && pc <= (uintptr_t)dtrace_invop_callsite_post) {
H A Ddtrace_subr_x86.c140 * dtrace_return_probe_ptr function pointer to set %pc.
191 user_addr_t pc = (regs64) ? regs64->isf.rip : (user_addr_t)regs32->eip; local
192 if (fuword8(pc - 1, &instr) == 0 && instr != FASTTRAP_INSTR && // neither single-byte INT3 (0xCC)
193 !(instr == 3 && fuword8(pc - 2, &instr2) == 0 && instr2 == 0xCD)) { // nor two-byte INT 3 (0xCD03)
220 * we copied out caused a synchonous trap, reset the pc back to its
/xnu-2782.1.97/bsd/kern/
H A Dqsort.c126 char *pa, *pb, *pc, *pd, *pl, *pm, *pn; local
154 pc = pd = (char *)a + (n - 1) * es;
156 while (pb <= pc && (r = cmp(pb, a)) <= 0) {
164 while (pb <= pc && (r = cmp(pc, a)) >= 0) {
167 swap(pc, pd);
170 pc -= es;
172 if (pb > pc)
174 swap(pb, pc);
177 pc
[all...]
H A Dkern_pcsamples.c40 unsigned int * pc_buffer = 0; /* buffer that holds each pc */
43 unsigned int npcbufs = 8192; /* number of pc entries in buffer */
133 unsigned int pc; local
140 pc = pc_trace_buf[i];
142 if ((pcsample_beg <= pc) && (pc < pcsample_end))
146 if ( (*(pc_bufptr-1)) == pc )
151 *pc_bufptr = pc;
H A Dsubr_prof.c250 * check that frompcindex is a reasonable pc value.
348 * into the value, and is <= 1.0. pc is at most 32 bits, so the
352 #define PC_TO_INDEX(pc, prof) \
353 ((user_addr_t)(((u_quad_t)((pc) - (prof)->pr_off) * \
371 addupc_task(struct proc *p, user_addr_t pc, u_int ticks) argument
385 off = PC_TO_INDEX(pc, prof);
405 off = PC_TO_INDEX(pc,prof);
H A Dkern_clock.c95 void bsd_uprofil(struct time_value *syst, user_addr_t pc);
357 bsd_uprofil(struct time_value *syst, user_addr_t pc) argument
378 addupc_task(p, pc, ticks);
H A Dkern_sig.c2871 user_addr_t pc; local
2878 pc = get_useraddr();
2879 addupc_task(p, pc, 1);
/xnu-2782.1.97/osfmk/i386/
H A Dlocks_i386.c139 #define OBTAIN_PC(pc) ((pc) = GET_RETURN_PC())
140 #define DECL_PC(pc) pc_t pc;
142 #define DECL_PC(pc)
145 * Eliminate lint complaints about unused local pc variables.
147 #define OBTAIN_PC(pc) ++pc
149 #define OBTAIN_PC(pc)
360 DECL_PC(pc);
508 usld_lock_pre( usimple_lock_t l, pc_t pc) argument
547 usld_lock_post( usimple_lock_t l, pc_t pc) argument
584 usld_unlock( usimple_lock_t l, pc_t pc) argument
626 usld_lock_try_pre( usimple_lock_t l, pc_t pc) argument
649 usld_lock_try_post( usimple_lock_t l, pc_t pc) argument
686 usl_trace( usimple_lock_t l, int mycpu, pc_t pc, const char * op_name) argument
[all...]
H A Dtrap_native.c124 panic_64(x86_saved_state_t *sp, __unused int pc, __unused const char *msg, boolean_t do_mca_dump) argument
127 postcode(pc);
H A Dlocks.h130 vm_offset_t pc; member in struct:__anon912
/xnu-2782.1.97/bsd/sys/
H A Dresourcevar.h81 u_int32_t pr_off; /* pc offset */
82 u_int32_t pr_scale; /* pc scaling */
94 user_ulong_t pr_off; /* pc offset */
95 user_ulong_t pr_scale; /* pc scaling */
129 void addupc_intr(struct proc *p, uint32_t pc, u_int ticks);
130 void addupc_task(struct proc *p, user_addr_t pc, u_int ticks);
H A Dfasttrap_impl.h188 #define FASTTRAP_TPOINTS_INDEX(pid, pc) \
189 (((pc) / sizeof (fasttrap_instr_t) + (pid)) & fasttrap_tpoints.fth_mask)
/xnu-2782.1.97/bsd/i386/
H A Ddis_tables.h102 extern void dtrace_disx86_str(dis86_t *x, uint_t cpu_mode, uint64_t pc,
/xnu-2782.1.97/tools/lldbmacros/
H A Dnet.py790 kgm_pc = rtd.rtd_alloc.pc[ix]
801 kgm_pc = rtd.rtd_free.pc[ix]
813 kgm_pc = rtd.rtd_refhold[cnt].pc[ix]
827 kgm_pc = rtd.rtd_refrele[cnt].pc[ix]
844 kgm_pc = rtd.rtd_lock[cnt].pc[ix]
858 kgm_pc = rtd.rtd_unlock[cnt].pc[ix]
888 kgm_pc = inifa.inifa_alloc.pc[ix]
899 kgm_pc = inifa.inifa_free.pc[ix]
911 kgm_pc = inifa.inifa_refhold[cnt].pc[ix]
925 kgm_pc = inifa.inifa_refrele[cnt].pc[i
[all...]
H A Duserspace.py10 pc_val : int - integer form of the pc address
28 """ Display user space stack frame and pc addresses.
95 cur_pc = unsigned(thread.machine.PcbData.pc)
111 cur_pc = unsigned(upcb.uss.ss_64.pc)
118 cur_pc = unsigned(upcb.uss.ss_32.pc)
/xnu-2782.1.97/bsd/dev/dtrace/
H A Dfasttrap.c80 * table keyed by process ID and pc address. When we enter the kernel due to
273 fasttrap_sigtrap(proc_t *p, uthread_t t, user_addr_t pc) argument
275 #pragma unused(p, t, pc)
282 sqp->sq_info.si_addr = (caddr_t)pc;
589 user_addr_t pc; local
594 pc = probe->ftp_tps[index].fit_tp->ftt_pc;
607 bucket = &fasttrap_tpoints.fth_table[FASTTRAP_TPOINTS_INDEX(pid, pc)];
627 if (tp->ftt_pid != pid || tp->ftt_pc != pc ||
719 ASSERT(new_tp->ftt_pc == pc);
746 if (fasttrap_tracepoint_init(p, new_tp, pc, i
763 user_addr_t pc; local
[all...]
H A Ddtrace.c4739 uint_t pc = 0, id, opc = 0; local
4752 while (pc < textlen && !(*flags & CPU_DTRACE_FAULT)) {
4753 opc = pc;
4755 instr = text[pc++];
4841 pc = DIF_INSTR_LABEL(instr);
4845 pc = DIF_INSTR_LABEL(instr);
4849 pc = DIF_INSTR_LABEL(instr);
4853 pc = DIF_INSTR_LABEL(instr);
4857 pc = DIF_INSTR_LABEL(instr);
4861 pc
8304 dtrace_difo_err(uint_t pc, const char *format, ...) argument
8341 uint_t pc; local
8740 uint_t pc; local
8966 uint_t pc, srd = 0; local
[all...]
/xnu-2782.1.97/tools/lldbmacros/core/
H A Doperating_system.py55 {'name': 'pc' , 'bitsize':64, 'offset':256, 'encoding':'uint', 'format':'hex', 'set':0, 'gcc':32, 'dwarf':32, 'alt-name': 'pc', 'generic':'pc'},
98 self.pc = 0
104 return """ pc = """
111 self.lr, self.sp, self.pc, self.far, self.cpsr, self.esr)
152 self.pc = saved_state.GetChildMemberWithName('pc').GetValueAsUnsigned()
195 # pc for a blocked thread is treated to be the next instruction it would run after thread switch.
196 self.pc
[all...]
/xnu-2782.1.97/osfmk/mach/i386/
H A D_structs.h126 pc :2,

Completed in 154 milliseconds

12