Home
last modified time | relevance | path

Searched refs:pc (Results 26 – 50 of 270) sorted by relevance

1234567891011

/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_disasm.c274 buflen, pc) != -1) { in libdisasm_read()
279 (uintptr_t)pc); in libdisasm_read()
283 db->db_addr = pc; in libdisasm_read()
286 offset = pc - db->db_addr; in libdisasm_read()
291 db->db_nextaddr = pc + len; in libdisasm_read()
335 return (pc); in libdisasm_ins2str()
345 mdb_tgt_addr_t pc, uint_t n) in libdisasm_previns() argument
369 mdb_tgt_addr_t pc) in libdisasm_nextins() argument
374 if ((npc = libdisasm_ins2str(dp, t, as, &c, 1, pc)) == pc) in libdisasm_nextins()
375 return (pc); in libdisasm_nextins()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dwalkstack.c346 display_stack_info(uintptr_t pc, int signo, void *arg) in display_stack_info() argument
354 (void) addrtosymstr((void *)pc, buffer, sizeof (buffer)); in display_stack_info()
396 callback(uintptr_t pc, int signo __unused, void *arg) in callback() argument
403 bt->bt_buffer[bt->bt_actcount++] = (void *)pc; in callback()
435 addrtosymstr(void *pc, char *buffer, int size) in addrtosymstr() argument
440 if (dladdr1(pc, &info, (void **)&sym, in addrtosymstr()
442 return (snprintf(buffer, size, "[0x%p]", pc)); in addrtosymstr()
453 (unsigned long)pc - (unsigned long)info.dli_saddr, in addrtosymstr()
454 pc)); in addrtosymstr()
461 (unsigned long)pc - (unsigned long)info.dli_fbase, in addrtosymstr()
[all …]
/illumos-gate/usr/src/tools/smatch/src/validation/
H A DWaddress-space-all-attr.c13 obj_t __user *p, obj_t __percpu *pc, in expl() argument
31 (ulong)(pc); (__UINTPTR_TYPE__)(pc); in expl()
32 (void *)(pc); in expl()
33 (obj_t*)(pc); in expl()
34 (obj_t __percpu*)(pc); in expl()
/illumos-gate/usr/src/cmd/sh/
H A Dio.c230 unsigned char *pc; in copy() local
265 pc = readw(c); in copy()
266 while (*pc) { in copy()
269 *clinep++ = *pc++; in copy()
280 pc = readw(c); in copy()
281 while (*pc) { in copy()
284 *clinep++ = *pc++; in copy()
290 if (*pc) { in copy()
291 while (*pc) { in copy()
294 *clinep++ = *pc++; in copy()
[all …]
/illumos-gate/usr/src/cmd/sgs/link_audit/common/
H A Dwho.c135 print_simple_address(void *pc) in print_simple_address() argument
139 if (dladdr(pc, &info) == 0) { in print_simple_address()
141 "\t<unknown>: 0x%lx\n", (unsigned long)pc); in print_simple_address()
147 (ulong_t)((uintptr_t)pc - (uintptr_t)info.dli_saddr)); in print_simple_address()
197 print_address(caddr_t pc) in print_address() argument
204 print_simple_address(pc); in print_address()
208 if ((pc >= op->o_lpc) && (pc <= op->o_hpc)) in print_address()
215 print_simple_address(pc); in print_address()
221 pc = (caddr_t)((uintptr_t)pc - (uintptr_t)op->o_lpc); in print_address()
223 if (((uintptr_t)_sym->st_value < (uintptr_t)pc) && in print_address()
[all …]
/illumos-gate/usr/src/uts/sparc/dtrace/
H A Ddtrace_isa.c113 if (pc != NULL) { in dtrace_getpcstack()
161 i = pc[j++]; in dtrace_getpcstack()
376 uintptr_t pc; in dtrace_getustack_common() local
387 if (pc == 0) in dtrace_getustack_common()
417 uint32_t pc; in dtrace_getustack_common() local
428 if (pc == 0) in dtrace_getustack_common()
592 uintptr_t pc; in dtrace_getufpstack() local
602 if (pc == 0) in dtrace_getufpstack()
606 *pcstack++ = pc; in dtrace_getufpstack()
619 uint32_t pc; in dtrace_getufpstack() local
[all …]
/illumos-gate/usr/src/lib/libc/amd64/unwind/
H A Deh_frame.c145 if ((ctx->pc < func) || (ctx->pc > (func+range))) in _Unw_Decode_FDE()
296 locate_fde_for_pc(uint64_t pc, int enc,
314 uint64_t pc = ctx->pc; in _Unw_EhfhLookup() local
323 if (0 == dlamd64getunwind((void*)pc, &dlef)) { in _Unw_EhfhLookup()
347 ctx->fde = locate_fde_for_pc(pc, ft_enc, pi, pj, reloc, base); in _Unw_EhfhLookup()
352 locate_fde_for_pc(uint64_t pc, int enc, in locate_fde_for_pc() argument
376 if (range_start <= pc && pc < range_end) { in locate_fde_for_pc()
380 if (range_start < pc) in locate_fde_for_pc()
H A Dunwind.c157 void _Unw_jmp(uint64_t pc, uint64_t *regs);
237 ctx->pc = ((uint64_t *)fp2)[1]; in finish_capture()
247 uint64_t old_pc = old_ctx->pc; in down_one()
251 new_ctx->pc = 0; in down_one()
257 new_ctx->pc = 0; in down_one()
267 new_ctx->pc = 0; in down_one()
277 _Unw_jmp(ctx->pc, ctx->current_regs); in jmp_ctx()
423 ctx->cfa = ctx->ra = ctx->pc = 0; in _Unwind_ForcedUnwind_Body()
515 return (context->pc); in _Unwind_GetIP()
521 context->pc = new_value; in _Unwind_SetIP()
/illumos-gate/usr/src/cmd/tip/aculib/
H A Dv831.c158 #define pc(x) (c = x, (void) write(AC, &c, 1)) macro
197 pc(STX); in dialit()
198 pc(vp->vc_rack); in dialit()
199 pc(vp->vc_modem); in dialit()
201 pc(*phonenum++); in dialit()
202 pc(SI); in dialit()
203 pc(ETX); in dialit()
214 pc(ABORT); in dialit()
/illumos-gate/usr/src/lib/libcurses/screen/
H A Ddelay.c97 char pc; in _delay() local
116 pc = *pad_char; in _delay()
118 pc = 0; in _delay()
120 (*outc)(pc); in _delay()
H A Dmvderwin.c58 chtype obkgd, **wc, **pc; in mvderwin() local
81 pc = par->_y + pary; in mvderwin()
84 for (y = 0; y <= maxy; ++y, ++wc, ++pc, ++begch, ++endch) { in mvderwin()
85 *wc = *pc + parx; in mvderwin()
/illumos-gate/usr/src/uts/sun4v/promif/
H A Dpromif_cpu.c89 caddr_t pc; in promif_start_cpu() local
98 pc = p1275_cell2ptr(ci[4]); in promif_start_cpu()
106 lpp = lpad_setup(cpuid, (uint64_t)pc, (uint64_t)arg); in promif_start_cpu()
110 pc = (caddr_t)lpp; in promif_start_cpu()
112 rv = hv_cpu_start(cpuid, va_to_pa(pc), rtba, cpuid); in promif_start_cpu()
/illumos-gate/usr/src/cmd/sgs/rtld/amd64/
H A Ddlamd64getunwind.c37 getunwind_core(Lm_list *lml, void *pc, Dl_amd64_unwindinfo *unwindinfo) in getunwind_core() argument
72 lmp = _caller(pc, CL_NONE); in getunwind_core()
80 if ((mpp = find_segment(pc, lmp)) == NULL) in getunwind_core()
118 dlamd64getunwind(void *pc, Dl_amd64_unwindinfo *unwindinfo) in dlamd64getunwind() argument
127 unwindinfo = getunwind_core(lml, pc, unwindinfo); in dlamd64getunwind()
/illumos-gate/usr/src/uts/common/io/audio/drv/audiopci/
H A Daudiopci.c790 *val = pc->val; in audiopci_get_value()
900 pc->val = val; in audiopci_set_reclevel()
914 pc->val = val; in audiopci_set_micboost()
930 pc->val = val; in audiopci_set_monsrc()
946 pc->val = val; in audiopci_set_recsrc()
965 pc->val = val; in audiopci_set_volume()
987 pc->val = val; in audiopci_set_front()
1006 pc->val = val; in audiopci_set_speaker()
1030 pc->num = num; in audiopci_alloc_ctrl()
1031 pc->dev = dev; in audiopci_alloc_ctrl()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dldebug.h14 #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1) argument
16 #define getfuncline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) argument
/illumos-gate/usr/src/contrib/ast/src/lib/libast/path/
H A Dpathcheck.c52 pathcheck(const char* package, const char* tool, Pathcheck_t* pc) in pathcheck() argument
89 if (pc) memzero(pc, sizeof(*pc)); in pathcheck()
/illumos-gate/usr/src/cmd/truss/
H A Dipc.c267 prgreg_t pc; in checkproc() local
390 (void) Lgetareg(Lwp, R_PC, &pc); in checkproc()
401 (void) Lputareg(Lwp, R_nPC, pc); in checkproc()
403 (void) Lgetareg(Lwp, R_PC, &pc); in checkproc()
406 (void) Lgetareg(Lwp, R_PC, &pc); in checkproc()
411 (void) Pissyscall_prev(Proc, pc, (uintptr_t *)&pc); in checkproc()
412 (void) Lputareg(Lwp, R_PC, pc); in checkproc()
H A Dfcall.c412 get_bkpt(uintptr_t pc) in get_bkpt() argument
417 if (pc == Bp->addr) in get_bkpt()
437 if (pc == Bp->addr) in create_bkpt()
457 Bp->addr = pc; in create_bkpt()
1256 pc = (uint32_t)pc; in function_trace()
1266 (ulong_t)pc); in function_trace()
1577 frame[nframe].pc = pc; in trap_one_stack()
1661 uintptr_t pc = 0; in previous_fp() local
1673 fp = pc = 0; in previous_fp()
1682 fp = pc = 0; in previous_fp()
[all …]
/illumos-gate/usr/src/grub/grub-0.97/
H A Dconfig.guess305 echo alpha-pc-interix
790 echo ${UNAME_MACHINE}-pc-pw32
796 echo i${UNAME_MACHINE}-pc-mks
802 echo i586-pc-interix
1053 pc:*:*:*)
1057 echo i386-pc-msdosdjgpp
1060 echo i386-pc-mach3
1164 echo i586-pc-beos
1193 UNAME_MACHINE=pc
1198 echo i386-pc-qnx
[all …]
/illumos-gate/usr/src/cmd/mdb/intel/kmdb/
H A Dkvm_isadep.c65 kmt_step_out_validate(mdb_tgt_t *t, uintptr_t pc) in kmt_step_out_validate() argument
73 if (pc >= sym->st_value && pc < sym->st_value + sym->st_size) in kmt_step_out_validate()
87 kreg_t pc, sp, fp; in kmt_step_out() local
89 (void) kmdb_dpi_get_register("pc", &pc); in kmt_step_out()
93 if (mdb_tgt_vread(t, &instr, sizeof (mdb_instr_t), pc) != in kmt_step_out()
97 if (!kmt_step_out_validate(t, pc)) in kmt_step_out()
100 return (mdb_isa_step_out(t, p, pc, fp, sp, instr)); in kmt_step_out()
110 kreg_t pc; in kmt_next() local
113 (void) kmdb_dpi_get_register("pc", &pc); in kmt_next()
115 if (mdb_tgt_vread(t, &instr, sizeof (mdb_instr_t), pc) != in kmt_next()
[all …]
H A Dkaif.c475 kreg_t pc, fl, oldfl, newfl, sp; in kaif_step() local
481 (void) kmdb_dpi_get_register("pc", &pc); in kaif_step()
483 if (kaif_toxic_text(pc)) { in kaif_step()
484 warn("%a cannot be stepped\n", pc); in kaif_step()
489 MDB_TGT_AS_VIRT_I, pc)) == pc) { in kaif_step()
490 warn("failed to decode instruction at %a for step\n", pc); in kaif_step()
502 sizeof (mdb_instr_t), pc + pcoff) != sizeof (mdb_instr_t)) { in kaif_step()
504 (void *)(pc + pcoff)); in kaif_step()
524 (void *)(pc + pcoff)); in kaif_step()
782 kaif_handle_fault(greg_t trapno, greg_t pc, greg_t sp, int cpuid) in kaif_handle_fault() argument
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dcyclic.c369 cyc_pcbuffer_t *pc; in cycinfo() local
377 pc = &softbuf->cys_buf[which]; in cycinfo()
378 bufsiz = (pc->cypc_sizemask + 1) * sizeof (cyc_index_t); in cycinfo()
389 for (i = 0; i <= pc->cypc_sizemask && in cycinfo()
390 i <= pc->cypc_prodndx; i++) { in cycinfo()
402 (uintptr_t)pc->cypc_buf, buf[i], in cycinfo()
405 if (i >= pc->cypc_prodndx) in cycinfo()
420 if (i == (pc->cypc_consndx & pc->cypc_sizemask)) { in cycinfo()
422 if (i == (pc->cypc_prodndx & pc->cypc_sizemask)) in cycinfo()
428 if (i == (pc->cypc_prodndx & pc->cypc_sizemask)) { in cycinfo()
[all …]
H A Dgcore.c824 pc->pc_pid = pid.pid_id; in pcommon_init()
825 pc->pc_ppid = p->p_ppid; in pcommon_init()
831 pc->pc_pgid = pid.pid_id; in pcommon_init()
841 pc->pc_sid = pid.pid_id; in pcommon_init()
1695 pcommon_t pc; in Pstatus_gcore() local
1712 sp->pr_nlwp = pc.pc_nlwp; in Pstatus_gcore()
1714 sp->pr_pid = pc.pc_pid; in Pstatus_gcore()
1717 sp->pr_sid = pc.pc_sid; in Pstatus_gcore()
1762 pcommon_t pc; in Ppsinfo_gcore() local
1775 psp->pr_pid = pc.pc_pid; in Ppsinfo_gcore()
[all …]
/illumos-gate/usr/src/boot/i386/libi386/
H A Dbiospci.c266 struct pci_class *pc; in biospci_enumerate() local
271 for (pc = pci_classes; pc->pc_class >= 0; pc++) { in biospci_enumerate()
273 for (psc = pc->pc_subclass; psc->ps_subclass >= 0; psc++) { in biospci_enumerate()
281 (pc->pc_class << 16) + in biospci_enumerate()
301 biospci_addinfo(devid, pc, psc, ppi); in biospci_enumerate()
309 biospci_addinfo(int devid, struct pci_class *pc, struct pci_subclass *psc, in biospci_addinfo() argument
326 if (pc->pc_name != NULL) in biospci_addinfo()
327 strcat(desc, pc->pc_name); in biospci_addinfo()
/illumos-gate/usr/src/cmd/tbl/
H A Dtt.c95 struct colstr *pc; in thish() local
107 pc = &table[i][c]; in thish()
108 s = (t=='a' ? pc->rcol : pc->col); in thish()

1234567891011