/external/ltp/testcases/kernel/containers/pidns/ |
pidns_helper.h | 26 int pid, status; local 31 pid = do_clone_unshare_test(T_CLONE, CLONE_NEWPID, dummy_child, NULL); 32 if (pid == -1)
|
/external/ltp/testcases/kernel/containers/sysvipc/ |
ipcns_helper.h | 31 int pid, status; local 36 pid = do_clone_unshare_test(T_CLONE, CLONE_NEWIPC, dummy_child, NULL); 37 if (pid == -1)
|
/external/strace/linux/alpha/ |
set_error.c | 5 return upoke(tcp->pid, REG_R0, alpha_r0); 11 return upoke(tcp->pid, REG_A3, (alpha_a3 = 0)) 12 || upoke(tcp->pid, REG_R0, (alpha_r0 = tcp->u_rval));
|
/external/strace/tests/ |
attach-p-cmd-cmd.c | 47 pid_t pid = getpid(); local 52 pid, dir, sprintrc(rc), pid);
|
waitpid.c | 42 unsigned long pid = local 44 long rc = syscall(__NR_waitpid, pid, 0L, (unsigned long) WNOHANG); 46 (int) pid, rc, errno2name());
|
pc.test | 42 pid="$(sed -r -n 's/^\[[[:xdigit:]]{'"$len"'}\] --- SIGCHLD \{si_signo=SIGCHLD, si_code=CLD_(KILLED|DUMPED), si_pid=([[:digit:]]+), .*/\2/p' "$LOG")" && 43 [ -n "$pid" ] && 44 ip="$(sed -r -n 's/^\[pid +'"$pid"'\] \[([[:xdigit:]]{'"$len"'})] --- SIGSEGV \{.*\} ---$/\1/p' "$LOG")" && 53 \\[pid +$pid\\] \\[$ip\\] --- SIGSEGV \\{si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x$addr\\} --- 54 \\[pid +$pid\\] \\[\\?{$len}\\] \\+\\+\\+ killed by SIGSEGV( \\(core dumped\\))? \\+\\+\\+
|
sched_xetaffinity.c | 45 getaffinity(unsigned long pid, unsigned long size, void *set) 47 int rc = syscall(__NR_sched_getaffinity, pid, size, set); 53 setaffinity(unsigned long pid, unsigned long size, void *set) 55 int rc = syscall(__NR_sched_setaffinity, pid, size, set); 64 const pid_t pid = getpid(); local 67 assert(getaffinity(pid, cpuset_size, NULL) == -1); 73 pid, cpuset_size, errstr); 78 pid, cpuset_size, errstr); 81 getaffinity(pid, cpuset_size, cpuset + 1); 83 pid, cpuset_size, cpuset + 1, errstr) [all...] |
/external/strace/tests-m32/ |
attach-p-cmd-cmd.c | 47 pid_t pid = getpid(); local 52 pid, dir, sprintrc(rc), pid);
|
waitpid.c | 42 unsigned long pid = local 44 long rc = syscall(__NR_waitpid, pid, 0L, (unsigned long) WNOHANG); 46 (int) pid, rc, errno2name());
|
pc.test | 42 pid="$(sed -r -n 's/^\[[[:xdigit:]]{'"$len"'}\] --- SIGCHLD \{si_signo=SIGCHLD, si_code=CLD_(KILLED|DUMPED), si_pid=([[:digit:]]+), .*/\2/p' "$LOG")" && 43 [ -n "$pid" ] && 44 ip="$(sed -r -n 's/^\[pid +'"$pid"'\] \[([[:xdigit:]]{'"$len"'})] --- SIGSEGV \{.*\} ---$/\1/p' "$LOG")" && 53 \\[pid +$pid\\] \\[$ip\\] --- SIGSEGV \\{si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x$addr\\} --- 54 \\[pid +$pid\\] \\[\\?{$len}\\] \\+\\+\\+ killed by SIGSEGV( \\(core dumped\\))? \\+\\+\\+
|
/external/strace/tests-mx32/ |
attach-p-cmd-cmd.c | 47 pid_t pid = getpid(); local 52 pid, dir, sprintrc(rc), pid);
|
waitpid.c | 42 unsigned long pid = local 44 long rc = syscall(__NR_waitpid, pid, 0L, (unsigned long) WNOHANG); 46 (int) pid, rc, errno2name());
|
pc.test | 42 pid="$(sed -r -n 's/^\[[[:xdigit:]]{'"$len"'}\] --- SIGCHLD \{si_signo=SIGCHLD, si_code=CLD_(KILLED|DUMPED), si_pid=([[:digit:]]+), .*/\2/p' "$LOG")" && 43 [ -n "$pid" ] && 44 ip="$(sed -r -n 's/^\[pid +'"$pid"'\] \[([[:xdigit:]]{'"$len"'})] --- SIGSEGV \{.*\} ---$/\1/p' "$LOG")" && 53 \\[pid +$pid\\] \\[$ip\\] --- SIGSEGV \\{si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x$addr\\} --- 54 \\[pid +$pid\\] \\[\\?{$len}\\] \\+\\+\\+ killed by SIGSEGV( \\(core dumped\\))? \\+\\+\\+
|
/external/strace/ |
upeek.c | 38 upeek(int pid, unsigned long off, kernel_ulong_t *res) 43 val = ptrace(PTRACE_PEEKUSER, (pid_t) pid, (void *) off, 0); 46 perror_msg("upeek: PTRACE_PEEKUSER pid:%d @0x%lx)", pid, off);
|
/external/ltp/testcases/kernel/controllers/cpuctl_fj/ |
run_cpuctl_test_fj.sh | 132 ps -eo pid,rtprio > /tmp/pids_file1 & 138 while read pid 140 task=`cat $CPUCTL/tasks | grep "\b$pid\b"` 285 pid=$! 287 echo $pid > $CPUCTL/tmp/tasks 289 /bin/kill -s SIGUSR1 $pid 291 /bin/kill -s SIGUSR1 $pid 292 wait $pid 313 pid=$! 315 echo $pid > $CPUCTL/tmp/task [all...] |
/external/ltp/testcases/kernel/syscalls/waitpid/ |
waitpid09.c | 32 * further until child returns. The pid of the forked child 83 int fail, pid, status, ret; local 93 pid = FORK_OR_VFORK(); 94 if (pid < 0) { 96 } else if (pid == 0) { 112 pid = FORK_OR_VFORK(); 113 if (pid < 0) { 115 } else if (pid == 0) { /* child */ 129 while (((ret = waitpid(pid, &status, WNOHANG)) 147 if (kill(pid, SIGINT) < 0) [all...] |
/system/extras/ioshark/ |
compile-only.sh | 23 # about, breaks up the ftrace file into one file per pid. 25 # Output : Multiple fstrace.pid files. 39 awk -v pid=$i '{ if (pid == $7) print $0}' foo > fstrace.$i 50 # The output of this function is a set of parsed_input_trace.<pid> 60 # Get the pid from the strace filename (pid is the extension) 61 pid=${stracefile##*.} 62 process_strace $stracefile foo.$pid 63 if ! [ -s foo.$pid ]; the [all...] |
/external/jemalloc/test/unit/ |
fork.c | 11 pid_t pid; local 16 pid = fork(); 24 if (pid == -1) { 27 } else if (pid == 0) { 35 if (waitpid(pid, &status, 0) == -1)
|
/external/ltp/lib/tests/ |
tst_process_state.c | 40 int pid; local 43 pid = fork(); 45 switch (pid) { 67 TST_PROCESS_STATE_WAIT(NULL, pid, 'S'); 69 kill(pid, SIGALRM);
|
/external/ltp/testcases/kernel/syscalls/pause/ |
pause01.c | 45 int pid, status; local 47 pid = SAFE_FORK(); 48 if (pid == 0) 52 TST_PROCESS_STATE_WAIT(pid, 'S'); 53 kill(pid, SIGINT);
|
/external/strace/linux/powerpc/ |
set_error.c | 6 return upoke(tcp->pid, sizeof(long) * (PT_R0 + 3), ppc_regs.gpr[3]); 8 return set_regs(tcp->pid); 18 return upoke(tcp->pid, sizeof(long) * PT_CCR, ppc_regs.ccr) || 19 upoke(tcp->pid, sizeof(long) * (PT_R0 + 3), ppc_regs.gpr[3]); 21 return set_regs(tcp->pid);
|
/system/netd/server/ |
ClatdController.cpp | 47 // Returns the PID of the clatd running on interface |interface|, or 0 if clatd is not running on 55 pid_t pid = getClatdPid(interface); local 57 if (pid != 0) { 58 ALOGE("clatd pid=%d already started on %s", pid, interface); 88 if ((pid = fork()) < 0) { 93 if (!pid) { 112 mClatdPids[interface] = pid; 120 pid_t pid = getClatdPid(interface); local 122 if (pid == 0) 140 pid_t pid = getClatdPid(interface); local [all...] |
/system/core/libunwindstack/tests/ |
MemoryRemoteTest.cpp | 44 static bool Attach(pid_t pid) { 45 if (ptrace(PTRACE_ATTACH, pid, 0, 0) == -1) { 51 while (TEMP_FAILURE_RETRY(ptrace(PTRACE_GETSIGINFO, pid, 0, &si)) < 0 && errno == ESRCH) { 53 printf("%d: Failed to stop after 10 seconds.\n", pid); 61 static bool Detach(pid_t pid) { 62 return ptrace(PTRACE_DETACH, pid, 0, 0) == 0; 72 pid_t pid; local 73 if ((pid = fork()) == 0) { 77 ASSERT_LT(0, pid); 79 ASSERT_TRUE(Attach(pid)); 103 pid_t pid; local 132 pid_t pid; local [all...] |
/external/ltp/testcases/kernel/sched/hyperthreading/ht_affinity/ |
ht_affinity.c | 29 int set_affinity(pid_t pid, unsigned int len, unsigned long *mask_ptr) 30 pid - pid of the process whose affinity is desired to be set. 34 int get_affinity(pid_t pid, unsigned int len, unsigned long *mask_ptr) 35 pid - pid of the process whose affinity is being read. 43 #define sched_setaffinity(pid, cpusetsize, mask) syscall(__NR_sched_setaffinity, pid, cpusetsize, mask) 44 #define sched_getaffinity(pid, cpusetsize, mask) syscall(__NR_sched_getaffinity, pid, cpusetsize, mask 52 pid_t pid; local 151 pid_t pid; local 183 pid_t pid; local [all...] |
/external/dhcpcd-6.8.2/dhcpcd-hooks/ |
50-yp.conf | 6 [ -s /var/run/ypbind.pid ] && cat /var/run/ypbind.pid 12 local cf=/etc/yp.conf."$ifname" prefix= x= pid= 36 pid="$(ypbind_pid)" 37 if [ -n "$pid" ]; then 38 kill -HUP "$pid" 46 local pid="$(ypbind_pid)" 47 if [ -n "$pid" ]; then 48 kill -HUP "$pid"
|