/titanic_44/usr/src/cmd/sgs/librtld_db/demo/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() 73 pstatus_t pstatus; in display_out_regs() local 76 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), in display_out_regs() 81 prst = &pstatus; in display_out_regs() 93 pstatus_t pstatus; in display_special_regs() local 96 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), in display_special_regs() 101 prst = &pstatus; in display_special_regs() 112 pstatus_t pstatus; in display_global_regs() local [all …]
|
/titanic_44/usr/src/cmd/sgs/librtld_db/demo/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() 86 pstatus_t pstatus; in display_out_regs() local 89 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), in display_out_regs() 94 prst = &pstatus; in display_out_regs() 106 pstatus_t pstatus; in display_special_regs() local 109 if (pread(ph->pp_statusfd, &pstatus, sizeof (pstatus), in display_special_regs() 114 prst = &pstatus; in display_special_regs() 131 pstatus_t pstatus; in display_global_regs() local [all …]
|
/titanic_44/usr/src/cmd/sgs/librtld_db/demo/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 …]
|
/titanic_44/usr/src/cmd/sgs/librtld_db/demo/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 …]
|
/titanic_44/usr/src/cmd/sgs/librtld_db/demo/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() 331 if ((pstatus.pr_lwp.pr_why != PR_FAULTED) || in continue_to_break() 332 (pstatus.pr_lwp.pr_what != FLTBPT)) { in continue_to_break() 335 if ((pstatus.pr_lwp.pr_what <= MAXFAULT) && in continue_to_break() 336 (pstatus.pr_lwp.pr_why == PR_FAULTED)) in continue_to_break() 337 fltmsg = fault_strings[pstatus.pr_lwp.pr_what]; 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() 352 if ((bpt = find_bp(ph, pstatus.pr_lwp.pr_reg[R_PC])) == in continue_to_break() [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 | 93 pstatus_t pstatus; in print_address_ps() local 95 if (pread(ph->pp_statusfd, &pstatus, in print_address_ps() 96 sizeof (pstatus), 0) == -1) in print_address_ps() 100 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()
|
/titanic_44/usr/src/lib/libpctx/common/ |
H A D | libpctx.c | 402 const pstatus_t *pstatus; in pctx_lwpiterate() local 413 pstatus = Pstatus(pctx->Pr); in pctx_lwpiterate() 414 if (pstatus->pr_nlwp <= 1) { in pctx_lwpiterate() 416 ret = action(pctx, pstatus->pr_pid, 1, pctx->uarg); in pctx_lwpiterate() 422 "/proc/%d/lstatus", (int)pstatus->pr_pid); in pctx_lwpiterate() 445 pstatus->pr_pid, lwps->pr_lwpid, pctx->uarg) != 0) in pctx_lwpiterate() 529 const pstatus_t *pstatus; in pctx_run() local 660 pstatus = Pstatus(pctx->Pr); in pctx_run() 661 lwpid = pstatus->pr_lwp.pr_lwpid; in pctx_run() 662 switch (pstatus->pr_lwp.pr_why) { in pctx_run() [all …]
|
/titanic_44/usr/src/cmd/ptools/pflags/ |
H A D | pflags.c | 133 pstatus_t pstatus; in look() local 160 (void) memcpy(&pstatus, Pstatus(Pr), sizeof (pstatus_t)); in look() 170 is64 = (pstatus.pr_dmodel == PR_MODEL_LP64); in look() 172 sigmask = pstatus.pr_sigtrace; in look() 173 fltmask = pstatus.pr_flttrace; in look() 174 entryset = pstatus.pr_sysentry; in look() 175 exitset = pstatus.pr_sysexit; in look() 186 if ((flags = (pstatus.pr_flags & PROCFLAGS)) != 0) in look() 229 sigpend = *((uint32_t *)&pstatus.pr_sigpend); in look() 230 sigpend1 = *((uint32_t *)&pstatus.pr_sigpend + 1); in look() [all …]
|
/titanic_44/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 …]
|
/titanic_44/usr/src/cmd/ppgsz/ |
H A D | ppgsz.c | 441 const pstatus_t *pstatus; in setpgsz_anon() local 458 if ((pstatus = Pstatus(Pr)) == NULL) in setpgsz_anon() 478 pstatus->pr_brkbase && in setpgsz_anon() 480 pstatus->pr_brkbase + pstatus->pr_brksize) { in setpgsz_anon() 483 } else if (map.pr_vaddr >= pstatus->pr_stkbase && in setpgsz_anon() 485 pstatus->pr_stkbase + pstatus->pr_stksize) { in setpgsz_anon()
|
/titanic_44/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()
|
/titanic_44/usr/src/lib/libc/i386/sys/ |
H A D | ptrace.c | 74 pstatus_t pstatus; /* from /proc/<pid>/status */ member 219 ps = &cp->pstatus; in ptrace() 560 if (pread(cp->statusfd, (char *)&cp->pstatus, in GrabProc() 561 sizeof (cp->pstatus), (off_t)0) == sizeof (cp->pstatus) && in GrabProc() 562 cp->pstatus.pr_ppid == ppid && in GrabProc() 563 (cp->pstatus.pr_flags & PR_PTRACE) && in GrabProc() 612 pstatus_t *ps = &cp->pstatus; in ProcUpdate() 667 pstatus_t *ps = &cp->pstatus; in MakeUser()
|
/titanic_44/usr/src/uts/common/sys/ |
H A D | prsystm.h | 50 struct pstatus; 72 extern void prgetstatus(proc_t *, struct pstatus *, zone_t *);
|
/titanic_44/usr/src/cmd/rpcinfo/ |
H A D | rpcinfo.c | 109 static int pstatus(/*CLIENT *client, ulong_t prognum, ulong_t vers*/); 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); 1451 (void) pstatus(client, prognum, (ulong_t)0); 1460 if (pstatus(client, prognum, versnum) < 0) 1525 if (pstatus(client, prognum, versnum) < 0) [all …]
|
/titanic_44/usr/src/uts/common/exec/elf/ |
H A D | elf_notes.c | 172 pstatus_t pstatus; in write_elfnotes() member 253 prgetstatus(p, &bigwad->pstatus, p->p_zone); in write_elfnotes() 254 bigwad->pstatus.pr_lwp.pr_why = 0; in write_elfnotes() 260 error = elfnote(vp, &offset, NT_PSTATUS, sizeof (bigwad->pstatus), in write_elfnotes() 261 (caddr_t)&bigwad->pstatus, rlimit, credp); in write_elfnotes()
|
/titanic_44/usr/src/cmd/sgs/elfdump/common/ |
H A D | gen_layout_obj.c | 42 pstatus_t pstatus; variable
|
H A D | struct_layout.h | 542 const sl_pstatus_layout_t *pstatus; /* pstatus_t */ member
|
/titanic_44/usr/src/cmd/ptools/plgrp/ |
H A D | plgrp.c | 1199 const pstatus_t *pstatus; in Plwp_iter_handler() local 1220 pstatus = Pstatus(Ph); in Plwp_iter_handler() 1226 if (lwpid == pstatus->pr_agentid || in Plwp_iter_handler() 1235 (void) printf(FMT_THREAD" ", (int)pstatus->pr_pid, (int)lwpid); in Plwp_iter_handler() 1236 return (do_op(plgrp_args, pstatus->pr_pid, lwpid, lwpsinfo)); in Plwp_iter_handler()
|
/titanic_44/usr/src/cmd/csh/ |
H A D | sh.proc.c | 622 int jobflags, pstatus; in pprint() local 639 pstatus = pp->p_flags & PALLSTATES; in pprint() 641 (pstatus == status && pp->p_reason == reason || in pprint() 663 if (pstatus == status) in pprint() 670 status = pstatus; in pprint()
|
/titanic_44/usr/src/lib/watchmalloc/common/ |
H A D | malloc.c | 1340 pstatus_t pstatus; in init_watch() local 1352 if (read(pfd, &pstatus, sizeof (pstatus)) in init_watch() 1353 == sizeof (pstatus)) in init_watch() 1354 ctl.fltset = pstatus.pr_flttrace; in init_watch()
|
/titanic_44/usr/src/cmd/smbsrv/smbadm/ |
H A D | smbadm.c | 918 char *pstatus; in smbadm_group_dump_privs() local 930 pstatus = "On"; in smbadm_group_dump_privs() 933 pstatus = "Off"; in smbadm_group_dump_privs() 936 pstatus = "Unknown"; in smbadm_group_dump_privs() 939 (void) printf(gettext("\t\t%s: %s\n"), pinfo->name, pstatus); in smbadm_group_dump_privs()
|
/titanic_44/usr/src/cmd/zlogin/ |
H A D | zlogin.c | 1446 int pstatus = 0, error = -1, lockfd, doorfd; in start_zoneadmd() local 1491 retval = waitpid(child_pid, &pstatus, 0); in start_zoneadmd() 1493 if (WIFSIGNALED(pstatus) || in start_zoneadmd() 1494 (WIFEXITED(pstatus) && WEXITSTATUS(pstatus) != 0)) { in start_zoneadmd()
|