Home
last modified time | relevance | path

Searched refs:ps_prochandle (Results 1 – 25 of 139) sorted by relevance

123456

/illumos-gate/usr/src/lib/libproc/common/
H A Dlibproc.h75 struct ps_prochandle;
188 typedef ssize_t (*pop_pread_t)(struct ps_prochandle *, void *, size_t,
190 typedef ssize_t (*pop_pwrite_t)(struct ps_prochandle *, const void *, size_t,
192 typedef int (*pop_read_maps_t)(struct ps_prochandle *, prmap_t **, ssize_t *,
194 typedef void (*pop_read_aux_t)(struct ps_prochandle *, auxv_t **, int *,
196 typedef int (*pop_cred_t)(struct ps_prochandle *, prcred_t *, int,
198 typedef int (*pop_priv_t)(struct ps_prochandle *, prpriv_t **, void *);
199 typedef int (*pop_secflags_t)(struct ps_prochandle *, prsecflags_t **, void *);
200 typedef const psinfo_t *(*pop_psinfo_t)(struct ps_prochandle *, psinfo_t *,
202 typedef void (*pop_status_t)(struct ps_prochandle *, pstatus_t *, void *);
[all …]
H A DPcontrol.h209 struct ps_prochandle { struct
259 struct ps_prochandle *lwp_proc; /* process to which this lwp belongs */ argument
277 extern int Pscantext(struct ps_prochandle *);
278 extern void Pinitsym(struct ps_prochandle *);
279 extern void Pinitfd(struct ps_prochandle *);
280 extern void Preadauxvec(struct ps_prochandle *);
282 extern void Pbuild_file_symtab(struct ps_prochandle *, file_info_t *);
283 extern ctf_file_t *Pbuild_file_ctf(struct ps_prochandle *, file_info_t *);
284 extern map_info_t *Paddr2mptr(struct ps_prochandle *, uintptr_t);
285 extern char *Pfindexec(struct ps_prochandle *, const char *,
[all …]
H A DPservice.c53 ps_pdmodel(struct ps_prochandle *P, int *modelp) in ps_pdmodel()
60 ps_pread(struct ps_prochandle *P, psaddr_t addr, void *buf, size_t size) in ps_pread()
68 ps_pwrite(struct ps_prochandle *P, psaddr_t addr, const void *buf, size_t size) in ps_pwrite()
87 ps_pstop(struct ps_prochandle *P) in ps_pstop()
95 ps_pcontinue(struct ps_prochandle *P) in ps_pcontinue()
108 ps_lstop(struct ps_prochandle *P, lwpid_t lwpid) in ps_lstop()
117 ps_lcontinue(struct ps_prochandle *P, lwpid_t lwpid) in ps_lcontinue()
125 ps_lgetregs(struct ps_prochandle *P, lwpid_t lwpid, prgregset_t regs) in ps_lgetregs()
137 ps_lsetregs(struct ps_prochandle *P, lwpid_t lwpid, const prgregset_t regs) in ps_lsetregs()
149 ps_lgetfpregs(struct ps_prochandle *P, lwpid_t lwpid, prfpregset_t *regs) in ps_lgetfpregs()
[all …]
H A DPcontrol.c80 static void deadcheck(struct ps_prochandle *);
81 static void restore_tracing_flags(struct ps_prochandle *);
82 static void Lfree_internal(struct ps_prochandle *, struct ps_lwphandle *);
83 static prheader_t *read_lfile(struct ps_prochandle *, const char *);
90 Pread_live(struct ps_prochandle *P, void *buf, size_t n, uintptr_t addr, in Pread_live()
97 Pwrite_live(struct ps_prochandle *P, const void *buf, size_t n, uintptr_t addr, in Pwrite_live()
104 Pread_maps_live(struct ps_prochandle *P, prmap_t **Pmapp, ssize_t *nmapp, in Pread_maps_live()
137 Pread_aux_live(struct ps_prochandle *P, auxv_t **auxvp, int *nauxp, void *data) in Pread_aux_live()
174 Pcred_live(struct ps_prochandle *P, prcred_t *pcrp, int ngroups, void *data) in Pcred_live()
180 Psecflags_live(struct ps_prochandle *P, prsecflags_t **psf, void *data) in Psecflags_live()
[all …]
H A DPlwpregs.c59 getlwpcore(struct ps_prochandle *P, lwpid_t lwpid) in getlwpcore()
80 getlwpfile(struct ps_prochandle *P, lwpid_t lwpid, in getlwpfile()
114 getlwpfile_alloc(struct ps_prochandle *P, lwpid_t lwpid, const char *fbase, in getlwpfile_alloc()
164 getlwpstatus(struct ps_prochandle *P, lwpid_t lwpid, lwpstatus_t *lps) in getlwpstatus()
207 refresh_status(struct ps_prochandle *P, lwpid_t lwpid, struct ps_lwphandle *L, in refresh_status()
235 setlwpregs_proc(struct ps_prochandle *P, lwpid_t lwpid, long cmd, in setlwpregs_proc()
331 Plwp_getregs(struct ps_prochandle *P, lwpid_t lwpid, prgregset_t gregs) in Plwp_getregs()
350 Plwp_setregs(struct ps_prochandle *P, lwpid_t lwpid, const prgregset_t gregs) in Plwp_setregs()
362 Plwp_getfpregs(struct ps_prochandle *P, lwpid_t lwpid, prfpregset_t *fpregs) in Plwp_getfpregs()
381 Plwp_setfpregs(struct ps_prochandle *P, lwpid_t lwpid, in Plwp_setfpregs()
[all …]
H A DPisadep.h52 extern int Pissyscall(struct ps_prochandle *, uintptr_t);
56 extern int Pissyscall_text(struct ps_prochandle *, const void *buf,
81 extern uintptr_t Psyscall_setup(struct ps_prochandle *, int, int, uintptr_t);
86 extern int Psyscall_copyinargs(struct ps_prochandle *, int, argdes_t *,
92 extern int Psyscall_copyoutargs(struct ps_prochandle *, int, argdes_t *,
H A DPsymtab.c54 static file_info_t *build_map_symtab(struct ps_prochandle *, map_info_t *);
55 static map_info_t *exec_map(struct ps_prochandle *);
56 static map_info_t *object_to_map(struct ps_prochandle *, Lmid_t, const char *);
57 static map_info_t *object_name_to_map(struct ps_prochandle *,
60 static int read_ehdr32(struct ps_prochandle *, Elf32_Ehdr *, uint_t *,
63 static int read_ehdr64(struct ps_prochandle *, Elf64_Ehdr *, uint_t *,
117 get_saddrs(struct ps_prochandle *P, uintptr_t ehdr_start, uint_t *n) in get_saddrs()
191 file_info_new(struct ps_prochandle *P, map_info_t *mptr) in file_info_new()
263 file_info_free(struct ps_prochandle *P, file_info_t *fptr) in file_info_free()
314 map_info_free(struct ps_prochandle *P, map_info_t *mptr) in map_info_free()
[all …]
H A DPfdinfo.c40 Pinitfd(struct ps_prochandle *P) in Pinitfd()
53 Pfd2info(struct ps_prochandle *P, int fd) in Pfd2info()
81 struct ps_prochandle *P = arg; in fdwalk_cb()
105 load_fdinfo(struct ps_prochandle *P) in load_fdinfo()
123 Pfdinfo_iter(struct ps_prochandle *P, proc_fdinfo_f *func, void *cd) in Pfdinfo_iter()
H A DPcore.c73 core_rw(struct ps_prochandle *P, void *buf, size_t n, uintptr_t addr, in core_rw()
123 Pread_core(struct ps_prochandle *P, void *buf, size_t n, uintptr_t addr, in Pread_core()
130 Pwrite_core(struct ps_prochandle *P, const void *buf, size_t n, uintptr_t addr, in Pwrite_core()
138 Pcred_core(struct ps_prochandle *P, prcred_t *pcrp, int ngroups, void *data) in Pcred_core()
161 Psecflags_core(struct ps_prochandle *P, prsecflags_t **psf, void *data) in Psecflags_core()
179 Ppriv_core(struct ps_prochandle *P, prpriv_t **pprv, void *data) in Ppriv_core()
198 Ppsinfo_core(struct ps_prochandle *P, psinfo_t *psinfo, void *data) in Ppsinfo_core()
204 Pfini_core(struct ps_prochandle *P, void *data) in Pfini_core()
254 Pplatform_core(struct ps_prochandle *P, char *s, size_t n, void *data) in Pplatform_core()
268 Puname_core(struct ps_prochandle *P, struct utsname *u, void *data) in Puname_core()
[all …]
/illumos-gate/usr/src/head/
H A Dproc_service.h63 struct ps_prochandle;
68 extern ps_err_e ps_pdmodel(struct ps_prochandle *, int *data_model);
76 extern ps_err_e ps_pglobal_lookup(struct ps_prochandle *,
84 extern ps_err_e ps_pglobal_sym(struct ps_prochandle *,
90 extern ps_err_e ps_pread(struct ps_prochandle *,
92 extern ps_err_e ps_pwrite(struct ps_prochandle *,
99 extern ps_err_e ps_pdread(struct ps_prochandle *,
101 extern ps_err_e ps_pdwrite(struct ps_prochandle *,
103 extern ps_err_e ps_ptread(struct ps_prochandle *,
105 extern ps_err_e ps_ptwrite(struct ps_prochandle *,
[all …]
/illumos-gate/usr/src/cmd/sgs/demo_rdb/common/
H A Drdb.h150 struct ps_prochandle { struct
193 extern struct ps_prochandle proch;
199 extern map_info_t *addr_to_map(struct ps_prochandle *, ulong_t);
200 extern retc_t addr_to_sym(struct ps_prochandle *, ulong_t,
202 extern void CallStack(struct ps_prochandle *ph);
203 extern unsigned continue_to_break(struct ps_prochandle *);
204 extern retc_t delete_all_breakpoints(struct ps_prochandle *);
205 extern retc_t delete_breakpoint(struct ps_prochandle *, ulong_t,
207 extern void disasm(struct ps_prochandle *, int);
208 extern retc_t disasm_addr(struct ps_prochandle *, ulong_t, int);
[all …]
H A Dps.c68 get_ldbase(struct ps_prochandle *procp) in get_ldbase()
127 ps_init(int pctlfd, int pstatusfd, pid_t pid, struct ps_prochandle *procp) in ps_init()
230 ps_close(struct ps_prochandle *ph) in ps_close()
241 ps_pauxv(struct ps_prochandle *ph, const auxv_t **auxvp) in ps_pauxv()
248 ps_pdmodel(struct ps_prochandle *ph, int *dm) in ps_pdmodel()
260 ps_pread(struct ps_prochandle *ph, psaddr_t addr, void *buf, size_t size) in ps_pread()
269 ps_pwrite(struct ps_prochandle *ph, psaddr_t addr, const void *buf, size_t size) in ps_pwrite()
278 ps_pglobal_sym(struct ps_prochandle *ph, const char *object_name, in ps_pglobal_sym()
300 ps_pglobal_lookup(struct ps_prochandle *ph, const char *object_name, in ps_pglobal_lookup()
318 ps_lgetregs(struct ps_prochandle *ph, lwpid_t lid, prgregset_t gregset) in ps_lgetregs()
[all …]
H A Dbpt.c64 set_breakpoint(struct ps_prochandle *ph, ulong_t addr, unsigned flags) in set_breakpoint()
98 find_bp(struct ps_prochandle *ph, ulong_t addr) in find_bp()
113 delete_bp(struct ps_prochandle *ph, ulong_t addr) in delete_bp()
134 list_breakpoints(struct ps_prochandle *ph) in list_breakpoints()
152 set_breaks(struct ps_prochandle *ph) in set_breaks()
174 clear_breaks(struct ps_prochandle *ph) in clear_breaks()
188 delete_all_breakpoints(struct ps_prochandle *ph) in delete_all_breakpoints()
207 delete_breakpoint(struct ps_prochandle *ph, ulong_t addr, unsigned flags) in delete_breakpoint()
223 handle_sp_break(struct ps_prochandle *ph) in handle_sp_break()
270 continue_to_break(struct ps_prochandle *ph) in continue_to_break()
[all …]
H A Dmaps.c64 str_to_map(struct ps_prochandle *ph, const char *soname) in str_to_map()
81 addr_to_map(struct ps_prochandle *ph, ulong_t addr) in addr_to_map()
109 display_linkmaps(struct ps_prochandle *ph) in display_linkmaps()
150 display_maps(struct ps_prochandle *ph) in display_maps()
203 load_map(struct ps_prochandle *procp, caddr_t baddr, map_info_t *mp) in load_map()
355 struct ps_prochandle *ph = (struct ps_prochandle *)cd; in map_iter()
415 free_linkmaps(struct ps_prochandle *ph) in free_linkmaps()
442 get_linkmaps(struct ps_prochandle *ph) in get_linkmaps()
450 set_objpad(struct ps_prochandle *ph, size_t padsize) in set_objpad()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_pservice.c86 ps_err_e (*ps_pread)(struct ps_prochandle *,
88 ps_err_e (*ps_pwrite)(struct ps_prochandle *,
90 ps_err_e (*ps_pglobal_lookup)(struct ps_prochandle *,
92 ps_err_e (*ps_pglobal_sym)(struct ps_prochandle *P,
94 ps_err_e (*ps_pauxv)(struct ps_prochandle *,
96 ps_err_e (*ps_pbrandname)(struct ps_prochandle *,
98 ps_err_e (*ps_pdmodel)(struct ps_prochandle *,
119 ps_pread(struct ps_prochandle *P, psaddr_t addr, void *buf, size_t size) in ps_pread()
136 ps_pwrite(struct ps_prochandle *P, psaddr_t addr, const void *buf, size_t size) in ps_pwrite()
153 ps_pglobal_lookup(struct ps_prochandle *P, const char *object, in ps_pglobal_lookup()
[all …]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_proc.h47 struct ps_prochandle *dpr_proc; /* proc handle for libproc calls */
101 extern struct ps_prochandle *dt_proc_create(dtrace_hdl_t *,
104 extern struct ps_prochandle *dt_proc_grab(dtrace_hdl_t *, pid_t, int, int);
105 extern void dt_proc_release(dtrace_hdl_t *, struct ps_prochandle *);
106 extern void dt_proc_continue(dtrace_hdl_t *, struct ps_prochandle *);
107 extern void dt_proc_lock(dtrace_hdl_t *, struct ps_prochandle *);
108 extern void dt_proc_unlock(dtrace_hdl_t *, struct ps_prochandle *);
109 extern dt_proc_t *dt_proc_lookup(dtrace_hdl_t *, struct ps_prochandle *, int);
H A Ddt_pid.h49 extern int dt_pid_create_entry_probe(struct ps_prochandle *, dtrace_hdl_t *,
52 extern int dt_pid_create_return_probe(struct ps_prochandle *, dtrace_hdl_t *,
55 extern int dt_pid_create_offset_probe(struct ps_prochandle *, dtrace_hdl_t *,
58 extern int dt_pid_create_glob_offset_probes(struct ps_prochandle *,
/illumos-gate/usr/src/cmd/sgs/demo_rdb/sparc/
H A Drdb_mach.h37 struct ps_prochandle;
51 extern void display_in_regs(struct ps_prochandle *, pstatus_t *);
52 extern void display_local_regs(struct ps_prochandle *, pstatus_t *);
53 extern void display_out_regs(struct ps_prochandle *, pstatus_t *);
54 extern void display_special_regs(struct ps_prochandle *, pstatus_t *);
55 extern void display_global_regs(struct ps_prochandle *, pstatus_t *);
H A Dregs.c34 disp_reg_line(struct ps_prochandle *ph, pstatus_t *prst, char *r1, int ind1, in disp_reg_line()
51 display_local_regs(struct ps_prochandle *ph, pstatus_t *prst) in display_local_regs()
71 display_out_regs(struct ps_prochandle *ph, pstatus_t *prst) in display_out_regs()
91 display_special_regs(struct ps_prochandle *ph, pstatus_t *prst) in display_special_regs()
110 display_global_regs(struct ps_prochandle *ph, pstatus_t *prst) in display_global_regs()
130 display_in_regs(struct ps_prochandle *ph, pstatus_t *prst) in display_in_regs()
151 display_all_regs(struct ps_prochandle *ph) in display_all_regs()
/illumos-gate/usr/src/cmd/sgs/demo_rdb/sparcv9/
H A Drdb_mach.h37 struct ps_prochandle;
51 extern void display_in_regs(struct ps_prochandle *, pstatus_t *);
52 extern void display_local_regs(struct ps_prochandle *, pstatus_t *);
53 extern void display_out_regs(struct ps_prochandle *, pstatus_t *);
54 extern void display_special_regs(struct ps_prochandle *, pstatus_t *);
55 extern void display_global_regs(struct ps_prochandle *, pstatus_t *);
H A Dregs.c34 disp_reg_line(struct ps_prochandle *ph, pstatus_t *prst, char *r1, int ind1, in disp_reg_line()
64 display_local_regs(struct ps_prochandle *ph, pstatus_t *prst) in display_local_regs()
84 display_out_regs(struct ps_prochandle *ph, pstatus_t *prst) in display_out_regs()
104 display_special_regs(struct ps_prochandle *ph, pstatus_t *prst) in display_special_regs()
129 display_global_regs(struct ps_prochandle *ph, pstatus_t *prst) in display_global_regs()
149 display_in_regs(struct ps_prochandle *ph, pstatus_t *prst) in display_in_regs()
170 display_all_regs(struct ps_prochandle *ph) in display_all_regs()
/illumos-gate/usr/src/lib/libproc/i386/
H A DPisadep.c46 Ppltdest(struct ps_prochandle *P, uintptr_t pltaddr) in Ppltdest()
79 Pissyscall(struct ps_prochandle *P, uintptr_t addr) in Pissyscall()
94 Pissyscall_prev(struct ps_prochandle *P, uintptr_t addr, uintptr_t *dst) in Pissyscall_prev()
109 Pissyscall_text(struct ps_prochandle *P, const void *buf, size_t buflen) in Pissyscall_text()
123 argcount_ctf(struct ps_prochandle *P, long pc, uint_t *countp) in argcount_ctf()
161 argcount(struct ps_prochandle *P, long pc, ssize_t sz) in argcount()
197 Pstack_iter(struct ps_prochandle *P, const prgregset_t regs, in Pstack_iter()
308 Psyscall_setup(struct ps_prochandle *P, int nargs, int sysindex, uintptr_t sp) in Psyscall_setup()
320 Psyscall_copyinargs(struct ps_prochandle *P, int nargs, argdes_t *argp, in Psyscall_copyinargs()
339 Psyscall_copyoutargs(struct ps_prochandle *P, int nargs, argdes_t *argp, in Psyscall_copyoutargs()
/illumos-gate/usr/src/cmd/ptools/pfiles/
H A Dpfiles.c62 static void dofcntl(struct ps_prochandle *, const prfdinfo_t *, int, int);
63 static void dosocket(struct ps_prochandle *, const prfdinfo_t *);
64 static void dosocknames(struct ps_prochandle *, const prfdinfo_t *);
65 static void dofifo(struct ps_prochandle *, const prfdinfo_t *);
66 static void show_files(struct ps_prochandle *);
68 static void show_door(struct ps_prochandle *, const prfdinfo_t *);
76 struct ps_prochandle *Pr; in main()
220 struct ps_prochandle *Pr = data; in show_file()
305 show_files(struct ps_prochandle *Pr) in show_files()
344 dofcntl(struct ps_prochandle *Pr, const prfdinfo_t *info, int mandatory, in dofcntl()
[all …]
/illumos-gate/usr/src/lib/libproc/sparc/
H A DPisadep.c49 Ppltdest(struct ps_prochandle *P, uintptr_t pltaddr) in Ppltdest()
83 Pissyscall(struct ps_prochandle *P, uintptr_t addr) in Pissyscall()
98 Pissyscall_prev(struct ps_prochandle *P, uintptr_t addr, uintptr_t *dst) in Pissyscall_prev()
113 Pissyscall_text(struct ps_prochandle *P, const void *buf, size_t buflen) in Pissyscall_text()
131 struct ps_prochandle *gq_proc; /* libproc handle */
185 read_gwin(struct ps_prochandle *P, struct rwindow *rwp, uintptr_t sp) in read_gwin()
255 Pstack_iter(struct ps_prochandle *P, const prgregset_t regs, in Pstack_iter()
325 Psyscall_setup(struct ps_prochandle *P, int nargs, int sysindex, uintptr_t sp) in Psyscall_setup()
341 Psyscall_copyinargs(struct ps_prochandle *P, int nargs, argdes_t *argp, in Psyscall_copyinargs()
365 Psyscall_copyoutargs(struct ps_prochandle *P, int nargs, argdes_t *argp, in Psyscall_copyoutargs()
/illumos-gate/usr/src/cmd/ptools/pstack/
H A Dpstack.c94 typedef jvm_agent_t *(*j_agent_create_f)(struct ps_prochandle *, int);
103 static jvm_agent_t *load_libjvm(struct ps_prochandle *P);
115 typedef pydb_agent_t *(*pydb_agent_create_f)(struct ps_prochandle *P, int vers);
127 static pydb_agent_t *load_libpython(struct ps_prochandle *P);
134 struct ps_prochandle *proc;
148 static void print_zombie(struct ps_prochandle *, struct threadinfo *);
218 struct ps_prochandle *Pr = NULL; in main()
447 struct ps_prochandle *Pr = h->proc; in all_call_stacks()
569 struct ps_prochandle *Pr = h->proc; in print_frame()
656 print_zombie(struct ps_prochandle *Pr, struct threadinfo *tip) in print_zombie()
[all …]

123456