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

123456789

/openjdk10/hotspot/test/serviceability/tmtools/jstat/utils/
H A DJstatGcCauseTool.java28 * This tool executes "jstat -gc <pid>" and returns the results as
33 public JstatGcCauseTool(long pid) { argument
34 super(JstatGcCauseResults.class, "jstat", "-gc " + pid);
H A DJstatGcNewTool.java28 * This tool executes "jstat -gcnew <pid>" and returns the results as
33 public JstatGcNewTool(long pid) { argument
34 super(JstatGcNewResults.class, "jstat", "-gcnew " + pid);
H A DJstatGcTool.java28 * This tool executes "jstat -gc <pid>" and returns the results as
33 public JstatGcTool(long pid) { argument
34 super(JstatGcResults.class, "jstat", "-gc " + pid);
H A DJstatGcCapacityTool.java28 * This tool executes "jstat -gccapacity <pid>" and returns the results as
33 public JstatGcCapacityTool(long pid) { argument
34 super(JstatGcCapacityResults.class, "jstat", "-gccapacity " + pid);
/openjdk10/hotspot/src/jdk.hotspot.agent/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
/openjdk10/hotspot/test/serviceability/tmtools/jstack/
H A DJstackTool.java28 * This tool executes "jstack <pid>" and returns the results
32 public JstackTool(long pid) { argument
33 super(ToolResults.class, "jstack", String.valueOf(pid));
/openjdk10/test/failure_handler/src/share/classes/jdk/test/failurehandler/
H A DProcessInfoGatherer.java27 void gatherProcessInfo(HtmlSection section, long pid); argument
/openjdk10/hotspot/src/jdk.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
/openjdk10/hotspot/test/serviceability/tmtools/jstat/
H A DGcTest02.java41 new GarbageProducerTest(new JstatGcTool(ProcessHandle.current().pid())).run();
H A DGcCauseTest02.java41 new GarbageProducerTest(new JstatGcCauseTool(ProcessHandle.current().pid())).run();
/openjdk10/jdk/src/java.base/solaris/native/libjava/
H A DProcessHandleImpl_solaris.c44 pid_t os_getParentPidAndTimings(JNIEnv *env, pid_t pid, jlong *total, jlong *start) { argument
45 return unix_getParentPidAndTimings(env, pid, total, start);
48 void os_getCmdlineAndUserInfo(JNIEnv *env, jobject jinfo, pid_t pid) { argument
49 unix_getCmdlineAndUserInfo(env, jinfo, pid);
/openjdk10/jdk/src/java.base/aix/native/libjava/
H A DProcessHandleImpl_aix.c44 pid_t os_getParentPidAndTimings(JNIEnv *env, pid_t pid, jlong *total, jlong *start) { argument
45 return unix_getParentPidAndTimings(env, pid, total, start);
48 void os_getCmdlineAndUserInfo(JNIEnv *env, jobject jinfo, pid_t pid) { argument
49 unix_getCmdlineAndUserInfo(env, jinfo, pid);
/openjdk10/test/lib/jdk/test/lib/dcmd/
H A DPidJcmdExecutor.java32 * Executes Diagnostic Commands on the target VM (specified by pid) using the jcmd tool
35 protected final long pid; field in class:PidJcmdExecutor
43 pid = ProcessTools.getProcessId();
45 throw new CommandExecutorException("Could not determine own pid", e);
50 * Instantiates a new PidJcmdExecutor targeting the VM indicated by the given pid
56 pid = Long.valueOf(target);
60 return Arrays.asList(jcmdBinary, Long.toString(pid), cmd);
/openjdk10/hotspot/test/runtime/NMT/
H A DJcmdScale.java44 String pid = Long.toString(ProcessTools.getProcessId());
46 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "scale=KB"});
50 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "scale=MB"});
54 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "scale=GB"});
58 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "scale=apa"});
62 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "summary", "scale=GB"});
66 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "summary", "scale=apa"});
H A DJcmdScaleDetail.java44 String pid = Long.toString(ProcessTools.getProcessId());
46 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "scale=KB"});
50 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "scale=MB"});
54 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "scale=GB"});
58 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "scale=apa"});
62 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "summary", "scale=GB"});
66 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "summary", "scale=apa"});
H A DBaselineWithParameter.java43 String pid = Long.toString(ProcessTools.getProcessId());
48 // Run 'jcmd <pid> VM.native_memory baseline=false'
49 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "baseline=false"});
52 // Run 'jcmd <pid> VM.native_memory summary=false'
53 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "summary=false"});
H A DSummaryAfterShutdown.java43 String pid = Long.toString(ProcessTools.getProcessId());
46 // Run 'jcmd <pid> VM.native_memory shutdown'
47 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "shutdown"});
53 // Run 'jcmd <pid> VM.native_memory summary'
54 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "summary"});
H A DJcmdDetailDiff.java50 String pid = Long.toString(ProcessTools.getProcessId());
56 // Run 'jcmd <pid> VM.native_memory baseline=true'
57 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "baseline=true"});
64 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "detail.diff", "scale=KB"});
70 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "detail.diff", "scale=KB"});
76 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "detail.diff", "scale=KB"});
82 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "detail.diff", "scale=KB"});
H A DJcmdSummaryDiff.java50 String pid = Long.toString(ProcessTools.getProcessId());
56 // Run 'jcmd <pid> VM.native_memory baseline=true'
57 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "baseline=true"});
64 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "summary.diff", "scale=KB"});
70 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "summary.diff", "scale=KB"});
76 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "summary.diff", "scale=KB"});
82 pb.command(new String[] { JDKToolFinder.getJDKTool("jcmd"), pid, "VM.native_memory", "summary.diff", "scale=KB"});
/openjdk10/jdk/test/sun/management/jmxremote/bootstrap/
H A DTestManager.java30 * Usage: java TestManager <pid> <port>
32 * where <pid> is the process-id of the test application, and <port> is
56 private static void startManagementAgent(String pid) throws IOException { argument
58 VirtualMachine.attach(pid).startLocalManagementAgent();
64 private static void connect(String pid, String address) throws Exception { argument
67 pid + " is null");
70 System.out.println("Connect to process " + pid + " via: " + address);
90 String pid = args[0]; // pid as a string
91 System.out.println("Starting TestManager for PID = " + pid);
[all...]
/openjdk10/hotspot/src/jdk.hotspot.agent/linux/native/libsaproc/
H A Dps_proc.c70 rslt = ptrace(PTRACE_PEEKDATA, ph->pid, aligned_addr, 0);
86 rslt = ptrace(PTRACE_PEEKDATA, ph->pid, aligned_addr, 0);
99 rslt = ptrace(PTRACE_PEEKDATA, ph->pid, aligned_addr, 0);
117 static bool process_get_lwp_regs(struct ps_prochandle* ph, pid_t pid, struct user_regs_struct *user) { argument
118 // we have already attached to all thread 'pid's, just use ptrace call
124 #define ptrace_getregs(request, pid, addr, data) ptrace(request, pid, addr, data)
126 #define ptrace_getregs(request, pid, addr, data) ptrace(request, pid, data, addr)
138 if (ptrace_getregs(PTRACE_GETREGS_REQ, pid, use
159 ptrace_continue(pid_t pid, int signal) argument
170 ptrace_waitpid(pid_t pid) argument
218 ptrace_attach(pid_t pid, char* err_buf, size_t err_buf_len) argument
346 ptrace_detach(pid_t pid) argument
376 Pgrab(pid_t pid, char* err_buf, size_t err_buf_len) argument
[all...]
/openjdk10/jdk/src/java.base/share/classes/java/lang/
H A DProcessHandleImpl.java75 long pid = getCurrentPid0();
76 current = new ProcessHandleImpl(pid, isAlive0(pid));
119 static CompletableFuture<Integer> completion(long pid, boolean shouldReap) { argument
121 ExitCompletion completion = completions.get(pid);
126 completion = completions.putIfAbsent(pid, newCompletion);
128 completion = completions.replace(pid, completion, newCompletion)
129 ? null : completions.get(pid);
138 int exitValue = waitForProcessExit0(pid, shouldReap);
140 // pid no
191 waitForProcessExit0(long pid, boolean reapvalue) argument
196 private final long pid; field in class:ProcessHandleImpl
218 ProcessHandleImpl(long pid, long startTime) argument
231 get(long pid) argument
249 getInternal(long pid) argument
261 public long pid() { method in class:ProcessHandleImpl
313 parent0(long pid, long startTime) argument
325 getProcessPids0(long pid, long[] pids, long[] ppids, long[] starttimes) argument
351 destroy0(long pid, long startTime, boolean forcibly) argument
391 isAlive0(long pid) argument
412 children(long pid) argument
547 info0(long pid) argument
576 info(long pid, long startTime) argument
[all...]
/openjdk10/hotspot/src/jdk.hotspot.agent/macosx/native/libsaproc/
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(PT_CONTINUE, 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...]
/openjdk10/jdk/src/jdk.attach/solaris/classes/sun/tools/attach/
H A DVirtualMachineImpl.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);
74 sigquit(pid);
88 fd = openDoor(pid);
96 sigquit(pid);
103 "or HotSpot VM not loaded", f.getPath(), pid, time_spen
212 openDoor(int pid) argument
231 createAttachFile(int pid) argument
254 sigquit(int pid) argument
[all...]

Completed in 273 milliseconds

123456789