Searched refs:ph (Results 1 - 25 of 34) sorted by relevance

12

/openjdk7/hotspot/agent/src/os/bsd/
H A Dtest.c30 struct ps_prochandle* ph; local
36 ph = Pgrab(atoi(argv[1]));
42 ph = Pgrab_core(argv[1], argv[2]);
52 if (ph) {
53 Prelease(ph);
H A Dlibproc.h91 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* ph, int index);
118 bool find_lib(struct ps_prochandle* ph, const char *lib_name);
121 uintptr_t lookup_symbol(struct ps_prochandle* ph, const char* object_name,
125 const char* symbol_for_pc(struct ps_prochandle* ph, uintptr_
[all...]
H A Dlibproc_impl.c120 static void destroy_lib_info(struct ps_prochandle* ph) { argument
121 lib_info* lib = ph->libs;
132 static void destroy_thread_info(struct ps_prochandle* ph) { argument
133 thread_info* thr = ph->threads;
144 void Prelease(struct ps_prochandle* ph) { argument
146 ph->ops->release(ph);
147 destroy_lib_info(ph);
148 destroy_thread_info(ph);
149 free(ph);
152 add_lib_info(struct ps_prochandle* ph, const char* libname, uintptr_t base) argument
156 add_lib_info_fd(struct ps_prochandle* ph, const char* libname, int fd, uintptr_t base) argument
208 lookup_symbol(struct ps_prochandle* ph, const char* object_name, const char* sym_name) argument
232 symbol_for_pc(struct ps_prochandle* ph, uintptr_t addr, uintptr_t* poffset) argument
246 add_thread_info(struct ps_prochandle* ph, pthread_t pthread_id, lwpid_t lwp_id) argument
267 struct ps_prochandle* ph; member in struct:thread_db_client_data
293 read_thread_info(struct ps_prochandle* ph, thread_info_callback cb) argument
319 get_num_threads(struct ps_prochandle* ph) argument
324 get_lwp_id(struct ps_prochandle* ph, int index) argument
338 get_lwp_regs(struct ps_prochandle* ph, lwpid_t lwp_id, struct reg* regs) argument
343 get_num_libs(struct ps_prochandle* ph) argument
348 get_lib_name(struct ps_prochandle* ph, int index) argument
362 get_lib_base(struct ps_prochandle* ph, int index) argument
375 find_lib(struct ps_prochandle* ph, const char *lib_name) argument
394 ps_pglobal_lookup(struct ps_prochandle *ph, const char *object_name, const char *sym_name, psaddr_t *sym_addr) argument
401 ps_pread(struct ps_prochandle *ph, psaddr_t addr, void *buf, size_t size) argument
407 ps_pwrite(struct ps_prochandle *ph, psaddr_t addr, const void *buf, size_t size) argument
413 ps_linfo(struct ps_prochandle *ph, lwpid_t lwp_id, void *linfo) argument
432 ps_lsetfpregs(struct ps_prochandle *ph, lwpid_t lid, const prfpregset_t *fpregs) argument
437 ps_lsetregs(struct ps_prochandle *ph, lwpid_t lid, const prgregset_t gregset) argument
442 ps_lgetfpregs(struct ps_prochandle *ph, lwpid_t lid, prfpregset_t *fpregs) argument
447 ps_lgetregs(struct ps_prochandle *ph, lwpid_t lid, prgregset_t gregset) argument
452 ps_lstop(struct ps_prochandle *ph, lwpid_t lid) argument
457 ps_pcontinue(struct ps_prochandle *ph) argument
[all...]
H A Dps_core.c44 static void close_elf_files(struct ps_prochandle* ph) { argument
48 if (ph->core->core_fd >= 0)
49 close(ph->core->core_fd);
52 if (ph->core->exec_fd >= 0)
53 close(ph->core->exec_fd);
56 if (ph->core->interp_fd >= 0)
57 close(ph->core->interp_fd);
60 if (ph->core->classes_jsa_fd >= 0)
61 close(ph->core->classes_jsa_fd);
64 lib = ph
73 destroy_map_info(struct ps_prochandle* ph) argument
95 core_release(struct ps_prochandle* ph) argument
119 add_map_info(struct ps_prochandle* ph, int fd, off_t offset, uintptr_t vaddr, size_t memsz) argument
135 add_class_share_map_info(struct ps_prochandle* ph, off_t offset, uintptr_t vaddr, size_t memsz) argument
150 core_lookup(struct ps_prochandle *ph, uintptr_t addr) argument
242 read_jboolean(struct ps_prochandle* ph, uintptr_t addr, jboolean* pvalue) argument
252 read_pointer(struct ps_prochandle* ph, uintptr_t addr, uintptr_t* pvalue) argument
263 read_string(struct ps_prochandle* ph, uintptr_t addr, char* buf, size_t size) argument
285 init_classsharing_workaround(struct ps_prochandle* ph) argument
412 sort_map_array(struct ps_prochandle* ph) argument
455 core_read_data(struct ps_prochandle* ph, uintptr_t addr, char *buf, size_t size) argument
504 core_write_data(struct ps_prochandle* ph, uintptr_t addr, const char *buf , size_t size) argument
509 core_get_lwp_regs(struct ps_prochandle* ph, lwpid_t lwp_id, struct reg* regs) argument
523 core_get_lwp_info(struct ps_prochandle *ph, lwpid_t lwp_id, void *linfo) argument
537 core_handle_prstatus(struct ps_prochandle* ph, const char* buf, size_t nbytes) argument
603 core_handle_note(struct ps_prochandle* ph, ELF_PHDR* note_phdr) argument
651 read_core_segments(struct ps_prochandle* ph, ELF_EHDR* core_ehdr) argument
708 read_lib_segments(struct ps_prochandle* ph, int lib_fd, ELF_EHDR* lib_ehdr, uintptr_t lib_base) argument
735 read_interp_segments(struct ps_prochandle* ph) argument
752 read_exec_segments(struct ps_prochandle* ph, ELF_EHDR* exec_ehdr) argument
813 read_shared_lib_info(struct ps_prochandle* ph) argument
949 struct ps_prochandle* ph = (struct ps_prochandle*) calloc(1, sizeof(struct ps_prochandle)); local
[all...]
H A Dlibproc_impl.h66 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);
113 typedef bool (*thread_info_callback)(struct ps_prochandle* ph, pthread_t pid, lwpid_t lwpid);
116 bool read_thread_info(struct ps_prochandle* ph, thread_info_callback cb);
119 lib_info* add_lib_info(struct ps_prochandle* ph, const char* libname, uintptr_t base);
122 lib_info* add_lib_info_fd(struct ps_prochandle* ph, const char* libname, int fd,
126 thread_info* add_thread_info(struct ps_prochandle* ph, pthread_
[all...]
H A Dps_proc.c58 static bool process_read_data(struct ps_prochandle* ph, uintptr_t addr, char *buf, size_t size) { argument
67 rslt = ptrace(PT_READ_D, ph->pid, (caddr_t) aligned_addr, 0);
83 rslt = ptrace(PT_READ_D, ph->pid, (caddr_t) aligned_addr, 0);
96 rslt = ptrace(PT_READ_D, ph->pid, (caddr_t) aligned_addr, 0);
108 static bool process_write_data(struct ps_prochandle* ph, argument
114 static bool process_get_lwp_regs(struct ps_prochandle* ph, pid_t pid, struct reg *user) { argument
125 static bool process_get_lwp_info(struct ps_prochandle *ph, lwpid_t lwp_id, void *linfo) { argument
200 static bool add_new_thread(struct ps_prochandle* ph, pthread_t pthread_id, lwpid_t lwp_id) { argument
201 return add_thread_info(ph, pthread_id, lwp_id) != NULL;
220 uintptr_t linkmap_addr(struct ps_prochandle *ph) { argument
319 read_lib_info(struct ps_prochandle* ph) argument
422 process_cleanup(struct ps_prochandle* ph) argument
436 struct ps_prochandle* ph = NULL; local
[all...]
H A DBsdDebuggerLocal.c118 static void fillThreadsAndLoadObjects(JNIEnv* env, jobject this_obj, struct ps_prochandle* ph) { argument
122 n = get_num_threads(ph);
128 lwpid = get_lwp_id(ph, i);
139 n = get_num_libs(ph);
146 base = get_lib_base(ph, i);
147 name = get_lib_name(ph, i);
166 struct ps_prochandle* ph; local
167 if ( (ph = Pgrab(jpid)) == NULL) {
170 (*env)->SetLongField(env, this_obj, p_ps_prochandle_ID, (jlong)(intptr_t)ph);
171 fillThreadsAndLoadObjects(env, this_obj, ph);
184 struct ps_prochandle* ph; local
209 struct ps_prochandle* ph = get_proc_handle(env, this_obj); local
225 struct ps_prochandle* ph = get_proc_handle(env, this_obj); local
254 struct ps_prochandle* ph = get_proc_handle(env, this_obj); local
292 struct ps_prochandle* ph = get_proc_handle(env, this_obj); local
[all...]
/openjdk7/hotspot/agent/src/os/linux/
H A Dtest.c30 struct ps_prochandle* ph; local
36 ph = Pgrab(atoi(argv[1]));
42 ph = Pgrab_core(argv[1], argv[2]);
52 if (ph) {
53 Prelease(ph);
H A Dproc_service.h47 pid_t ps_getpid(struct ps_prochandle *ph);
50 // of the load object object_name in the target process identified by 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 Dlibproc_impl.c121 static void destroy_lib_info(struct ps_prochandle* ph) { argument
122 lib_info* lib = ph->libs;
133 static void destroy_thread_info(struct ps_prochandle* ph) { argument
134 thread_info* thr = ph->threads;
145 void Prelease(struct ps_prochandle* ph) { argument
147 ph->ops->release(ph);
148 destroy_lib_info(ph);
149 destroy_thread_info(ph);
150 free(ph);
153 add_lib_info(struct ps_prochandle* ph, const char* libname, uintptr_t base) argument
157 add_lib_info_fd(struct ps_prochandle* ph, const char* libname, int fd, uintptr_t base) argument
206 lookup_symbol(struct ps_prochandle* ph, const char* object_name, const char* sym_name) argument
230 symbol_for_pc(struct ps_prochandle* ph, uintptr_t addr, uintptr_t* poffset) argument
244 add_thread_info(struct ps_prochandle* ph, pthread_t pthread_id, lwpid_t lwp_id) argument
265 struct ps_prochandle* ph; member in struct:thread_db_client_data
291 read_thread_info(struct ps_prochandle* ph, thread_info_callback cb) argument
317 get_num_threads(struct ps_prochandle* ph) argument
322 get_lwp_id(struct ps_prochandle* ph, int index) argument
336 get_lwp_regs(struct ps_prochandle* ph, lwpid_t lwp_id, struct user_regs_struct* regs) argument
341 get_num_libs(struct ps_prochandle* ph) argument
346 get_lib_name(struct ps_prochandle* ph, int index) argument
360 get_lib_base(struct ps_prochandle* ph, int index) argument
373 find_lib(struct ps_prochandle* ph, const char *lib_name) argument
388 ps_getpid(struct ps_prochandle *ph) argument
397 ps_pglobal_lookup(struct ps_prochandle *ph, const char *object_name, const char *sym_name, psaddr_t *sym_addr) argument
404 ps_pdread(struct ps_prochandle *ph, psaddr_t addr, void *buf, size_t size) argument
410 ps_pdwrite(struct ps_prochandle *ph, psaddr_t addr, const void *buf, size_t size) argument
419 ps_lsetfpregs(struct ps_prochandle *ph, lwpid_t lid, const prfpregset_t *fpregs) argument
424 ps_lsetregs(struct ps_prochandle *ph, lwpid_t lid, const prgregset_t gregset) argument
429 ps_lgetfpregs(struct ps_prochandle *ph, lwpid_t lid, prfpregset_t *fpregs) argument
434 ps_lgetregs(struct ps_prochandle *ph, lwpid_t lid, prgregset_t gregset) argument
[all...]
H A Dlibproc.h111 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* ph, int index);
138 bool find_lib(struct ps_prochandle* ph, const char *lib_name);
141 uintptr_t lookup_symbol(struct ps_prochandle* ph, const char* object_name,
145 const char* symbol_for_pc(struct ps_prochandle* ph, uintptr_
[all...]
H A Dps_core.c44 static void close_elf_files(struct ps_prochandle* ph) { argument
48 if (ph->core->core_fd >= 0)
49 close(ph->core->core_fd);
52 if (ph->core->exec_fd >= 0)
53 close(ph->core->exec_fd);
56 if (ph->core->interp_fd >= 0)
57 close(ph->core->interp_fd);
60 if (ph->core->classes_jsa_fd >= 0)
61 close(ph->core->classes_jsa_fd);
64 lib = ph
73 destroy_map_info(struct ps_prochandle* ph) argument
95 core_release(struct ps_prochandle* ph) argument
119 add_map_info(struct ps_prochandle* ph, int fd, off_t offset, uintptr_t vaddr, size_t memsz) argument
135 add_class_share_map_info(struct ps_prochandle* ph, off_t offset, uintptr_t vaddr, size_t memsz) argument
149 core_lookup(struct ps_prochandle *ph, uintptr_t addr) argument
241 read_jboolean(struct ps_prochandle* ph, uintptr_t addr, jboolean* pvalue) argument
251 read_pointer(struct ps_prochandle* ph, uintptr_t addr, uintptr_t* pvalue) argument
262 read_string(struct ps_prochandle* ph, uintptr_t addr, char* buf, size_t size) argument
284 init_classsharing_workaround(struct ps_prochandle* ph) argument
412 sort_map_array(struct ps_prochandle* ph) argument
455 core_read_data(struct ps_prochandle* ph, uintptr_t addr, char *buf, size_t size) argument
504 core_write_data(struct ps_prochandle* ph, uintptr_t addr, const char *buf , size_t size) argument
509 core_get_lwp_regs(struct ps_prochandle* ph, lwpid_t lwp_id, struct user_regs_struct* regs) argument
531 core_handle_prstatus(struct ps_prochandle* ph, const char* buf, size_t nbytes) argument
597 core_handle_note(struct ps_prochandle* ph, ELF_PHDR* note_phdr) argument
645 read_core_segments(struct ps_prochandle* ph, ELF_EHDR* core_ehdr) argument
702 read_lib_segments(struct ps_prochandle* ph, int lib_fd, ELF_EHDR* lib_ehdr, uintptr_t lib_base) argument
729 read_interp_segments(struct ps_prochandle* ph) argument
746 read_exec_segments(struct ps_prochandle* ph, ELF_EHDR* exec_ehdr) argument
807 read_shared_lib_info(struct ps_prochandle* ph) argument
943 struct ps_prochandle* ph = (struct ps_prochandle*) calloc(1, sizeof(struct ps_prochandle)); local
[all...]
H A Dps_proc.c57 static bool process_read_data(struct ps_prochandle* ph, uintptr_t addr, char *buf, size_t size) { argument
66 rslt = ptrace(PTRACE_PEEKDATA, ph->pid, aligned_addr, 0);
82 rslt = ptrace(PTRACE_PEEKDATA, ph->pid, aligned_addr, 0);
95 rslt = ptrace(PTRACE_PEEKDATA, ph->pid, aligned_addr, 0);
107 static bool process_write_data(struct ps_prochandle* ph, argument
113 static bool process_get_lwp_regs(struct ps_prochandle* ph, pid_t pid, struct user_regs_struct *user) { argument
258 static bool add_new_thread(struct ps_prochandle* ph, pthread_t pthread_id, lwpid_t lwp_id) { argument
259 return add_thread_info(ph, pthread_id, lwp_id) != NULL;
262 static bool read_lib_info(struct ps_prochandle* ph) { argument
267 sprintf(fname, "/proc/%d/maps", ph
309 detach_all_pids(struct ps_prochandle* ph) argument
317 process_cleanup(struct ps_prochandle* ph) argument
330 struct ps_prochandle* ph = NULL; local
[all...]
H A Dlibproc_impl.h66 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);
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* ph, const char* libname, uintptr_t base);
120 lib_info* add_lib_info_fd(struct ps_prochandle* ph, const char* libname, int fd,
124 thread_info* add_thread_info(struct ps_prochandle* ph, pthread_t pthread_id, lwpid_t lwp_id);
H A DLinuxDebuggerLocal.c117 static void fillThreadsAndLoadObjects(JNIEnv* env, jobject this_obj, struct ps_prochandle* ph) { argument
121 n = get_num_threads(ph);
127 lwpid = get_lwp_id(ph, i);
138 n = get_num_libs(ph);
145 base = get_lib_base(ph, i);
146 name = get_lib_name(ph, i);
165 struct ps_prochandle* ph; local
166 if ( (ph = Pgrab(jpid)) == NULL) {
169 (*env)->SetLongField(env, this_obj, p_ps_prochandle_ID, (jlong)(intptr_t)ph);
170 fillThreadsAndLoadObjects(env, this_obj, ph);
183 struct ps_prochandle* ph; local
208 struct ps_prochandle* ph = get_proc_handle(env, this_obj); local
224 struct ps_prochandle* ph = get_proc_handle(env, this_obj); local
253 struct ps_prochandle* ph = get_proc_handle(env, this_obj); local
293 struct ps_prochandle* ph = get_proc_handle(env, this_obj); local
[all...]
/openjdk7/jdk/test/java/util/concurrent/Phaser/
H A DPhaseOverflow.java88 int ph = Integer.MAX_VALUE - 1;
90 checkState(root, ph, 2, 2);
91 checkState(p1, ph, 1, 1);
92 checkState(p2, ph, 2, 2);
94 checkState(root, ph, 2, 1);
95 checkState(p1, ph, 1, 0);
96 checkState(p2, ph, 2, 2);
98 checkState(root, ph, 2, 1);
99 checkState(p1, ph, 1, 0);
100 checkState(p2, ph,
[all...]
H A DTieredArriveLoops.java62 int ph = p.getPhase();
63 check(ph < 0 || ph == phase);
/openjdk7/jdk/src/share/classes/javax/swing/border/
H A DCompoundBorder.java108 int px, py, pw, ph;
113 ph = height;
116 outsideBorder.paintBorder(c, g, px, py, pw, ph);
122 ph = ph - nextInsets.bottom - nextInsets.top;
125 insideBorder.paintBorder(c, g, px, py, pw, ph);
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/
H A DSynthComboPopup.java75 protected Rectangle computePopupBounds(int px, int py, int pw, int ph) { argument
85 ph - i.top - i.bottom);
88 return super.computePopupBounds(px, py, pw, ph);
/openjdk7/jdk/test/java/awt/print/PrinterJob/
H A DPageFormatChange.java68 int ph = (int)(pf2.getHeight()+0.5);
75 if (expectedWidth != pw || expectedHeight != ph) {
/openjdk7/jdk/test/java/awt/print/PageFormat/
H A DPageFormatFromAttributes.java91 int ph = (int)paper.getHeight();
92 if (pw != w || ph != h) {
/openjdk7/hotspot/agent/src/os/solaris/proc/
H A Dsaproc.cpp331 struct ps_prochandle* ph = (struct ps_prochandle*) env->GetLongField(this_obj, p_ps_prochandle_ID); local
343 if (Pstatus(ph)->pr_dmodel == PR_MODEL_NATIVE) {
540 read_jboolean(struct ps_prochandle* ph, psaddr_t addr, jboolean* pvalue) { argument
542 if (ps_pread(ph, addr, &i, sizeof(i)) == PS_OK) {
551 read_pointer(struct ps_prochandle* ph, psaddr_t addr, uintptr_t* pvalue) { argument
553 if (ps_pread(ph, addr, &uip, sizeof(uip)) == PS_OK) {
562 read_string(struct ps_prochandle* ph, psaddr_t addr, char* buf, size_t size) { argument
567 if (ps_pread(ph, addr, &ch, sizeof(ch)) != PS_OK)
600 struct ps_prochandle* ph = (struct ps_prochandle*) env->GetLongField(this_obj, p_ps_prochandle_ID); local
607 ps_pglobal_lookup(ph, jvm_nam
760 struct ps_prochandle* ph = proc_arg_grab(cmdLine_cstr, (isProcess? PR_ARG_PIDS : PR_ARG_CORES), PGRAB_FORCE, &gcode); local
[all...]
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaComboBoxPopup.java230 protected Rectangle computePopupBounds(int px, int py, int pw, int ph) { argument
250 if (scrBounds == null) return super.computePopupBounds(px, py, pw, ph);
303 return computePopupBoundsForMenu(px, py, pw, ph, itemCount, scrBounds);
314 final Rectangle r = new Rectangle(px, py, pw, ph);
323 protected Rectangle computePopupBoundsForMenu(final int px, final int py, final int pw, final int ph, final int itemCount, final Rectangle scrBounds) { argument
324 //System.err.println("computePopupBoundsForMenu: " + px + "," + py + " " + pw + "," + ph);
343 final Rectangle popupBounds = new Rectangle(px, py, pw, ph);// Relative to comboBox
345 final int theRest = ph - selectedLocation;
/openjdk7/jdk/src/share/classes/javax/swing/
H A DTablePrintable.java448 * @param ph the height of the area to print in
450 private void findNextClip(int pw, int ph) { argument
481 } while (clip.height + rowHeight <= ph);
/openjdk7/jdk/test/java/awt/print/PrinterJob/ValidatePage/
H A DValidatePage.java40 Label pw, ph, pglm, pgrm, pgiw, pgih, pgtm, pgbm; field in class:ValidatePage
78 ph.setText("Paper Height = " + drnd(p.getHeight()));
130 pp.add (ph = new Label());

Completed in 87 milliseconds

12