/external/ltp/testcases/kernel/syscalls/rename/ |
rename14.c | 68 int pid; local 92 pid = FORK_OR_VFORK(); 93 if (pid < 0) 94 tst_brkm(TBROK, NULL, "fork() returned %d", pid); 95 if (pid == 0) 98 kidpid[0] = pid; 99 pid = FORK_OR_VFORK(); 100 if (pid < 0) { 103 tst_brkm(TBROK, NULL, "fork() returned %d", pid); 105 if (pid == 0 [all...] |
/frameworks/native/cmds/lshal/libprocpartition/ |
procpartition.cpp | 35 std::string getExe(pid_t pid) { 38 if (!android::base::Readlink("/proc/" + std::to_string(pid) + "/exe", &exe)) { 47 std::string getCmdline(pid_t pid) { 49 if (!android::base::ReadFileToString("/proc/" + std::to_string(pid) + "/cmdline", &content, 81 Partition getPartitionFromCmdline(pid_t pid) { 82 const auto& cmdline = getCmdline(pid); 92 Partition getPartitionFromExe(pid_t pid) { 93 const auto& real = getExe(pid); 101 Partition getPartition(pid_t pid) { 102 Partition partition = getPartitionFromExe(pid); [all...] |
/system/extras/ioshark/ |
collect-straces-ftraces.sh | 23 # about, breaks up the ftrace file into one file per pid. 25 # Output : Multiple fstrace.pid files. 41 awk -v pid=$i '{ if (pid == $7) print $0}' foo > fstrace.$i 52 # The output of this function is a set of parsed_input_trace.<pid> 62 # Get the pid from the strace filename (pid is the extension) 63 pid=${stracefile##*.} 64 process_strace $stracefile foo.$pid 65 if ! [ -s foo.$pid ]; the [all...] |
/tools/loganalysis/src/com/android/loganalysis/item/ |
CompactMemInfoItem.java | 32 public static final String PID_JSON_KEY = "pid"; 73 for(int pid : getPids()) { 76 proc.put(PID_JSON_KEY, pid); 77 proc.put(NAME_JSON_KEY, getName(pid)); 78 proc.put(PSS_JSON_KEY, getPss(pid)); 79 proc.put(SWAP_JSON_KEY, getSwap(pid)); 80 proc.put(TYPE_JSON_KEY, getType(pid)); 81 proc.put(ACTIVITIES_JSON_KEY, hasActivities(pid)); 110 private Map<String, Object> get(int pid) { 111 return mPids.get(pid); [all...] |
/bionic/libc/bionic/ |
clock_getcpuclockid.cpp | 34 int clock_getcpuclockid(pid_t pid, clockid_t* clockid) { 38 clockid_t result = ~static_cast<clockid_t>(pid) << 3;
|
raise.cpp | 35 // Protect ourselves against stale cached PID/TID values by fetching them via syscall. 37 pid_t pid = syscall(__NR_getpid); local 39 return tgkill(pid, tid, sig);
|
sched_getaffinity.cpp | 35 int sched_getaffinity(pid_t pid, size_t set_size, cpu_set_t* set) { 36 int rc = __sched_getaffinity(pid, set_size, set);
|
/cts/hostsidetests/jdwpsecurity/app/src/com/android/cts/jdwpsecurity/ |
JdwpTest.java | 23 // Print pid so the test knows who we are. 24 int pid = android.os.Process.myPid(); local 25 System.out.println(pid);
|
/external/chromium-trace/catapult/systrace/atrace_helper/jni/ |
process_info.h | 18 int pid; member in struct:ProcessInfo 27 int pid; member in struct:ProcessSnapshot
|
procfs_utils.h | 16 // ProcFS doesn't necessarly distinguish PID vs. TID, but all threads of a 18 int ReadTgid(int pid); 20 std::unique_ptr<ProcessInfo> ReadProcessInfo(int pid);
|
/external/google-breakpad/src/client/linux/minidump_writer/ |
linux_ptrace_dumper.h | 45 // with a process ID of |pid|. 46 explicit LinuxPtraceDumper(pid_t pid); 49 // Builds a proc path for a certain pid for a node (/proc/<pid>/<node>). 53 virtual bool BuildProcPath(char* path, pid_t pid, const char* node) const;
|
/external/honggfuzz/linux/ |
bfd.h | 38 extern void arch_bfdResolveSyms(pid_t pid, funcs_t* funcs, size_t num); 39 extern void arch_bfdDisasm(pid_t pid, uint8_t* mem, size_t size, char* instr);
|
/external/libunwind/src/ptrace/ |
_UPT_resume.c | 36 return ptrace (PTRACE_CONT, ui->pid, 0, 0); 38 return ptrace(PT_CONTINUE, ui->pid, (caddr_t)1, 0);
|
/external/ltp/lib/newlib_tests/ |
test05.c | 27 tst_res(TINFO, "setup() executed by pid %i", getpid()); 32 tst_res(TINFO, "cleanup() executed by pid %i", getpid()); 37 pid_t pid = SAFE_FORK(); local 39 switch (pid) {
|
test06.c | 27 tst_res(TINFO, "setup() executed by pid %i", getpid()); 32 tst_res(TINFO, "cleanup() executed by pid %i", getpid()); 37 pid_t pid = SAFE_FORK(); local 39 switch (pid) { 41 tst_brk(TBROK, "Child pid %i", getpid()); 44 tst_res(TPASS, "Parent pid %i", getpid());
|
/external/ltp/testcases/kernel/controllers/cgroup_fj/ |
cgroup_fj_stress.sh | 109 pid=$! 111 pid="$ppid" 114 if ! attach_and_check "$pid" "$cur_path"; then 124 if ! attach_and_check "$pid" "$cur_path"; then 141 pid=$! 144 attach_task "$start_path" 0 "$pid" 145 ROD kill -9 "$pid" 146 wait "$pid"
|
/external/ltp/testcases/realtime/func/pi-tests/ |
test-skeleton.c | 70 static pid_t pid; variable 78 kill(pid, SIGKILL); 80 killed = waitpid(pid, &status, WNOHANG | WUNTRACED); 86 if (0 != killed && pid != killed) { 102 pid = fork(); 103 if (0 == pid) { 105 } else if (pid < 0) { 112 termpid = TEMP_FAILURE_RETRY(waitpid(pid, &status, 0));
|
/external/strace/linux/aarch64/ |
set_scno.c | 17 int rc = ptrace(PTRACE_SETREGSET, tcp->pid, NT_ARM_SYSTEM_CALL, &io); 19 perror_msg("arch_set_scno: NT_ARM_SYSTEM_CALL pid:%d scno:%#x", 20 tcp->pid, n);
|
/external/strace/linux/arc/ |
set_error.c | 5 return set_regs(tcp->pid); 12 return set_regs(tcp->pid);
|
/external/strace/linux/arm/ |
set_scno.c | 13 int rc = ptrace(PTRACE_SET_SYSCALL, tcp->pid, NULL, (unsigned long) n); 15 perror_msg("arch_set_scno: PTRACE_SET_SYSCALL pid:%d scno:%#x", 16 tcp->pid, n);
|
/external/strace/linux/i386/ |
set_error.c | 8 return set_regs(tcp->pid); 19 return set_regs(tcp->pid);
|
/external/strace/linux/ia64/ |
set_error.c | 7 return set_regs(tcp->pid); 16 return set_regs(tcp->pid);
|
/external/strace/linux/nios2/ |
set_error.c | 6 return set_regs(tcp->pid); 14 return set_regs(tcp->pid);
|
/external/strace/linux/s390/ |
set_error.c | 9 return set_regs(tcp->pid); 16 return set_regs(tcp->pid);
|
/external/strace/linux/sparc/ |
set_error.c | 6 return set_regs(tcp->pid); 14 return set_regs(tcp->pid);
|