Lines Matching refs:ps_prochandle

35 struct ps_prochandle *Pcreate(const char *file, char *const *argv,
38 void Pcreate_callback(struct ps_prochandle *Pr);
39 struct ps_prochandle *Pgrab(pid_t pid, int gflag, int *perr);
41 void Pfree(struct ps_prochandle *Pr);
42 int Pstate(struct ps_prochandle *Pr);
43 int Pasfd(struct ps_prochandle *Pr);
44 int Pctlfd(struct ps_prochandle *Pr);
45 const psinfo_t *Ppsinfo(struct ps_prochandle *Pr);
46 const pstatus_t *Pstatus(struct ps_prochandle *Pr);
47 int Pcred(struct ps_prochandle *Pr, prcred_t *pcrp, int ngroups);
48 ssize_t Ppriv(struct ps_prochandle *Pr, prpriv_t *pprivp, size_t);
49 void Psync(struct ps_prochandle *Pr);
50 int Pcreate_agent(struct ps_prochandle *Pr);
51 void Pdestroy_agent(struct ps_prochandle *Pr);
52 int Preopen(struct ps_prochandle *Pr);
53 void Prelease(struct ps_prochandle *Pr, int flags);
54 int Pstopstatus(struct ps_prochandle *Pr, long cmd, uint_t msec);
55 int Pwait(struct ps_prochandle *Pr, uint_t msec);
56 int Pstop(struct ps_prochandle *Pr, uint_t msec);
57 int Pdstop(struct ps_prochandle *Pr);
58 int Pgetareg(struct ps_prochandle *Pr, int regno, prgreg_t *preg);
59 int Pputareg(struct ps_prochandle *Pr, int regno, prgreg_t reg);
60 int Psetrun(struct ps_prochandle *Pr, int sig, int flags);
61 ssize_t Pread(struct ps_prochandle *Pr,
63 ssize_t Pread_string(struct ps_prochandle *Pr,
65 ssize_t Pwrite(struct ps_prochandle *Pr,
67 int Pclearsig(struct ps_prochandle *Pr);
68 int Pclearfault(struct ps_prochandle *Pr);
69 int Psetbkpt(struct ps_prochandle *Pr, uintptr_t address, ulong_t *saved);
70 int Pdelbkpt(struct ps_prochandle *Pr, uintptr_t address, ulong_t saved);
71 int Pxecbkpt(struct ps_prochandle *Pr, ulong_t saved);
72 int Psetwapt(struct ps_prochandle *Pr, const prwatch_t *wp);
73 int Pdelwapt(struct ps_prochandle *Pr, const prwatch_t *wp);
74 int Pxecwapt(struct ps_prochandle *Pr, const prwatch_t *wp);
75 int Psetflags(struct ps_prochandle *Pr, long flags);
76 int Punsetflags(struct ps_prochandle *Pr, long flags);
77 int Psignal(struct ps_prochandle *Pr, int which, int stop);
78 void Psetsignal(struct ps_prochandle *Pr, const sigset_t *set);
79 int Pfault(struct ps_prochandle *Pr, int which, int stop);
80 void Psetfault(struct ps_prochandle *Pr, const fltset_t *set);
81 int Psysentry(struct ps_prochandle *Pr, int which, int stop);
82 void Psetsysentry(struct ps_prochandle *Pr, const sysset_t *set);
83 int Psysexit(struct ps_prochandle *Pr, int which, int stop);
84 void Psetsysexit(struct ps_prochandle *Pr, const sysset_t *set);
85 int Plwp_iter(struct ps_prochandle *Pr, proc_lwp_f *func, void *cd);
86 int Psyscall(struct ps_prochandle *Pr, sysret_t *,
89 struct ps_lwphandle *Lgrab(struct ps_prochandle *P, lwpid_t lwpid, int *perr);
91 struct ps_prochandle *Lprochandle(struct ps_lwphandle *Lwp);
110 int Plwp_getregs(struct ps_prochandle *Pr, lwpid_t i, prgregset_t gr);
111 int Plwp_setregs(struct ps_prochandle *Pr, lwpid_t i, const prgregset_t gr);
112 int Plwp_getfpregs(struct ps_prochandle *Pr, lwpid_t i, prfpregset_t *fp);
113 int Plwp_setfpregs(struct ps_prochandle *Pr, lwpid_t i, const prfpregset_t *fp);
114 int Plwp_getxregs(struct ps_prochandle *Pr, lwpid_t i, prxregset_t *xr);
115 int Plwp_setxregs(struct ps_prochandle *Pr, lwpid_t i, const prxregset_t *xr);
117 int Plwp_getasrs(struct ps_prochandle *Pr, lwpid_t i, asrset_t asrs);
118 int Plwp_setasrs(struct ps_prochandle *Pr, lwpid_t i, const asrset_t asrs);
120 int Plwp_getpsinfo(struct ps_prochandle *Pr, lwpid_t i, lwpsinfo_t *lps);
123 struct ps_prochandle *Pfgrab_core(int fd, const char *aout, int *perr);
124 struct ps_prochandle *Pgrab_core(const char *core, const char *aout,
128 int Pisprocdir(struct ps_prochandle *Pr, const char *dir);
131 ps_err_e ps_pdmodel(struct ps_prochandle *Pr, int *modelp);
132 ps_err_e ps_pread(struct ps_prochandle *Pr,
134 ps_err_e ps_pwrite(struct ps_prochandle *Pr,
136 ps_err_e ps_pdread(struct ps_prochandle *Pr,
138 ps_err_e ps_pdwrite(struct ps_prochandle *Pr,
140 ps_err_e ps_ptread(struct ps_prochandle *Pr,
142 ps_err_e ps_ptwrite(struct ps_prochandle *Pr,
144 ps_err_e ps_pstop(struct ps_prochandle *Pr);
145 ps_err_e ps_pcontinue(struct ps_prochandle *Pr);
146 ps_err_e ps_lstop(struct ps_prochandle *Pr, lwpid_t lwpid);
147 ps_err_e ps_lcontinue(struct ps_prochandle *Pr, lwpid_t lwpid);
148 ps_err_e ps_lgetregs(struct ps_prochandle *Pr,
150 ps_err_e ps_lsetregs(struct ps_prochandle *Pr,
152 ps_err_e ps_lgetfpregs(struct ps_prochandle *Pr,
154 ps_err_e ps_lsetfpregs(struct ps_prochandle *Pr,
156 ps_err_e ps_lgetxregsize(struct ps_prochandle *Pr,
158 ps_err_e ps_lgetxregs(struct ps_prochandle *Pr,
160 ps_err_e ps_lsetxregs(struct ps_prochandle *Pr,
163 ps_err_e ps_lgetLDT(struct ps_prochandle *Pr,
169 void Pupdate_maps(struct ps_prochandle *Pr);
170 void Pupdate_syms(struct ps_prochandle *Pr);
171 rd_agent_t *Prd_agent(struct ps_prochandle *Pr);
172 const prmap_t *Paddr_to_map(struct ps_prochandle *Pr, uintptr_t addr);
173 const prmap_t *Paddr_to_text_map(struct ps_prochandle *Pr, uintptr_t addr);
174 const prmap_t *Pname_to_map(struct ps_prochandle *Pr, const char *name);
175 const prmap_t *Plmid_to_map(struct ps_prochandle *Pr, Lmid_t lmid,
177 int Plookup_by_addr(struct ps_prochandle *Pr, uintptr_t addr,
179 int Plookup_by_name(struct ps_prochandle *Pr,
182 int Plookup_by_lmid(struct ps_prochandle *Pr,
185 const rd_loadobj_t *Paddr_to_loadobj(struct ps_prochandle *, uintptr_t);
186 const rd_loadobj_t *Pname_to_loadobj(struct ps_prochandle *, const char *);
187 const rd_loadobj_t *Plmid_to_loadobj(struct ps_prochandle *, Lmid_t,
189 int Pmapping_iter(struct ps_prochandle *Pr, proc_map_f *func, void *cd);
190 int Pmapping_iter_resolved(struct ps_prochandle *Pr, proc_map_f *func,
192 int Pobject_iter(struct ps_prochandle *Pr, proc_map_f *func, void *cd);
193 int Pobject_iter_resolved(struct ps_prochandle *Pr, proc_map_f *func,
195 char *Pobjname(struct ps_prochandle *Pr, uintptr_t addr,
197 char *Pobjname_resolved(struct ps_prochandle *Pr, uintptr_t addr,
199 int Plmid(struct ps_prochandle *Pr, uintptr_t addr, Lmid_t *lmidp);
200 int Psymbol_iter(struct ps_prochandle *Pr, const char *object_name,
202 int Psymbol_iter_by_lmid(struct ps_prochandle *Pr, Lmid_t lmid,
205 char *Pgetenv(struct ps_prochandle *Pr, const char *name,
207 char *Pplatform(struct ps_prochandle *Pr, char *s, size_t n);
208 int Puname(struct ps_prochandle *Pr, struct utsname *u);
209 char *Pzonename(struct ps_prochandle *Pr, char *s, size_t n);
210 char *Pfindobj(struct ps_prochandle *Pr, const char *path,
212 char *Pexecname(struct ps_prochandle *Pr, char *buffer, size_t bufsize);
213 void Preset_maps(struct ps_prochandle *Pr);
215 ps_err_e ps_pglobal_lookup(struct ps_prochandle *Pr,
219 ps_err_e ps_pglobal_sym(struct ps_prochandle *Pr,
223 long Pgetauxval(struct ps_prochandle *Pr, int type);
224 const auxv_t *Pgetauxvec(struct ps_prochandle *Pr);
225 ps_err_e ps_pauxv(struct ps_prochandle *Pr, const auxv_t **aux);
228 void Perror_printf(struct ps_prochandle *Pr, const char *format, ...);
231 int pr_door_info(struct ps_prochandle *Pr, int did, door_info_t *di);
234 int pr_exit(struct ps_prochandle *Pr, int status);
235 int pr_lwp_exit(struct ps_prochandle *Pr);
238 int pr_fcntl(struct ps_prochandle *Pr, int fd, int cmd, void *argp);
241 int pr_getitimer(struct ps_prochandle *Pr,
243 int pr_setitimer(struct ps_prochandle *Pr,
247 int pr_getrctl(struct ps_prochandle *Pr, const char *rname,
249 int pr_setrctl(struct ps_prochandle *Pr, const char *rname,
251 int pr_setprojrctl(struct ps_prochandle *Pr, const char *rname,
255 int pr_getrlimit(struct ps_prochandle *Pr,
257 int pr_setrlimit(struct ps_prochandle *Pr,
259 int pr_getrlimit64(struct ps_prochandle *Pr,
261 int pr_setrlimit64(struct ps_prochandle *Pr,
265 int pr_getsockname(struct ps_prochandle *Pr,
267 int pr_getpeername(struct ps_prochandle *Pr,
271 int pr_ioctl(struct ps_prochandle *Pr,
275 off_t pr_lseek(struct ps_prochandle *Pr,
277 offset_t pr_llseek(struct ps_prochandle *Pr,
281 int pr_memcntl(struct ps_prochandle *Pr,
285 void *pr_mmap(struct ps_prochandle *Pr,
287 int pr_munmap(struct ps_prochandle *Pr,
289 void *pr_zmap(struct ps_prochandle *Pr,
293 int pr_open(struct ps_prochandle *Pr,
295 int pr_creat(struct ps_prochandle *Pr,
297 int pr_close(struct ps_prochandle *Pr, int fd);
298 int pr_access(struct ps_prochandle *Pr, const char *path, int amode);
301 int pr_processor_bind(struct ps_prochandle *Pr, idtype_t, id_t, int, int *);
304 int pr_rename(struct ps_prochandle *Pr, const char *old, const char *new);
305 int pr_link(struct ps_prochandle *Pr, const char *exist, const char *new);
306 int pr_unlink(struct ps_prochandle *Pr, const char *);
309 int pr_sigaction(struct ps_prochandle *Pr,
313 int pr_stat(struct ps_prochandle *Pr, const char *path, struct stat *buf);
314 int pr_lstat(struct ps_prochandle *Pr, const char *path, struct stat *buf);
315 int pr_fstat(struct ps_prochandle *Pr, int fd, struct stat *buf);
316 int pr_stat64(struct ps_prochandle *Pr, const char *path,
318 int pr_lstat64(struct ps_prochandle *Pr, const char *path,
320 int pr_fstat64(struct ps_prochandle *Pr, int fd, struct stat64 *buf);
323 int pr_statvfs(struct ps_prochandle *Pr, const char *path, statvfs_t *buf);
324 int pr_fstatvfs(struct ps_prochandle *Pr, int fd, statvfs_t *buf);
327 projid_t pr_getprojid(struct ps_prochandle *Pr);
328 taskid_t pr_gettaskid(struct ps_prochandle *Pr);
329 taskid_t pr_settaskid(struct ps_prochandle *Pr, projid_t project, int flags);
332 int pr_waitid(struct ps_prochandle *Pr,
368 struct ps_prochandle *proc_arg_grab(const char *arg,
375 int Psetcred(struct ps_prochandle *Pr, const prcred_t *pcred);
378 int Pstack_iter(struct ps_prochandle *Pr,
382 const char *Ppltdest(struct ps_prochandle *Pr, uintptr_t addr);