/openjdk7/hotspot/agent/src/os/bsd/ |
H A D | libproc.h | 82 struct ps_prochandle; 85 struct ps_prochandle* Pgrab(pid_t pid); 88 struct ps_prochandle* Pgrab_core(const char* execfile, const char* corefile); 91 void Prelease(struct ps_prochandle* ph); 100 int get_num_threads(struct ps_prochandle* ph); 103 lwpid_t get_lwp_id(struct ps_prochandle* ph, int index); 106 bool get_lwp_regs(struct ps_prochandle* ph, lwpid_t lid, struct reg* regs); 109 int get_num_libs(struct ps_prochandle* ph); 112 const char* get_lib_name(struct ps_prochandle* ph, int index); 115 uintptr_t get_lib_base(struct ps_prochandle* p [all...] |
H A D | libproc_impl.h | 63 // vtable for ps_prochandle 66 void (*release)(struct ps_prochandle* ph); 68 bool (*p_pread)(struct ps_prochandle *ph, 71 bool (*p_pwrite)(struct ps_prochandle *ph, 74 bool (*get_lwp_regs)(struct ps_prochandle* ph, lwpid_t lwp_id, struct reg* regs); 76 bool (*get_lwp_info)(struct ps_prochandle *ph, lwpid_t lwp_id, void *linfo); 79 // the ps_prochandle 96 struct ps_prochandle { struct 113 typedef bool (*thread_info_callback)(struct ps_prochandle* ph, pthread_t pid, lwpid_t lwpid); 116 bool read_thread_info(struct ps_prochandle* p [all...] |
H A D | libproc_impl.c | 120 static void destroy_lib_info(struct ps_prochandle* ph) { 132 static void destroy_thread_info(struct ps_prochandle* ph) { 141 // ps_prochandle cleanup 143 // ps_prochandle cleanup 144 void Prelease(struct ps_prochandle* ph) { 152 lib_info* add_lib_info(struct ps_prochandle* ph, const char* libname, uintptr_t base) { 156 lib_info* add_lib_info_fd(struct ps_prochandle* ph, const char* libname, int fd, uintptr_t base) { 208 uintptr_t lookup_symbol(struct ps_prochandle* ph, const char* object_name, 232 const char* symbol_for_pc(struct ps_prochandle* ph, uintptr_t addr, uintptr_t* poffset) { 245 // add a thread to ps_prochandle [all...] |
H A D | test.c | 30 struct ps_prochandle* ph;
|
H A D | ps_proc.c | 58 static bool process_read_data(struct ps_prochandle* ph, uintptr_t addr, char *buf, size_t size) { 108 static bool process_write_data(struct ps_prochandle* ph, 114 static bool process_get_lwp_regs(struct ps_prochandle* ph, pid_t pid, struct reg *user) { 125 static bool process_get_lwp_info(struct ps_prochandle *ph, lwpid_t lwp_id, void *linfo) { 200 static bool add_new_thread(struct ps_prochandle* ph, pthread_t pthread_id, lwpid_t lwp_id) { 220 uintptr_t linkmap_addr(struct ps_prochandle *ph) { 319 static bool read_lib_info(struct ps_prochandle* ph) { 422 static void process_cleanup(struct ps_prochandle* ph) { 435 struct ps_prochandle* Pgrab(pid_t pid) { 436 struct ps_prochandle* p [all...] |
H A D | ps_core.c | 41 // ps_prochandle cleanup helper functions 44 static void close_elf_files(struct ps_prochandle* ph) { 73 static void destroy_map_info(struct ps_prochandle* ph) { 94 // ps_prochandle operations 95 static void core_release(struct ps_prochandle* ph) { 119 static map_info* add_map_info(struct ps_prochandle* ph, int fd, off_t offset, 135 static map_info* add_class_share_map_info(struct ps_prochandle* ph, off_t offset, 150 static map_info* core_lookup(struct ps_prochandle *ph, uintptr_t addr) 242 static bool read_jboolean(struct ps_prochandle* ph, uintptr_t addr, jboolean* pvalue) { 252 static bool read_pointer(struct ps_prochandle* p [all...] |
H A D | BsdDebuggerLocal.c | 63 static struct ps_prochandle* get_proc_handle(JNIEnv* env, jobject this_obj) { 65 return (struct ps_prochandle*)(intptr_t)ptr; 118 static void fillThreadsAndLoadObjects(JNIEnv* env, jobject this_obj, struct ps_prochandle* ph) { 166 struct ps_prochandle* ph; 184 struct ps_prochandle* ph; 209 struct ps_prochandle* ph = get_proc_handle(env, this_obj); 225 struct ps_prochandle* ph = get_proc_handle(env, this_obj); 254 struct ps_prochandle* ph = get_proc_handle(env, this_obj); 292 struct ps_prochandle* ph = get_proc_handle(env, this_obj);
|
/openjdk7/hotspot/agent/src/os/solaris/proc/ |
H A D | libproc.h | 66 * The implementation of struct ps_prochandle can change w/o affecting clients. 68 struct ps_prochandle; 182 extern struct ps_prochandle *Pcreate(const char *, char *const *, 187 extern struct ps_prochandle *Pgrab(pid_t, int, int *); 188 extern struct ps_prochandle *Pgrab_core(const char *, const char *, int, int *); 189 extern struct ps_prochandle *Pfgrab_core(int, const char *, int *); 193 extern int Preopen(struct ps_prochandle *); 194 extern void Prelease(struct ps_prochandle *, int); 195 extern void Pfree(struct ps_prochandle *); 197 extern int Pasfd(struct ps_prochandle *); [all...] |
H A D | salibproc.h | 56 extern int Plookup_by_addr(struct ps_prochandle *, 60 extern int Pobject_iter(struct ps_prochandle *, proc_map_f *, void *); 91 extern struct ps_prochandle *proc_arg_grab(const char *, int, int, int *); 92 extern const pstatus_t *Pstatus(struct ps_prochandle *); 97 extern void Prelease(struct ps_prochandle *, int); 98 extern int Psetrun(struct ps_prochandle *, int, int); 99 extern int Pstop(struct ps_prochandle *, uint_t); 121 extern int Pstack_iter(struct ps_prochandle *,
|
H A D | saproc.cpp | 180 // release ptr to ps_prochandle 184 Prelease((struct ps_prochandle*) p_ps_prochandle, PRELEASE_CLEAR); 331 struct ps_prochandle* ph = (struct ps_prochandle*) env->GetLongField(this_obj, p_ps_prochandle_ID); 540 read_jboolean(struct ps_prochandle* ph, psaddr_t addr, jboolean* pvalue) { 551 read_pointer(struct ps_prochandle* ph, psaddr_t addr, uintptr_t* pvalue) { 562 read_string(struct ps_prochandle* ph, psaddr_t addr, char* buf, size_t size) { 600 struct ps_prochandle* ph = (struct ps_prochandle*) env->GetLongField(this_obj, p_ps_prochandle_ID); 760 struct ps_prochandle* p [all...] |
/openjdk7/hotspot/agent/src/os/linux/ |
H A D | libproc.h | 102 struct ps_prochandle; 105 struct ps_prochandle* Pgrab(pid_t pid); 108 struct ps_prochandle* Pgrab_core(const char* execfile, const char* corefile); 111 void Prelease(struct ps_prochandle* ph); 120 int get_num_threads(struct ps_prochandle* ph); 123 lwpid_t get_lwp_id(struct ps_prochandle* ph, int index); 126 bool get_lwp_regs(struct ps_prochandle* ph, lwpid_t lid, struct user_regs_struct* regs); 129 int get_num_libs(struct ps_prochandle* ph); 132 const char* get_lib_name(struct ps_prochandle* ph, int index); 135 uintptr_t get_lib_base(struct ps_prochandle* p [all...] |
H A D | proc_service.h | 47 pid_t ps_getpid(struct ps_prochandle *ph); 54 ps_err_e ps_pglobal_lookup(struct ps_prochandle *ph, const char *object_name, 58 ps_err_e ps_pdread(struct ps_prochandle *ph, psaddr_t addr, 62 ps_err_e ps_pdwrite(struct ps_prochandle *ph, psaddr_t addr, 65 ps_err_e ps_lsetfpregs(struct ps_prochandle *ph, lwpid_t lid, const prfpregset_t *fpregs); 67 ps_err_e ps_lsetregs(struct ps_prochandle *ph, lwpid_t lid, const prgregset_t gregset); 69 ps_err_e ps_lgetfpregs(struct ps_prochandle *ph, lwpid_t lid, prfpregset_t *fpregs); 71 ps_err_e ps_lgetregs(struct ps_prochandle *ph, lwpid_t lid, prgregset_t gregset);
|
H A D | libproc_impl.h | 63 // vtable for ps_prochandle 66 void (*release)(struct ps_prochandle* ph); 68 bool (*p_pread)(struct ps_prochandle *ph, 71 bool (*p_pwrite)(struct ps_prochandle *ph, 74 bool (*get_lwp_regs)(struct ps_prochandle* ph, lwpid_t lwp_id, struct user_regs_struct* regs); 77 // the ps_prochandle 94 struct ps_prochandle { struct 111 typedef bool (*thread_info_callback)(struct ps_prochandle* ph, pthread_t pid, lwpid_t lwpid); 114 bool read_thread_info(struct ps_prochandle* ph, thread_info_callback cb); 117 lib_info* add_lib_info(struct ps_prochandle* p [all...] |
H A D | libproc_impl.c | 121 static void destroy_lib_info(struct ps_prochandle* ph) { 133 static void destroy_thread_info(struct ps_prochandle* ph) { 142 // ps_prochandle cleanup 144 // ps_prochandle cleanup 145 void Prelease(struct ps_prochandle* ph) { 153 lib_info* add_lib_info(struct ps_prochandle* ph, const char* libname, uintptr_t base) { 157 lib_info* add_lib_info_fd(struct ps_prochandle* ph, const char* libname, int fd, uintptr_t base) { 206 uintptr_t lookup_symbol(struct ps_prochandle* ph, const char* object_name, 230 const char* symbol_for_pc(struct ps_prochandle* ph, uintptr_t addr, uintptr_t* poffset) { 243 // add a thread to ps_prochandle [all...] |
H A D | test.c | 30 struct ps_prochandle* ph;
|
H A D | ps_proc.c | 57 static bool process_read_data(struct ps_prochandle* ph, uintptr_t addr, char *buf, size_t size) { 107 static bool process_write_data(struct ps_prochandle* ph, 113 static bool process_get_lwp_regs(struct ps_prochandle* ph, pid_t pid, struct user_regs_struct *user) { 258 static bool add_new_thread(struct ps_prochandle* ph, pthread_t pthread_id, lwpid_t lwp_id) { 262 static bool read_lib_info(struct ps_prochandle* ph) { 308 // detach all pids of a ps_prochandle 309 static void detach_all_pids(struct ps_prochandle* ph) { 317 static void process_cleanup(struct ps_prochandle* ph) { 329 struct ps_prochandle* Pgrab(pid_t pid) { 330 struct ps_prochandle* p [all...] |
H A D | ps_core.c | 41 // ps_prochandle cleanup helper functions 44 static void close_elf_files(struct ps_prochandle* ph) { 73 static void destroy_map_info(struct ps_prochandle* ph) { 94 // ps_prochandle operations 95 static void core_release(struct ps_prochandle* ph) { 119 static map_info* add_map_info(struct ps_prochandle* ph, int fd, off_t offset, 135 static map_info* add_class_share_map_info(struct ps_prochandle* ph, off_t offset, 149 static map_info* core_lookup(struct ps_prochandle *ph, uintptr_t addr) 241 static bool read_jboolean(struct ps_prochandle* ph, uintptr_t addr, jboolean* pvalue) { 251 static bool read_pointer(struct ps_prochandle* p [all...] |
H A D | LinuxDebuggerLocal.c | 62 struct ps_prochandle* get_proc_handle(JNIEnv* env, jobject this_obj) { 64 return (struct ps_prochandle*)(intptr_t)ptr; 117 static void fillThreadsAndLoadObjects(JNIEnv* env, jobject this_obj, struct ps_prochandle* ph) { 165 struct ps_prochandle* ph; 183 struct ps_prochandle* ph; 208 struct ps_prochandle* ph = get_proc_handle(env, this_obj); 224 struct ps_prochandle* ph = get_proc_handle(env, this_obj); 253 struct ps_prochandle* ph = get_proc_handle(env, this_obj); 293 struct ps_prochandle* ph = get_proc_handle(env, this_obj);
|
/openjdk7/hotspot/src/os/bsd/dtrace/ |
H A D | libjvm_db.h | 38 jvm_agent_t *Jagent_create(struct ps_prochandle *P, int vers);
|
H A D | libjvm_db.c | 142 struct ps_prochandle* P; 176 read_string(struct ps_prochandle *P, 420 jvm_agent_t *Jagent_create(struct ps_prochandle *P, int vers) {
|
/openjdk7/hotspot/src/os/solaris/dtrace/ |
H A D | libjvm_db.h | 38 jvm_agent_t *Jagent_create(struct ps_prochandle *P, int vers);
|
H A D | libjvm_db.c | 142 struct ps_prochandle* P; 176 read_string(struct ps_prochandle *P, 420 jvm_agent_t *Jagent_create(struct ps_prochandle *P, int vers) {
|