Searched refs:pid (Results 1 - 25 of 143) sorted by relevance

123456

/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/
H A DProcessInfo.java31 public ProcessInfo(String name, int pid) { argument
33 this.pid = pid;
41 return pid;
45 private int pid; field in class:ProcessInfo
/openjdk7/hotspot/agent/test/libproc/
H A Dlibproctest.sh51 pid=$!
58 gcore $pid
59 kill -9 $pid
65 $SA_JAVA -showversion ${OPTIONS} -cp $STARTDIR/../../build/classes::$STARTDIR/../sa.jar:$STARTDIR LibprocClient x core.$pid
68 rm -f core.$pid
H A Dlibproctest64.sh51 pid=$!
58 gcore $pid
59 kill -9 $pid
64 $SA_JAVA -d64 -showversion ${OPTIONS} -cp $STARTDIR/../../build/classes::$STARTDIR/../sa.jar:$STARTDIR LibprocClient x core.$pid
67 rm -f core.$pid
/openjdk7/hotspot/test/runtime/NMT/
H A DBaselineWithParameter.java39 String pid = Integer.toString(ProcessTools.getProcessId());
44 // Run 'jcmd <pid> VM.native_memory baseline=false'
45 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "baseline=false"});
48 // Run 'jcmd <pid> VM.native_memory summary=false'
49 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "summary=false"});
H A DJcmdScale.java40 String pid = Integer.toString(ProcessTools.getProcessId());
42 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "scale=KB"});
46 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "scale=MB"});
50 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "scale=GB"});
54 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "scale=apa"});
58 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "summary", "scale=GB"});
62 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "summary", "scale=apa"});
H A DJcmdWithNMTDisabled.java39 static String pid; field in class:JcmdWithNMTDisabled
43 pid = Integer.toString(ProcessTools.getProcessId());
57 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", command});
H A DSummaryAfterShutdown.java39 String pid = Integer.toString(ProcessTools.getProcessId());
42 // Run 'jcmd <pid> VM.native_memory shutdown'
43 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "shutdown"});
49 // Run 'jcmd <pid> VM.native_memory summary'
50 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "summary"});
H A DShutdownTwice.java38 String pid = Integer.toString(ProcessTools.getProcessId());
43 // Run 'jcmd <pid> VM.native_memory shutdown'
44 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "shutdown"});
H A DJcmdDiffCallsite.java45 String pid = Integer.toString(ProcessTools.getProcessId());
56 // Run 'jcmd <pid> VM.native_memory baseline'
57 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "baseline"});
66 // Run 'jcmd <pid> VM.native_memory detail.diff'
67 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "detail.diff"});
/openjdk7/hotspot/agent/src/os/linux/
H A Dps_proc.c66 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);
113 static bool process_get_lwp_regs(struct ps_prochandle* ph, pid_t pid, struct user_regs_struct *user) { argument
114 // we have already attached to all thread 'pid's, just use ptrace call
120 #define ptrace_getregs(request, pid, addr, data) ptrace(request, pid, addr, data)
122 #define ptrace_getregs(request, pid, addr, data) ptrace(request, pid, data, addr)
134 if (ptrace_getregs(PTRACE_GETREGS_REQ, pid, use
146 ptrace_continue(pid_t pid, int signal) argument
157 ptrace_waitpid(pid_t pid) argument
205 ptrace_attach(pid_t pid) argument
299 ptrace_detach(pid_t pid) argument
329 Pgrab(pid_t pid) argument
[all...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/jdi/
H A DSAPIDAttachingConnector.java38 static final String ARG_PID = "pid";
50 "PID", //getString("sa.pid.label"),
51 "PID of a Java process", //getString("sa.pid.description");
62 private void checkProcessAttach(int pid) { argument
70 // Whether the caller can read /proc/<pid> file?
71 sm.checkRead("/proc/" + pid);
74 throw new SecurityException("permission denied to attach to " + pid);
79 private VirtualMachine createVirtualMachine(Class virtualMachineImplClass, int pid) argument
90 new Integer(pid),
97 int pid
[all...]
/openjdk7/jdk/test/sun/management/jmxremote/bootstrap/
H A DTestManager.java29 * Usage: java TestManager <pid> <port>
31 * where <pid> is the process-id of the test application, and <port> is
59 private static void startManagementAgent(String pid) throws IOException { argument
81 VirtualMachine.attach(pid).loadAgent(agent);
87 private static void connect(String pid, String address) throws Exception { argument
90 pid + " is null");
93 System.out.println("Connect to process " + pid + " via: " + address);
113 String pid = args[0]; // pid as a string
114 VirtualMachine vm = VirtualMachine.attach(pid);
[all...]
/openjdk7/jdk/test/com/sun/tools/attach/
H A DApplicationSetup.sh45 pid="$!"
48 # ${pid} is not the actual pid. We have put in a small sleep
54 realpid=`ps -p ${pid} | tail -1 | awk '{print $4;}'`
56 realpid=`ps -o pid,ppid,comm|grep ${pid}|grep "java"|cut -c1-6`
58 pid=${realpid}
75 echo "Application is process $pid, shutdown port is $port"
H A DPermissionTest.java41 String pid = args[0];
45 VirtualMachine.attach(pid).detach();
H A DPermissionTests.sh47 # pid = process-id, port = shutdown port
54 PermissionTest $pid true 2>&1
62 PermissionTest $pid false 2>&1
/openjdk7/hotspot/agent/src/os/bsd/
H A Dps_proc.c67 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);
114 static bool process_get_lwp_regs(struct ps_prochandle* ph, pid_t pid, struct reg *user) { argument
115 // we have already attached to all thread 'pid's, just use ptrace call
117 if (ptrace(PT_GETREGS, pid, (caddr_t) user, 0) < 0) {
118 print_debug("ptrace(PTRACE_GETREGS, ...) failed for lwp %d\n", pid);
132 static bool ptrace_continue(pid_t pid, int signal) { argument
134 if (ptrace(PTRACE_CONT, pid, NULL, signal) < 0) {
135 print_debug("ptrace(PTRACE_CONT, ..) failed for %d\n", pid);
143 ptrace_waitpid(pid_t pid) argument
186 ptrace_attach(pid_t pid) argument
413 ptrace_detach(pid_t pid) argument
435 Pgrab(pid_t pid) argument
[all...]
/openjdk7/jdk/test/com/sun/jdi/
H A DProcessAttachTest.sh75 pid="${startpid}"
81 pid=`ps -l -p ${startpid} | tail -1 | awk '{print $4;}'`
85 # ${startpid} is not the actual pid. We have put in a small sleep
90 pid=`ps -o pid,ppid,comm|grep ${startpid}|grep "java"|cut -c1-6`
105 echo "Debuggee is process $pid (startpid=${startpid})"
138 ProcessAttachDebugger $pid 2>&1
156 ProcessAttachDebugger $pid 2>&1
/openjdk7/hotspot/agent/test/jdi/
H A Dsasanity.sh73 pid=$!
79 $jdk/bin/java -showversion ${OPTIONS} -classpath $javacp $* SASanityChecker $pid
80 kill -9 $pid
H A Drunjpda.sh68 # it is a pid
108 pid=$!
122 gdb -batch -p $pid -x gdbscript
125 gcore $* $pid
127 mv core.$pid sagcore
130 kill -9 $pid
/openjdk7/jdk/src/solaris/classes/sun/tools/attach/
H A DSolarisVirtualMachine.java42 // .java_pid<pid>. and .attach_pid<pid>. It is important that this
59 int pid;
61 pid = Integer.parseInt(vmid);
70 fd = openDoor(pid);
72 File f = createAttachFile(pid);
76 sigquit(pid);
87 fd = openDoor(pid);
195 // The door is attached to .java_pid<pid> in the temporary directory.
196 private int openDoor(int pid) throw argument
215 createAttachFile(int pid) argument
238 sigquit(int pid) argument
[all...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/
H A DDebugServer.java33 System.out.println("usage: java " + getClass().getName() + " <pid> [server id]");
35 System.out.println("\"pid\" must be the process ID of a HotSpot process.");
58 int pid = 0;
70 pid = Integer.parseInt(args[0]);
78 // either we have pid and server id or exec file and core file
80 pid = Integer.parseInt(args[0]);
84 pid = -1;
105 System.err.println("Attaching to process ID " + pid + " and starting RMI services, please wait...");
106 agent.startServer(pid, serverID);
/openjdk7/jdk/src/solaris/sample/dtrace/helpers/
H A Ddtrace_helper.d69 pid$target::dlopen:entry
75 pid$target::dlopen:return
82 printf(" stopped java process with pid=%d \n", $target);
/openjdk7/hotspot/src/os/bsd/dtrace/
H A Djvm_dtrace.c75 pid_t pid; member in struct:_jvm_t
137 static int send_sigquit(pid_t pid) { argument
139 RESTARTABLE(kill(pid, SIGQUIT), ret);
173 static void fill_attach_file_name(char* path, int len, pid_t pid) { argument
175 sprintf(path, ATTACH_FILE_PATTERN, pid);
181 static int open_door(pid_t pid) { argument
185 sprintf(path, DOOR_FILE_PATTERN, pid);
203 static int create_attach_file(pid_t pid) { argument
206 fill_attach_file_name(path, sizeof(path), pid);
218 static void delete_attach_file(pid_t pid) { argument
230 jvm_attach(pid_t pid) argument
[all...]
/openjdk7/hotspot/src/os/solaris/dtrace/
H A Djvm_dtrace.c75 pid_t pid; member in struct:_jvm_t
137 static int send_sigquit(pid_t pid) { argument
139 RESTARTABLE(kill(pid, SIGQUIT), ret);
173 static void fill_attach_file_name(char* path, int len, pid_t pid) { argument
175 sprintf(path, ATTACH_FILE_PATTERN, pid);
181 static int open_door(pid_t pid) { argument
185 sprintf(path, DOOR_FILE_PATTERN, pid);
203 static int create_attach_file(pid_t pid) { argument
206 fill_attach_file_name(path, sizeof(path), pid);
218 static void delete_attach_file(pid_t pid) { argument
230 jvm_attach(pid_t pid) argument
[all...]
/openjdk7/jdk/src/solaris/native/sun/tools/attach/
H A DLinuxVirtualMachine.c54 typedef void (*ProcessCallback)(const pid_t pid, void* user_data);
71 pid_t pid; local
79 pid = (pid_t)atoi(ptr->d_name);
80 if ((int)pid <= 0) {
85 (*f)(pid, user_data);
92 * Returns the parent pid of a given pid, or -1 if not found
94 static pid_t getParent(pid_t pid) { argument
106 sprintf(fn, "/proc/%d/stat", pid);
113 * The format is: pid (comman
236 ChildCountCallback(const pid_t pid, void* user_data) argument
255 Java_sun_tools_attach_LinuxVirtualMachine_getLinuxThreadsManager(JNIEnv *env, jclass cls, jint pid) argument
304 SendQuitCallback(const pid_t pid, void* user_data) argument
317 Java_sun_tools_attach_LinuxVirtualMachine_sendQuitToChildrenOf(JNIEnv *env, jclass cls, jint pid) argument
334 Java_sun_tools_attach_LinuxVirtualMachine_sendQuitTo(JNIEnv *env, jclass cls, jint pid) argument
[all...]

Completed in 127 milliseconds

123456