/illumos-gate/usr/src/cmd/svc/startd/ |
H A D | proc.c | 46 psinfo_t psinfo; local 48 fd = open("/proc/self/psinfo", O_RDONLY); 52 bytes = read(fd, &psinfo, sizeof (psinfo)); 53 if (bytes == sizeof (psinfo)) 54 ctid = psinfo.pr_contract;
|
/illumos-gate/usr/src/cmd/pgrep/ |
H A D | psexp.c | 110 psexp->__f1.id_data && !idtab_search(&psexp->__f1, psinfo->__f2) 113 psexp_match(psexp_t *psexp, psinfo_t *psinfo, int flags) argument 143 psinfo->pr_psargs : psinfo->pr_fname;
|
H A D | pgrep.c | 176 print_proc(psinfo_t *psinfo) argument 179 (void) printf("%s%d", g_delim, (int)psinfo->pr_pid); 181 (void) printf("%d", (int)psinfo->pr_pid); 220 print_proc_long(psinfo_t *psinfo) argument 225 name = mbstrip(psinfo->pr_psargs, PRARGSZ); 227 name = psinfo->pr_fname; 230 (void) printf("%s%5d %s", g_delim, (int)psinfo->pr_pid, name); 232 (void) printf("%5d %s", (int)psinfo->pr_pid, name); 238 kill_proc(psinfo_t *psinfo) argument 240 if (psinfo [all...] |
/illumos-gate/usr/src/cmd/ptools/pwait/ |
H A D | pwait.c | 114 (void) strncat(psinfofile, "/psinfo", 158 psinfo_t psinfo; local 160 if (pread(pfd->fd, &psinfo, 161 sizeof (psinfo), (off_t)0) 162 == sizeof (psinfo)) { 165 arg, psinfo.pr_wstat);
|
/illumos-gate/usr/src/cmd/ptools/pldd/ |
H A D | pldd.c | 100 psinfo_t psinfo; local 114 (void) memcpy(&psinfo, Ppsinfo(Pr), sizeof (psinfo_t)); 115 proc_unctrl_psinfo(&psinfo); 125 arg, (int)psinfo.pr_pid, psinfo.pr_psargs); 128 (int)psinfo.pr_pid, psinfo.pr_psargs);
|
/illumos-gate/usr/src/uts/common/exec/elf/ |
H A D | old_notes.c | 107 prpsinfo_t psinfo; member in union:__anon4570 135 oprgetpsinfo(p, &bigwad->psinfo, NULL); 137 error = elfnote(vp, &offset, NT_PRPSINFO, sizeof (bigwad->psinfo), 138 (caddr_t)&bigwad->psinfo, rlimit, credp);
|
H A D | elf_notes.c | 172 psinfo_t psinfo; member in union:__anon187 227 * Get the psinfo, and set the wait status to indicate that a core was 231 prgetpsinfo(p, &bigwad->psinfo); 233 bigwad->psinfo.pr_wstat = wstat(CLD_DUMPED, sig); 235 error = elfnote(vp, &offset, NT_PSINFO, sizeof (bigwad->psinfo), 236 (caddr_t)&bigwad->psinfo, rlimit, credp); 571 psinfo_kto32(psaddr, &bigwad->psinfo); 572 psaddr = &bigwad->psinfo;
|
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | gen_layout_obj.c | 45 psinfo_t psinfo; variable
|
/illumos-gate/usr/src/cmd/ptools/preap/ |
H A D | preap.c | 108 psinfo_t psinfo; local 115 * get the specified pid and the psinfo struct 117 if ((pid = proc_arg_psinfo(arg, PR_ARG_PIDS, &psinfo, &gret)) == -1) { 123 if (psinfo.pr_nlwp != 0) { 129 *exit_status = psinfo.pr_wstat; 130 *reap_pid = psinfo.pr_pid; 131 ppid = psinfo.pr_ppid;
|
/illumos-gate/usr/src/cmd/ptools/psecflags/ |
H A D | psecflags.c | 282 psinfo_t psinfo; local 294 (void) memcpy(&psinfo, Ppsinfo(Pr), sizeof (psinfo_t)); 295 proc_unctrl_psinfo(&psinfo); 299 arg, (int)psinfo.pr_pid, psinfo.pr_psargs); 302 (int)psinfo.pr_pid, psinfo.pr_psargs);
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | proc_arg.c | 46 * Allocate enough space for procfs_path + arg + "/psinfo" 60 (void) strcat(path, "/psinfo"); 63 * Attempt to open the psinfo file, and return the fd if we can 133 psinfo_t psinfo; local 151 if (read(fd, &psinfo, 161 *psp = psinfo; 164 return (Pgrab(psinfo.pr_pid, gflag, 200 if (read(fd, &psinfo, sizeof (psinfo_t)) == sizeof (psinfo_t)) { 203 *psp = psinfo; 206 return (Pgrab(psinfo 258 psinfo_t psinfo; local 273 psinfo_t psinfo; local 432 psinfo_t psinfo; local [all...] |
/illumos-gate/usr/src/cmd/ppgsz/ |
H A D | ppgsz.c | 325 psinfo_t psinfo; local 330 /* get the specified pid and the psinfo struct */ 332 pid = proc_arg_psinfo(arg, PR_ARG_PIDS, &psinfo, &gret); 355 proc_unctrl_psinfo(&psinfo); 358 command, (int)pid, psinfo.pr_psargs); 363 rc = setpgsz(NULL, psinfo.pr_dmodel, pgsz); 440 const psinfo_t *psinfo; local 456 if ((psinfo = Ppsinfo(Pr)) == NULL) 462 pgsz = discover_optimal_pagesize(Pr, dmodel, psinfo->pr_pid); 466 (void) snprintf(path, PATH_MAX, "/proc/%d/map", (int)psinfo [all...] |
/illumos-gate/usr/src/cmd/ptools/psig/ |
H A D | psig.c | 182 psinfo_t psinfo; local 199 (void) memcpy(&psinfo, psinfop, sizeof (psinfo_t)); 200 proc_unctrl_psinfo(&psinfo); 202 (void) sprintf(pathname, "/proc/%d/sigact", (int)psinfo.pr_pid); 228 (void) printf("%d:\t%.70s\n", (int)psinfo.pr_pid, psinfo.pr_psargs); 233 if ((uberaddr = uberdata_addr(Pr, psinfo.pr_dmodel)) == 0) { 239 if (psinfo.pr_dmodel != PR_MODEL_NATIVE) { 304 haddr = deinterpose(sig, aharr, &psinfo, sp); 410 deinterpose(int sig, void *aharr, psinfo_t *psinfo, struc argument [all...] |
/illumos-gate/usr/src/cmd/file/ |
H A D | elf_read.c | 318 char *psinfo, *fname; local 354 if ((psinfo = malloc(dsz)) == NULL) { 360 if (pread64(EI->elffd, psinfo, dsz, offset) != dsz) 364 * in psinfo->pr_fname[], where 'psinfo' 385 fname = psinfo + 88; 387 fname = psinfo + 84; 391 fname = psinfo + 136; 393 fname = psinfo + 120; 398 free(psinfo); [all...] |
/illumos-gate/usr/src/cmd/latencytop/common/ |
H A D | util.c | 140 psinfo_t psinfo; local 142 (void) snprintf(name, PATH_MAX, "/proc/%d/psinfo", (int)pid); 149 ret = read(fd, (char *)&psinfo, sizeof (psinfo_t)); 158 return (lt_strdup(psinfo.pr_fname)); 160 return (lt_strdup(psinfo.pr_psargs));
|
/illumos-gate/usr/src/cmd/ptools/ptime/ |
H A D | ptime.c | 195 psinfo_t psinfo; local 203 if (proc_get_psinfo(pid, &psinfo) < 0) 204 return (perr("read psinfo")); 229 (int)psinfo.pr_pid, psinfo.pr_psargs);
|
/illumos-gate/usr/src/cmd/plimit/ |
H A D | plimit.c | 166 psinfo_t psinfo; local 173 /* get the specified pid and the psinfo struct */ 175 &psinfo, &gret)) == -1) { 185 proc_unctrl_psinfo(&psinfo); 187 (int)pid, psinfo.pr_psargs); 200 proc_unctrl_psinfo(&psinfo); 202 psinfo.pr_psargs);
|
/illumos-gate/usr/src/lib/libpctx/common/ |
H A D | libpctx.c | 530 psinfo_t psinfo; local 730 (void) memcpy(&psinfo, 731 Ppsinfo(pctx->Pr), sizeof (psinfo)); 732 proc_unctrl_psinfo(&psinfo); 735 psinfo.pr_psargs, pctx->uarg) != 0)
|
/illumos-gate/usr/src/cmd/nohup/ |
H A D | nohup.c | 671 psinfo_t psinfo; local 737 PR_ARG_PIDS, &psinfo, &gcode) == -1) 740 if (psinfo.pr_pgid != pgid) 746 if (psinfo.pr_nlwp == 0) 755 (void) kill(psinfo.pr_pid, SIGCONT); 788 (void) kill(psinfo.pr_pid, SIGCONT);
|
/illumos-gate/usr/src/cmd/ptools/pflags/ |
H A D | pflags.c | 134 psinfo_t psinfo; local 150 proc_arg_psinfo(arg, PR_ARG_PIDS, &psinfo, &gcode2) > 0 && 151 psinfo.pr_nlwp == 0) { 152 (void) printf("%d:\t<defunct>\n\n", (int)psinfo.pr_pid); 161 (void) memcpy(&psinfo, Ppsinfo(Pr), sizeof (psinfo_t)); 162 proc_unctrl_psinfo(&psinfo); 164 if (psinfo.pr_nlwp == 0) { 165 (void) printf("%d:\t<defunct>\n\n", (int)psinfo.pr_pid); 179 arg, (int)psinfo.pr_pid, psinfo [all...] |
/illumos-gate/usr/src/cmd/truss/ |
H A D | actions.c | 406 psinfo_t psinfo; local 420 proc_get_psinfo(pid, &psinfo) == 0) { 421 argv = (long)psinfo.pr_argv;
|
/illumos-gate/usr/src/cmd/pbind/ |
H A D | pbind.c | 311 query_all_proc(psinfo_t *psinfo, lwpsinfo_t *lwpsinfo, void *arg) argument 313 id_t pid = psinfo->pr_pid; 333 query_all_lwp(psinfo_t *psinfo, lwpsinfo_t *lwpsinfo, void *arg) argument 335 id_t pid = psinfo->pr_pid; 340 if (psinfo->pr_nlwp == 1)
|
/illumos-gate/usr/src/cmd/utmpd/ |
H A D | utmpd.c | 466 psinfo_t psinfo; local 468 if (pread(pfd->fd, &psinfo, sizeof (psinfo), (off_t)0) 469 != sizeof (psinfo)) { 471 (int)pidtable[i].pl_pid, psinfo.pr_wstat)); 472 pidtable[i].pl_status = psinfo.pr_wstat; 885 (void) sprintf(procname, "/proc/%d/psinfo", (int)pid); 1053 psinfo_t psinfo; local 1061 (void) sprintf(psinfoname, "/proc/%d/psinfo", (int)pid); 1064 read(fd, &psinfo, sizeo [all...] |
/illumos-gate/usr/src/cmd/psrset/ |
H A D | psrset.c | 490 query_all_proc(psinfo_t *psinfo, lwpsinfo_t *lwpsinfo, void *arg) argument 492 id_t pid = psinfo->pr_pid; 512 query_all_lwp(psinfo_t *psinfo, lwpsinfo_t *lwpsinfo, void *arg) argument 514 id_t pid = psinfo->pr_pid; 519 if (psinfo->pr_nlwp == 1)
|
/illumos-gate/usr/src/cmd/tnf/prex/ |
H A D | main.c | 788 * get_data_model() - get the process data model from psinfo 797 prpsinfo_t psinfo; local 803 if ((dmodel = ioctl(fd, PIOCPSINFO, &psinfo)) == -1) 805 return ((int)psinfo.pr_dmodel);
|