/illumos-gate/usr/src/cmd/sgs/demo_rdb/sparc/ |
H A D | regs.c | 53 pstatus_t pstatus; in display_local_regs() local 56 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), in display_local_regs() 61 prst = &pstatus; in display_local_regs() 76 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), in display_out_regs() 81 prst = &pstatus; in display_out_regs() 96 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), in display_special_regs() 101 prst = &pstatus; in display_special_regs() 115 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), in display_global_regs() 120 prst = &pstatus; in display_global_regs() 135 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), in display_in_regs() [all …]
|
/illumos-gate/usr/src/cmd/sgs/demo_rdb/sparcv9/ |
H A D | regs.c | 66 pstatus_t pstatus; in display_local_regs() local 69 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), in display_local_regs() 74 prst = &pstatus; in display_local_regs() 89 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), in display_out_regs() 94 prst = &pstatus; in display_out_regs() 109 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), in display_special_regs() 114 prst = &pstatus; in display_special_regs() 134 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), in display_global_regs() 139 prst = &pstatus; in display_global_regs() 154 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), in display_in_regs() [all …]
|
/illumos-gate/usr/src/cmd/sgs/demo_rdb/i386/ |
H A D | regs.c | 53 pstatus_t pstatus; in display_all_regs() local 55 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), in display_all_regs() 61 disp_reg_line(ph, &pstatus, "gs", GS, "fs", FS); in display_all_regs() 62 disp_reg_line(ph, &pstatus, "es", ES, "ds", DS); in display_all_regs() 63 disp_reg_line(ph, &pstatus, "edi", EDI, "esi", ESI); in display_all_regs() 64 disp_reg_line(ph, &pstatus, "ebp", EBP, "esp", ESP); in display_all_regs() 65 disp_reg_line(ph, &pstatus, "ebx", EBX, "edx", EDX); in display_all_regs() 66 disp_reg_line(ph, &pstatus, "ecx", ECX, "eax", EAX); in display_all_regs() 67 disp_reg_line(ph, &pstatus, "trapno", TRAPNO, "err", ERR); in display_all_regs() 68 disp_reg_line(ph, &pstatus, "eip", EIP, "cs", CS); in display_all_regs() [all …]
|
/illumos-gate/usr/src/cmd/sgs/demo_rdb/amd64/ |
H A D | regs.c | 55 pstatus_t pstatus; in display_all_regs() local 57 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), in display_all_regs() 63 disp_reg_line(ph, &pstatus, "gs", REG_GS, "fs", REG_FS); in display_all_regs() 64 disp_reg_line(ph, &pstatus, "es", REG_ES, "ds", REG_DS); in display_all_regs() 65 disp_reg_line(ph, &pstatus, "rdi", REG_RDI, "rsi", REG_RSI); in display_all_regs() 66 disp_reg_line(ph, &pstatus, "rbp", REG_RBP, "rsp", REG_RSP); in display_all_regs() 67 disp_reg_line(ph, &pstatus, "rbx", REG_RBX, "rdx", REG_RDX); in display_all_regs() 68 disp_reg_line(ph, &pstatus, "rcx", REG_RCX, "rax", REG_RAX); in display_all_regs() 69 disp_reg_line(ph, &pstatus, "trapno", REG_TRAPNO, "err", REG_ERR); in display_all_regs() 70 disp_reg_line(ph, &pstatus, "rip", REG_RIP, "cs", REG_CS); in display_all_regs() [all …]
|
/illumos-gate/usr/src/cmd/sgs/demo_rdb/common/ |
H A D | bpt.c | 273 pstatus_t pstatus; in continue_to_break() local 327 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), 0) == -1) in continue_to_break() 332 (pstatus.pr_lwp.pr_what != FLTBPT)) { in continue_to_break() 343 pstatus.pr_lwp.pr_why, fltmsg, in continue_to_break() 344 pstatus.pr_lwp.pr_what); in continue_to_break() 408 pstatus_t pstatus; in step_n() local 415 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), 0) == -1) in step_n() 430 pc = pstatus.pr_lwp.pr_reg[R_PC]; in step_n() 457 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), 0) == -1) in step_n() 459 pc = pstatus.pr_lwp.pr_reg[R_PC]; in step_n() [all …]
|
H A D | main.c | 136 pstatus_t pstatus; in main() local 228 if (read(pstatusfd, &pstatus, sizeof (pstatus)) == -1) in main() 234 while ((pstatus.pr_lwp.pr_why == PR_SYSEXIT) && in main() 235 (pstatus.pr_lwp.pr_what == SYS_execve)) { in main() 237 if (!(pstatus.pr_lwp.pr_reg[R_PS] & ERRBIT)) { in main() 252 if (read(pstatusfd, &pstatus, sizeof (pstatus)) == -1) in main() 266 if ((pstatus.pr_lwp.pr_why != PR_SYSEXIT) || in main() 267 (pstatus.pr_lwp.pr_what != SYS_execve)) { in main() 271 "what: %d\n", pstatus.pr_lwp.pr_why, in main() 272 pstatus.pr_lwp.pr_what); in main()
|
H A D | callstack.c | 84 pstatus_t pstatus; in CallStack() local 89 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), 0) == -1) in CallStack() 92 symstr = print_address_ps(ph, (ulong_t)pstatus.pr_lwp.pr_reg[R_PC], in CallStack() 94 (void) printf(" 0x%08x:%-17s\n", EC_WORD(pstatus.pr_lwp.pr_reg[R_PC]), in CallStack() 97 fp = pstatus.pr_lwp.pr_reg[R_FP]; in CallStack()
|
H A D | dis.c | 94 pstatus_t pstatus; in print_address_ps() local 96 if (pread(ph->pp_statusfd, &pstatus, in print_address_ps() 97 sizeof (pstatus), 0) == -1) in print_address_ps() 101 pstatus.pr_lwp.pr_lwpid, pltbase, in print_address_ps()
|
H A D | ps.c | 250 pstatus_t pstatus; in ps_pdmodel() local 252 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), 0) == -1) in ps_pdmodel() 255 *dm = (int)pstatus.pr_dmodel; in ps_pdmodel()
|
/illumos-gate/usr/src/lib/libpctx/common/ |
H A D | libpctx.c | 404 const pstatus_t *pstatus; in pctx_lwpiterate() local 415 pstatus = Pstatus(pctx->Pr); in pctx_lwpiterate() 416 if (pstatus->pr_nlwp <= 1) { in pctx_lwpiterate() 531 const pstatus_t *pstatus; in pctx_run() local 662 pstatus = Pstatus(pctx->Pr); in pctx_run() 663 lwpid = pstatus->pr_lwp.pr_lwpid; in pctx_run() 664 switch (pstatus->pr_lwp.pr_why) { in pctx_run() 714 if (pstatus->pr_lwp.pr_errno) { in pctx_run() 745 if (pstatus->pr_lwp.pr_errno || in pctx_run() 746 pstatus->pr_lwp.pr_rval1) in pctx_run() [all …]
|
/illumos-gate/usr/src/cmd/ptools/pflags/ |
H A D | pflags.c | 130 pstatus_t pstatus; in look() local 167 is64 = (pstatus.pr_dmodel == PR_MODEL_LP64); in look() 169 sigmask = pstatus.pr_sigtrace; in look() 170 fltmask = pstatus.pr_flttrace; in look() 171 entryset = pstatus.pr_sysentry; in look() 172 exitset = pstatus.pr_sysexit; in look() 183 if ((flags = (pstatus.pr_flags & PROCFLAGS)) != 0) in look() 226 sigpend = *((uint32_t *)&pstatus.pr_sigpend); in look() 227 sigpend1 = *((uint32_t *)&pstatus.pr_sigpend + 1); in look() 228 sigpend2 = *((uint32_t *)&pstatus.pr_sigpend + 2); in look() [all …]
|
/illumos-gate/usr/src/cmd/lp/cmd/lpsched/ |
H A D | status.c | 48 static char *pstatus = 0, variable 104 if (!pstatus) in load_pstatus() 105 pstatus = makepath(Lp_System, PSTATUSFILE, (char *)0); in load_pstatus() 106 if ((fd = open_locked(pstatus, "r", 0)) >= 0) { in load_pstatus() 107 char *tmp = pstatus; /* not NULL */ in load_pstatus() 206 note("Had trouble reading file %s", pstatus); in load_pstatus() 247 note("Had trouble reading file %s", pstatus); in load_pstatus() 567 if (!pstatus) in dump_pstatus() 568 pstatus = makepath(Lp_System, PSTATUSFILE, (char *)0); in dump_pstatus() 569 if ((fd = open_locked(pstatus, "w", MODE_READ)) < 0) { in dump_pstatus() [all …]
|
/illumos-gate/usr/src/cmd/ppgsz/ |
H A D | ppgsz.c | 439 const pstatus_t *pstatus; in setpgsz_anon() local 456 if ((pstatus = Pstatus(Pr)) == NULL) in setpgsz_anon() 476 pstatus->pr_brkbase && in setpgsz_anon() 478 pstatus->pr_brkbase + pstatus->pr_brksize) { in setpgsz_anon() 481 } else if (map.pr_vaddr >= pstatus->pr_stkbase && in setpgsz_anon() 483 pstatus->pr_stkbase + pstatus->pr_stksize) { in setpgsz_anon()
|
/illumos-gate/usr/src/lib/libc/i386/sys/ |
H A D | ptrace.c | 72 pstatus_t pstatus; /* from /proc/<pid>/status */ member 217 ps = &cp->pstatus; in ptrace() 558 if (pread(cp->statusfd, (char *)&cp->pstatus, in GrabProc() 559 sizeof (cp->pstatus), (off_t)0) == sizeof (cp->pstatus) && in GrabProc() 560 cp->pstatus.pr_ppid == ppid && in GrabProc() 561 (cp->pstatus.pr_flags & PR_PTRACE) && in GrabProc() 610 pstatus_t *ps = &cp->pstatus; in ProcUpdate() 665 pstatus_t *ps = &cp->pstatus; in MakeUser()
|
/illumos-gate/usr/src/lib/libc/sparc/sys/ |
H A D | ptrace.c | 74 pstatus_t pstatus; /* from /proc/<pid>/status */ member 219 ps = &cp->pstatus; in ptrace() 568 if (pread(cp->statusfd, (char *)&cp->pstatus, in GrabProc() 569 sizeof (cp->pstatus), (off_t)0) == sizeof (cp->pstatus) && in GrabProc() 570 cp->pstatus.pr_ppid == ppid && in GrabProc() 571 (cp->pstatus.pr_flags & PR_PTRACE) && in GrabProc() 620 pstatus_t *ps = &cp->pstatus; in ProcUpdate() 677 pstatus_t *ps = &cp->pstatus; in MakeUser()
|
/illumos-gate/usr/src/cmd/rpcinfo/ |
H A D | rpcinfo.c | 421 if (pstatus(client, prognum, vers) < 0) 457 (void) pstatus(client, prognum, MAX_VERS); 461 (void) pstatus(client, prognum, (ulong_t)0); 471 if (pstatus(client, prognum, vers) < 0) 1409 if (pstatus(client, prognum, versnum) < 0) 1447 (void) pstatus(client, prognum, MAX_VERS); 1460 if (pstatus(client, prognum, versnum) < 0) 1525 if (pstatus(client, prognum, versnum) < 0) 1561 (void) pstatus(client, prognum, MAX_VERS); 1573 if (pstatus(client, prognum, versnum) < 0) [all …]
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | prsystm.h | 51 struct pstatus; 76 extern void prgetstatus(proc_t *, struct pstatus *, zone_t *);
|
/illumos-gate/usr/src/uts/common/exec/elf/ |
H A D | elf_notes.c | 183 pstatus_t pstatus; in write_elfnotes() member 266 prgetstatus(p, &bigwad->pstatus, p->p_zone); in write_elfnotes() 267 bigwad->pstatus.pr_lwp.pr_why = 0; in write_elfnotes() 273 error = elfnote(vp, &offset, NT_PSTATUS, sizeof (bigwad->pstatus), in write_elfnotes() 274 (caddr_t)&bigwad->pstatus, rlimit, credp); in write_elfnotes()
|
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | gen_layout_obj.c | 45 pstatus_t pstatus; variable
|
H A D | struct_layout.h | 566 const sl_pstatus_layout_t *pstatus; /* pstatus_t */ member
|
/illumos-gate/usr/src/cmd/ptools/plgrp/ |
H A D | plgrp.c | 1197 const pstatus_t *pstatus; in Plwp_iter_handler() local 1218 pstatus = Pstatus(Ph); in Plwp_iter_handler() 1224 if (lwpid == pstatus->pr_agentid || in Plwp_iter_handler() 1233 (void) printf(FMT_THREAD" ", (int)pstatus->pr_pid, (int)lwpid); in Plwp_iter_handler() 1234 return (do_op(plgrp_args, pstatus->pr_pid, lwpid, lwpsinfo)); in Plwp_iter_handler()
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.proc.c | 628 int jobflags, pstatus; in pprint() local 645 pstatus = pp->p_flags & PALLSTATES; in pprint() 647 (pstatus == status && pp->p_reason == reason || in pprint() 669 if (pstatus == status) in pprint() 676 status = pstatus; in pprint()
|
/illumos-gate/usr/src/cmd/zlogin/ |
H A D | zlogin.c | 1447 int pstatus = 0, error = -1, lockfd, doorfd; in start_zoneadmd() local 1492 retval = waitpid(child_pid, &pstatus, 0); in start_zoneadmd() 1494 if (WIFSIGNALED(pstatus) || in start_zoneadmd() 1495 (WIFEXITED(pstatus) && WEXITSTATUS(pstatus) != 0)) { in start_zoneadmd()
|
/illumos-gate/usr/src/lib/watchmalloc/common/ |
H A D | malloc.c | 1338 pstatus_t pstatus; in init_watch() local 1350 if (read(pfd, &pstatus, sizeof (pstatus)) in init_watch() 1351 == sizeof (pstatus)) in init_watch() 1352 ctl.fltset = pstatus.pr_flttrace; in init_watch()
|
/illumos-gate/usr/src/cmd/smbsrv/smbadm/ |
H A D | smbadm.c | 1127 char *pstatus; in smbadm_group_dump_privs() local 1139 pstatus = "On"; in smbadm_group_dump_privs() 1142 pstatus = "Off"; in smbadm_group_dump_privs() 1145 pstatus = "Unknown"; in smbadm_group_dump_privs() 1148 (void) printf(gettext("\t\t%s: %s\n"), pinfo->name, pstatus); in smbadm_group_dump_privs()
|