Searched refs:ps_prochandle (Results 1 - 25 of 66) sorted by relevance

123

/osnet-11/usr/src/lib/libproc/common/
H A Dlibproc.h76 * The implementation of struct ps_prochandle can change w/o affecting clients.
78 struct ps_prochandle;
190 extern struct ps_prochandle *Pcreate(const char *, char *const *,
192 extern struct ps_prochandle *Pxcreate(const char *, char *const *,
197 extern struct ps_prochandle *Pgrab(pid_t, int, int *);
198 extern struct ps_prochandle *Pgrab_core(const char *, const char *, int, int *);
199 extern struct ps_prochandle *Pfgrab_core(int, const char *, int *);
200 extern struct ps_prochandle *Pgrab_file(const char *, int *);
203 extern int Preopen(struct ps_prochandle *);
204 extern void Prelease(struct ps_prochandle *, in
[all...]
H A Dllib-lproc35 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 *P
[all...]
H A DPisadep.h54 extern int Pissyscall(struct ps_prochandle *, uintptr_t);
58 extern int Pissyscall_text(struct ps_prochandle *, const void *buf,
83 extern uintptr_t Psyscall_setup(struct ps_prochandle *, int, int, uintptr_t);
88 extern int Psyscall_copyinargs(struct ps_prochandle *, int, argdes_t *,
94 extern int Psyscall_copyoutargs(struct ps_prochandle *, int, argdes_t *,
H A DPsymtab_machelf.h36 extern Elf *fake_elf32(struct ps_prochandle *P, file_info_t *fptr,
39 extern Elf *fake_elf64(struct ps_prochandle *P, file_info_t *fptr,
H A DPcontrol.h188 ssize_t (*p_pread)(struct ps_prochandle *,
190 ssize_t (*p_pwrite)(struct ps_prochandle *,
196 struct ps_prochandle { struct
241 struct ps_prochandle *lwp_proc; /* process to which this lwp belongs */
259 extern int Pscantext(struct ps_prochandle *);
260 extern void Pinitsym(struct ps_prochandle *);
261 extern void Preadauxvec(struct ps_prochandle *);
263 extern void Pbuild_file_symtab(struct ps_prochandle *, file_info_t *);
264 extern ctf_file_t *Pbuild_file_ctf(struct ps_prochandle *, file_info_t *);
265 extern map_info_t *Paddr2mptr(struct ps_prochandle *, uintptr_
[all...]
H A DPstack.h42 struct ps_prochandle *uc_proc; /* libproc handle */
46 uint_t uc_cached; /* is cached in the ps_prochandle */
51 void init_uclist(uclist_t *ucl, struct ps_prochandle *P);
H A DPservice.c47 ps_pdmodel(struct ps_prochandle *P, int *modelp)
54 ps_pread(struct ps_prochandle *P, psaddr_t addr, void *buf, size_t size)
62 ps_pwrite(struct ps_prochandle *P, psaddr_t addr, const void *buf, size_t size)
81 ps_pstop(struct ps_prochandle *P)
89 ps_pcontinue(struct ps_prochandle *P)
102 ps_lstop(struct ps_prochandle *P, lwpid_t lwpid)
111 ps_lcontinue(struct ps_prochandle *P, lwpid_t lwpid)
119 ps_lgetregs(struct ps_prochandle *P, lwpid_t lwpid, prgregset_t regs)
131 ps_lsetregs(struct ps_prochandle *P, lwpid_t lwpid, const prgregset_t regs)
143 ps_lgetfpregs(struct ps_prochandle *
[all...]
H A Dproc_set.c39 Psetcred(struct ps_prochandle *Pr, const prcred_t *credp)
70 Psetzoneid(struct ps_prochandle *Pr, zoneid_t zoneid)
H A DPlwpregs.c46 getlwpcore(struct ps_prochandle *P, lwpid_t lwpid)
65 getlwpfile(struct ps_prochandle *P, lwpid_t lwpid,
90 getlwpstatus(struct ps_prochandle *P, lwpid_t lwpid, lwpstatus_t *lps)
129 setlwpregs(struct ps_prochandle *P, lwpid_t lwpid, long cmd,
184 Plwp_getregs(struct ps_prochandle *P, lwpid_t lwpid, prgregset_t gregs)
196 Plwp_setregs(struct ps_prochandle *P, lwpid_t lwpid, const prgregset_t gregs)
202 Plwp_getfpregs(struct ps_prochandle *P, lwpid_t lwpid, prfpregset_t *fpregs)
213 int Plwp_setfpregs(struct ps_prochandle *P, lwpid_t lwpid,
220 Plwp_getxregs(struct ps_prochandle *P, lwpid_t lwpid, prxregset_t *xregs)
250 Plwp_setxregs(struct ps_prochandle *
[all...]
H A DPisprocdir.c38 Pisprocdir(struct ps_prochandle *Pr, const char *dir)
H A Dpr_exit.c36 pr_exit(struct ps_prochandle *Pr, int status)
80 pr_lwp_exit(struct ps_prochandle *Pr)
H A DPcontrol.c69 static void deadcheck(struct ps_prochandle *);
70 static void restore_tracing_flags(struct ps_prochandle *);
71 static void Lfree_internal(struct ps_prochandle *, struct ps_lwphandle *);
79 Pread_live(struct ps_prochandle *P, void *buf, size_t n, uintptr_t addr)
85 Pwrite_live(struct ps_prochandle *P, const void *buf, size_t n, uintptr_t addr)
177 struct ps_prochandle *
187 struct ps_prochandle *P;
199 if ((P = malloc(sizeof (struct ps_prochandle))) == NULL) {
437 struct ps_prochandle *
496 Pcreate_callback(struct ps_prochandle *
[all...]
H A DPsymtab.c51 static file_info_t *build_map_symtab(struct ps_prochandle *, map_info_t *);
52 static map_info_t *exec_map(struct ps_prochandle *);
53 static map_info_t *object_to_map(struct ps_prochandle *, Lmid_t, const char *);
54 static map_info_t *object_name_to_map(struct ps_prochandle *,
57 static int read_ehdr32(struct ps_prochandle *, Elf32_Ehdr *, uint_t *,
60 static int read_ehdr64(struct ps_prochandle *, Elf64_Ehdr *, uint_t *,
97 get_saddrs(struct ps_prochandle *P, uintptr_t ehdr_start, uint_t *n)
171 file_info_new(struct ps_prochandle *P, map_info_t *mptr)
242 file_info_free(struct ps_prochandle *P, file_info_t *fptr)
291 map_info_free(struct ps_prochandle *
[all...]
H A Dpr_mmap.c39 pr_mmap(struct ps_prochandle *Pr,
105 pr_munmap(struct ps_prochandle *Pr, void *addr, size_t len)
142 pr_zmap(struct ps_prochandle *Pr, void *addr, size_t len, int prot, int flags)
H A Dpr_getrlimit.c41 pr_getrlimit(struct ps_prochandle *Pr,
89 pr_setrlimit(struct ps_prochandle *Pr,
137 pr_getrlimit64(struct ps_prochandle *Pr,
185 pr_setrlimit64(struct ps_prochandle *Pr,
H A Dpr_tasksys.c44 pr_getzoneid(struct ps_prochandle *Pr)
78 pr_getprojid(struct ps_prochandle *Pr)
105 pr_gettaskid(struct ps_prochandle *Pr)
132 pr_settaskid(struct ps_prochandle *Pr, projid_t project, int flags)
H A DPidle.c38 Pread_idle(struct ps_prochandle *P, void *buf, size_t n, uintptr_t addr)
68 Pwrite_idle(struct ps_prochandle *P, const void *buf, size_t n, uintptr_t addr)
80 idle_add_mapping(struct ps_prochandle *P, GElf_Phdr *php, file_info_t *fp)
108 struct ps_prochandle *
111 struct ps_prochandle *P = NULL;
132 if ((P = calloc(1, sizeof (struct ps_prochandle))) == NULL) {
H A Dpr_getsockname.c38 get_sock_peer_name(struct ps_prochandle *Pr,
92 pr_getsockname(struct ps_prochandle *Pr,
105 pr_getpeername(struct ps_prochandle *Pr,
115 pr_getsockopt(struct ps_prochandle *Pr,
174 pr_getpeerucred(struct ps_prochandle *Pr, int fd, ucred_t **ucp)
H A DPcore.c46 * Pcore.c - Code to initialize a ps_prochandle from a core dump. We
48 * file, and attach this to the standard ps_prochandle in place of the
58 core_rw(struct ps_prochandle *P, void *buf, size_t n, uintptr_t addr,
108 Pread_core(struct ps_prochandle *P, void *buf, size_t n, uintptr_t addr)
114 Pwrite_core(struct ps_prochandle *P, const void *buf, size_t n, uintptr_t addr)
128 lwpid2info(struct ps_prochandle *P, lwpid_t id)
162 * the ps_prochandle. Each function is invoked by Pfgrab_core() with the
168 note_pstatus(struct ps_prochandle *P, size_t nbytes)
197 note_lwpstatus(struct ps_prochandle *P, size_t nbytes)
239 note_psinfo(struct ps_prochandle *
[all...]
H A Dpr_rename.c36 pr_rename(struct ps_prochandle *Pr, const char *old, const char *new)
87 pr_link(struct ps_prochandle *Pr, const char *existing, const char *new)
145 pr_unlink(struct ps_prochandle *Pr, const char *path)
/osnet-11/usr/src/lib/libproject/common/
H A Dllib-lproject31 struct ps_prochandle;
36 struct ps_prochandle *, struct project *);
/osnet-11/usr/src/lib/libdtrace/common/
H A Ddt_pid.h48 extern int dt_pid_create_entry_probe(struct ps_prochandle *, dtrace_hdl_t *,
51 extern int dt_pid_create_return_probe(struct ps_prochandle *, dtrace_hdl_t *,
54 extern int dt_pid_create_offset_probe(struct ps_prochandle *, dtrace_hdl_t *,
57 extern int dt_pid_create_glob_offset_probes(struct ps_prochandle *,
H A Ddt_proc.h45 struct ps_prochandle *dpr_proc; /* proc handle for libproc calls */
99 extern struct ps_prochandle *dt_proc_create(dtrace_hdl_t *,
102 extern struct ps_prochandle *dt_proc_grab(dtrace_hdl_t *, pid_t, int, int);
103 extern void dt_proc_release(dtrace_hdl_t *, struct ps_prochandle *);
104 extern void dt_proc_continue(dtrace_hdl_t *, struct ps_prochandle *);
105 extern void dt_proc_lock(dtrace_hdl_t *, struct ps_prochandle *);
106 extern void dt_proc_unlock(dtrace_hdl_t *, struct ps_prochandle *);
107 extern dt_proc_t *dt_proc_lookup(dtrace_hdl_t *, struct ps_prochandle *, int);
/osnet-11/usr/src/lib/libproc/i386/
H A DPisadep.c44 Ppltdest(struct ps_prochandle *P, uintptr_t pltaddr)
77 Pissyscall(struct ps_prochandle *P, uintptr_t addr)
92 Pissyscall_prev(struct ps_prochandle *P, uintptr_t addr, uintptr_t *dst)
107 Pissyscall_text(struct ps_prochandle *P, const void *buf, size_t buflen)
137 argcount(struct ps_prochandle *P, long pc, ssize_t sz)
173 Pstack_iter(struct ps_prochandle *P, const prgregset_t regs,
301 Psyscall_setup(struct ps_prochandle *P, int nargs, int sysindex, uintptr_t sp)
313 Psyscall_copyinargs(struct ps_prochandle *P, int nargs, argdes_t *argp,
332 Psyscall_copyoutargs(struct ps_prochandle *P, int nargs, argdes_t *argp,
/osnet-11/usr/src/lib/libproc/sparc/
H A DPisadep.c48 Ppltdest(struct ps_prochandle *P, uintptr_t pltaddr)
82 Pissyscall(struct ps_prochandle *P, uintptr_t addr)
97 Pissyscall_prev(struct ps_prochandle *P, uintptr_t addr, uintptr_t *dst)
112 Pissyscall_text(struct ps_prochandle *P, const void *buf, size_t buflen)
130 struct ps_prochandle *gq_proc; /* libproc handle */
184 read_gwin(struct ps_prochandle *P, struct rwindow *rwp, uintptr_t sp)
253 Pstack_iter(struct ps_prochandle *P, const prgregset_t regs,
342 Psyscall_setup(struct ps_prochandle *P, int nargs, int sysindex, uintptr_t sp)
358 Psyscall_copyinargs(struct ps_prochandle *P, int nargs, argdes_t *argp,
382 Psyscall_copyoutargs(struct ps_prochandle *
[all...]

Completed in 934 milliseconds

123