Lines Matching refs:pc
77 uintptr_t pc, ra, fp; in pmc_save_kernel_callchain() local
83 pc = PMC_TRAPFRAME_TO_PC(tf); in pmc_save_kernel_callchain()
84 *cc++ = pc; in pmc_save_kernel_callchain()
90 if (!PMC_IN_KERNEL(pc) || !PMC_IN_KERNEL_STACK(fp)) in pmc_save_kernel_callchain()
98 pc = *(uintptr_t *)ra; in pmc_save_kernel_callchain()
99 if (!PMC_IN_KERNEL(pc)) in pmc_save_kernel_callchain()
102 *cc++ = pc; in pmc_save_kernel_callchain()
120 uintptr_t pc, r, oldfp, fp; in pmc_save_user_callchain() local
126 pc = PMC_TRAPFRAME_TO_PC(tf); in pmc_save_user_callchain()
127 *cc++ = pc; in pmc_save_user_callchain()
134 if (!PMC_IN_USERSPACE(pc) || in pmc_save_user_callchain()
141 if (copyin((void *)r, &pc, sizeof(pc)) != 0) in pmc_save_user_callchain()
143 if (!PMC_IN_USERSPACE(pc)) in pmc_save_user_callchain()
146 *cc++ = pc; in pmc_save_user_callchain()