Searched refs:Pr (Results 1 - 25 of 51) sorted by relevance

123

/illumos-gate/usr/src/lib/libproc/common/
H A Dllib-lproc42 void Pcreate_callback(struct ps_prochandle *Pr);
45 void Pfree(struct ps_prochandle *Pr);
46 int Pstate(struct ps_prochandle *Pr);
47 int Pasfd(struct ps_prochandle *Pr);
48 int Pctlfd(struct ps_prochandle *Pr);
49 const psinfo_t *Ppsinfo(struct ps_prochandle *Pr);
50 const pstatus_t *Pstatus(struct ps_prochandle *Pr);
51 int Pcred(struct ps_prochandle *Pr, prcred_t *pcrp, int ngroups);
52 int Ppriv(struct ps_prochandle *Pr, prpriv_t **pprivp);
53 void Ppriv_free(struct ps_prochandle *Pr, prpriv_
[all...]
H A Dproc_set.c39 Psetcred(struct ps_prochandle *Pr, const prcred_t *credp) argument
48 if (Pr == NULL || credp == NULL)
58 if (write(Pctlfd(Pr), ctlp, sizeof (long) + ctlsize) < 0)
70 Psetzoneid(struct ps_prochandle *Pr, zoneid_t zoneid) argument
77 if (Pr == NULL)
83 if (write(Pctlfd(Pr), &ctl, sizeof (ctl)) < 0)
H A DPisprocdir.c38 Pisprocdir(struct ps_prochandle *Pr, const char *dir) argument
46 procfs_path, (int)Pr->pid, dir);
49 procfs_path, (int)Pr->pid, dir);
H A Dpr_getrlimit.c41 pr_getrlimit(struct ps_prochandle *Pr, argument
50 if (Pr == NULL) /* no subject process */
68 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32)
76 error = Psyscall(Pr, &rval, sysnum, 2, &argd[0]);
89 pr_setrlimit(struct ps_prochandle *Pr, argument
98 if (Pr == NULL) /* no subject process */
116 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32)
124 error = Psyscall(Pr, &rval, sysnum, 2, &argd[0]);
137 pr_getrlimit64(struct ps_prochandle *Pr, argument
146 if (Pr
185 pr_setrlimit64(struct ps_prochandle *Pr, int resource, const struct rlimit64 *rlp) argument
[all...]
H A Dpr_exit.c39 pr_exit(struct ps_prochandle *Pr, int status) argument
46 if (Pr == NULL) { /* no subject process */
58 error = Psyscall(Pr, &rval, SYS_exit, 1, &argd[0]);
82 pr_lwp_exit(struct ps_prochandle *Pr) argument
87 if (Pr == NULL) { /* no subject process */
92 error = Psyscall(Pr, &rval, SYS_lwp_exit, 0, NULL);
H A Dpr_stat.c69 pr_stat(struct ps_prochandle *Pr, const char *path, struct stat *buf) argument
80 if (Pr == NULL) /* no subject process */
83 if (Pstatus(Pr)->pr_dmodel != PR_MODEL_NATIVE) {
108 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32) {
127 error = Psyscall(Pr, &rval, syscall, 4, &argd[0]);
134 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32)
144 pr_lstat(struct ps_prochandle *Pr, const char *path, struct stat *buf) argument
155 if (Pr == NULL) /* no subject process */
158 if (Pstatus(Pr)->pr_dmodel != PR_MODEL_NATIVE) {
183 if (Pstatus(Pr)
219 pr_fstat(struct ps_prochandle *Pr, int fd, struct stat *buf) argument
294 pr_stat64(struct ps_prochandle *Pr, const char *path, struct stat64 *buf) argument
373 pr_lstat64(struct ps_prochandle *Pr, const char *path, struct stat64 *buf) argument
452 pr_fstat64(struct ps_prochandle *Pr, int fd, struct stat64 *buf) argument
[all...]
H A Dpr_tasksys.c44 pr_getzoneid(struct ps_prochandle *Pr) argument
51 if (Pr == NULL) /* no subject process */
68 error = Psyscall(Pr, &rval, SYS_zone, 2, &argd[0]);
78 pr_getprojid(struct ps_prochandle *Pr) argument
85 if (Pr == NULL) /* no subject process */
95 error = Psyscall(Pr, &rval, SYS_tasksys, 1, &argd[0]);
105 pr_gettaskid(struct ps_prochandle *Pr) argument
112 if (Pr == NULL) /* no subject process */
122 error = Psyscall(Pr, &rval, SYS_tasksys, 1, &argd[0]);
132 pr_settaskid(struct ps_prochandle *Pr, projid_ argument
[all...]
H A Dpr_mmap.c39 pr_mmap(struct ps_prochandle *Pr, argument
47 if (Pr == NULL) /* no subject process */
92 error = Psyscall(Pr, &rval, SYS_mmap, 6, &argd[0]);
105 pr_munmap(struct ps_prochandle *Pr, void *addr, size_t len) argument
112 if (Pr == NULL) /* no subject process */
129 error = Psyscall(Pr, &rval, SYS_munmap, 2, &argd[0]);
142 pr_zmap(struct ps_prochandle *Pr, void *addr, size_t len, int prot, int flags) argument
144 return (pr_mmap(Pr, addr, len, prot, flags | MAP_ANON, -1, (off_t)0));
H A Dpr_lseek.c43 pr_lseek(struct ps_prochandle *Pr, int filedes, off_t offset, int whence) argument
53 if (Pr == NULL)
64 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_NATIVE) {
96 error = Psyscall(Pr, &rval, syscall, nargs, &argd[0]);
103 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_NATIVE)
118 pr_llseek(struct ps_prochandle *Pr, int filedes, offset_t offset, int whence) argument
128 if (Pr == NULL)
139 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_LP64) {
171 error = Psyscall(Pr, &rval, syscall, nargs, &argd[0]);
178 if (Pstatus(Pr)
[all...]
H A Dpr_statvfs.c65 pr_statvfs(struct ps_prochandle *Pr, const char *path, statvfs_t *buf) argument
75 if (Pr == NULL) /* no subject process */
89 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32) {
101 error = Psyscall(Pr, &rval, SYS_statvfs, 2, &argd[0]);
108 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32)
118 pr_fstatvfs(struct ps_prochandle *Pr, int fd, statvfs_t *buf) argument
128 if (Pr == NULL) /* no subject process */
142 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32) {
154 error = Psyscall(Pr, &rval, SYS_fstatvfs, 2, &argd[0]);
161 if (Pstatus(Pr)
[all...]
H A Dpr_waitid.c45 pr_waitid(struct ps_prochandle *Pr, argument
56 if (Pr == NULL) /* no subject process */
78 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32) {
97 error = Psyscall(Pr, &rval, SYS_waitid, 4, &argd[0]);
104 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32)
H A Dpr_meminfo.c40 pr_meminfo(struct ps_prochandle *Pr, const uint64_t *addrs, argument
71 if ((totalmap = pr_zmap(Pr, 0, totalsize, PROT_READ | PROT_WRITE,
85 if (Pwrite(Pr, addrs, inarraysize, inaddr) != inarraysize) {
90 if (Pwrite(Pr, info, infoarraysize, infoaddr) !=
97 model = Pr->status.pr_dmodel;
156 error = Psyscall(Pr, &rval, SYS_meminfosys, 3, &argd[0]);
165 if ((Pread(Pr, outdata, outarraysize, outaddr)) != outarraysize) {
170 if (Pread(Pr, validity, validityarraysize, validityaddr)
181 pr_munmap(Pr, totalmap, totalsize) == -1) {
H A Dpr_rename.c36 pr_rename(struct ps_prochandle *Pr, const char *old, const char *new) argument
43 if (Pr == NULL)
74 error = Psyscall(Pr, &rval, SYS_renameat, 4, &argd[0]);
87 pr_link(struct ps_prochandle *Pr, const char *existing, const char *new) argument
94 if (Pr == NULL)
132 error = Psyscall(Pr, &rval, SYS_linkat, 5, &argd[0]);
145 pr_unlink(struct ps_prochandle *Pr, const char *path) argument
152 if (Pr == NULL)
176 error = Psyscall(Pr, &rval, SYS_unlinkat, 3, &argd[0]);
H A Dpr_getsockname.c40 get_sock_peer_name(struct ps_prochandle *Pr, argument
76 error = Psyscall(Pr, &rval, syscall, 4, &argd[0]);
94 pr_getsockname(struct ps_prochandle *Pr, argument
97 if (Pr == NULL) /* no subject process */
100 return (get_sock_peer_name(Pr, SYS_getsockname, sock, name, namelen));
107 pr_getpeername(struct ps_prochandle *Pr, argument
110 if (Pr == NULL) /* no subject process */
113 return (get_sock_peer_name(Pr, SYS_getpeername, sock, name, namelen));
117 pr_getsockopt(struct ps_prochandle *Pr, argument
125 if (Pr
176 pr_getpeerucred(struct ps_prochandle *Pr, int fd, ucred_t **ucp) argument
[all...]
H A Dpr_sigaction.c44 pr_sigaction(struct ps_prochandle *Pr, argument
56 if (Pr == NULL) /* no subject process */
77 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32) {
102 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32) {
115 error = Psyscall(Pr, &rval, SYS_sigaction, 3, &argd[0]);
122 if (oact != NULL && Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32)
H A Dpr_getitimer.c39 pr_getitimer(struct ps_prochandle *Pr, int which, struct itimerval *itv) argument
46 int victim32 = (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32);
50 if (Pr == NULL) /* no victim process */
77 error = Psyscall(Pr, &rval, SYS_getitimer, 2, &argd[0]);
95 pr_setitimer(struct ps_prochandle *Pr, argument
103 int victim32 = (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32);
108 if (Pr == NULL) /* no victim process */
160 error = Psyscall(Pr, &rval, SYS_setitimer, 3, &argd[0]);
H A Dpr_fcntl.c40 pr_fcntl(struct ps_prochandle *Pr, int fd, int cmd, void *argp) argument
47 if (Pr == NULL) /* no subject process */
59 if (Pstatus(Pr)->pr_dmodel == PR_MODEL_ILP32) {
133 error = Psyscall(Pr, &rval, SYS_fcntl, 3, &argd[0]);
H A Dpr_door.c40 pr_door_info(struct ps_prochandle *Pr, int did, door_info_t *di) argument
47 if (Pr == NULL) /* no subject process */
91 error = Psyscall(Pr, &rval, SYS_door, 6, &argd[0]);
H A Dpr_ioctl.c39 pr_ioctl(struct ps_prochandle *Pr, int fd, int code, void *buf, size_t size) argument
46 if (Pr == NULL) /* no subject process */
77 error = Psyscall(Pr, &rval, SYS_ioctl, 3, &argd[0]);
/illumos-gate/usr/src/cmd/ptools/pldd/
H A Dpldd.c101 struct ps_prochandle *Pr; local
105 if ((Pr = proc_arg_grab(arg = *argv++, PR_ARG_ANY,
114 (void) memcpy(&psinfo, Ppsinfo(Pr), sizeof (psinfo_t));
117 if (Pstate(Pr) == PS_DEAD) {
118 if ((Pcontent(Pr) & content) != content) {
131 if (Pgetauxval(Pr, AT_BASE) != -1L && Prd_agent(Pr) == NULL) {
138 rc += Pobject_iter(Pr, show_map, Pr);
140 rc += Pobject_iter_resolved(Pr, show_ma
152 struct ps_prochandle *Pr = cd; local
[all...]
/illumos-gate/usr/src/cmd/ptools/pfiles/
H A Dpfiles.c83 struct ps_prochandle *Pr; local
145 if ((Pr = proc_arg_xgrab(arg, NULL, PR_ARG_CORES,
159 Prelease(Pr, 0);
165 show_files(Pr);
166 Prelease(Pr, 0);
168 } else if ((Pr = Pgrab(pid, Fflag, &gret)) != NULL) {
169 if (Pcreate_agent(Pr) == 0) {
173 show_files(Pr);
174 Pdestroy_agent(Pr);
181 Prelease(Pr,
219 struct ps_prochandle *Pr = data; local
324 show_files(struct ps_prochandle *Pr) argument
343 getflock(struct ps_prochandle *Pr, int fd, struct flock *flock_native) argument
362 dofcntl(struct ps_prochandle *Pr, prfdinfo_t *info, int mandatory, int isdoor) argument
487 show_door(struct ps_prochandle *Pr, int fd) argument
609 show_sockopts(struct ps_prochandle *Pr, int fd) argument
686 show_sockfilters(struct ps_prochandle *Pr, int fd) argument
750 dopeerucred(struct ps_prochandle *Pr, int fd) argument
762 dosocket(struct ps_prochandle *Pr, int fd) argument
791 dofifo(struct ps_prochandle *Pr, int fd) argument
798 dotli(struct ps_prochandle *Pr, int fd) argument
[all...]
/illumos-gate/usr/src/cmd/plimit/
H A Dplimit.c95 struct ps_prochandle *Pr; local
179 } else if ((Pr = Pgrab(pid, Fflag, &gret)) != NULL) {
180 if (Pcreate_agent(Pr) == 0) {
182 if (set_limits(Pr) != 0)
188 show_limits(Pr);
190 Pdestroy_agent(Pr);
197 Prelease(Pr, 0);
389 show_limits(struct ps_prochandle *Pr) argument
399 if (pr_getrlimit64(Pr, resource, &rlim) != 0)
471 set_one_limit(struct ps_prochandle *Pr, in argument
590 set_limits(struct ps_prochandle *Pr) argument
[all...]
/illumos-gate/usr/src/cmd/ppgsz/
H A Dppgsz.c55 static struct ps_prochandle *Pr; variable in typeref:struct:ps_prochandle
257 Pr = Pcreate(argv[0], &argv[0], &err, path, sizeof (path));
258 if (Pr == NULL) {
291 if ((rc = setpgsz(Pr, Pstatus(Pr)->pr_dmodel, pgsz)) != 0) {
294 (void) pr_exit(Pr, 1);
302 Prelease(Pr, 0);
343 } else if ((Pr = Pgrab(pid, Fflag, &gret)) != NULL) {
344 rc = setpgsz(Pr, Pstatus(Pr)
398 setpgsz(struct ps_prochandle *Pr, int dmodel, size_t pgsz[]) argument
434 setpgsz_anon(struct ps_prochandle *Pr, size_t pgsz, int dmodel) argument
543 discover_optimal_pagesize(struct ps_prochandle *Pr, uint_t dmodel, pid_t pid) argument
[all...]
/illumos-gate/usr/src/cmd/ptools/psig/
H A Dpsig.c113 uberdata_addr(struct ps_prochandle *Pr, char dmodel) argument
117 if (Plookup_by_name(Pr, "libc.so", "_tdb_bootstrap", &sym) < 0)
124 if (Pread(Pr, &addr, sizeof (addr), sym.st_value)
127 Pread(Pr, &uaddr, sizeof (uaddr), (uintptr_t)addr)
137 if (Pread(Pr, &addr, sizeof (addr), sym.st_value)
140 Pread(Pr, &uaddr, sizeof (uaddr), addr)
145 if (Plookup_by_name(Pr, "libc.so", "_uberdata", &sym) < 0)
184 struct ps_prochandle *Pr = NULL; local
193 if ((Pr = proc_arg_grab(arg, PR_ARG_PIDS, PGRAB_RDONLY|PGRAB_FORCE,
194 &gcode)) == NULL || (psinfop = Ppsinfo(Pr))
[all...]
/illumos-gate/usr/src/cmd/ptools/pstack/
H A Dpstack.c212 struct ps_prochandle *Pr = NULL; local
222 if ((Pr = proc_arg_xgrab(arg, NULL, PR_ARG_ANY,
230 if ((tpsinfo = Ppsinfo(Pr)) == NULL) {
233 Prelease(Pr, 0);
240 if (Pstate(Pr) == PS_DEAD) {
241 if ((Pcontent(Pr) & content) != content) {
256 if (Pgetauxval(Pr, AT_BASE) != -1L && Prd_agent(Pr) == NULL) {
266 td_ta_new(Pr, &Tap) != TD_OK) /* no libc */
283 handle.proc = Pr;
433 struct ps_prochandle *Pr = h->proc; local
529 struct ps_prochandle *Pr = h->proc; local
612 print_zombie(struct ps_prochandle *Pr, struct threadinfo *tip) argument
676 struct ps_prochandle *Pr = cd; local
705 load_libjvm(struct ps_prochandle *Pr) argument
772 struct ps_prochandle *Pr = cd; local
800 load_libpython(struct ps_prochandle *Pr) argument
[all...]

Completed in 85 milliseconds

123