/external/curl/tests/ |
D | ftp.pm | 40 my $pid = 0; 43 $pid = 0 + <PIDFH>; 45 $pid = 0 unless($pid > 0); 47 return $pid; 57 my $pid = $_[0]; 59 if($pid > 0) { 61 if(kill(0, $pid)) { 62 return $pid; 67 my $filter = "PID eq $pid"; 69 if(index($result, "$pid") != -1) { [all …]
|
/external/strace/tests-mx32/ |
D | ptrace.c | 48 do_ptrace(unsigned long request, unsigned long pid, in do_ptrace() argument 51 long rc = syscall(__NR_ptrace, request, pid, addr, data); in do_ptrace() 57 test_peeksiginfo(unsigned long pid, const unsigned long bad_request) in test_peeksiginfo() argument 59 do_ptrace(PTRACE_PEEKSIGINFO, pid, 0, bad_request); in test_peeksiginfo() 61 (unsigned) pid, bad_request, errstr); in test_peeksiginfo() 73 do_ptrace(PTRACE_PEEKSIGINFO, pid, (unsigned long) psi, bad_request); in test_peeksiginfo() 76 (unsigned) pid, psi->off, psi->nr, bad_request, errstr); in test_peeksiginfo() 78 pid = fork(); in test_peeksiginfo() 79 if ((pid_t) pid < 0) in test_peeksiginfo() 82 if (!pid) { in test_peeksiginfo() [all …]
|
D | wait4.c | 89 do_wait4(pid_t pid, int *wstatus, int options, struct rusage *ru) in do_wait4() argument 95 pid_t rc = wait4(pid, wstatus, options, ru); in do_wait4() 109 pid_t pid; in main() local 110 pid = fork(); in main() 111 if (pid < 0) in main() 114 if (!pid) { in main() 124 if (wait4(pid, s, WNOHANG|__WALL, NULL)) in main() 126 tprintf("wait4(%d, %p, WNOHANG|__WALL, NULL) = 0\n", pid, s); in main() 129 if (wait4(pid, s, WNOHANG|__WALL, rusage)) in main() 131 tprintf("wait4(%d, %p, WNOHANG|__WALL, %p) = 0\n", pid, s, rusage); in main() [all …]
|
D | waitid.c | 172 pid_t pid; in main() local 173 pid = fork(); in main() 174 if (pid < 0) in main() 177 if (!pid) { in main() 186 if (do_waitid(P_PID, pid, 0, WNOHANG|WEXITED, 0)) in main() 188 tprintf("waitid(P_PID, %d, NULL, WNOHANG|WEXITED, NULL) = 0\n", pid); in main() 193 if (do_waitid(P_PID, pid, sinfo, WNOHANG|WEXITED|WSTOPPED, rusage)) in main() 196 pid, sprint_rusage(rusage)); in main() 201 if (do_waitid(P_PID, pid, sinfo, WEXITED, rusage)) in main() 204 pid, sprint_siginfo(sinfo, "42"), sprint_rusage(rusage)); in main() [all …]
|
D | sched_xetaffinity.c | 45 getaffinity(unsigned long pid, unsigned long size, void *set) in getaffinity() argument 47 int rc = syscall(__NR_sched_getaffinity, pid, size, set); in getaffinity() 53 setaffinity(unsigned long pid, unsigned long size, void *set) in setaffinity() argument 55 int rc = syscall(__NR_sched_setaffinity, pid, size, set); in setaffinity() 64 const pid_t pid = getpid(); in main() local 67 assert(getaffinity(pid, cpuset_size, NULL) == -1); in main() 73 pid, cpuset_size, errstr); in main() 78 pid, cpuset_size, errstr); in main() 81 getaffinity(pid, cpuset_size, cpuset + 1); in main() 83 pid, cpuset_size, cpuset + 1, errstr); in main() [all …]
|
/external/strace/tests-m32/ |
D | ptrace.c | 48 do_ptrace(unsigned long request, unsigned long pid, in do_ptrace() argument 51 long rc = syscall(__NR_ptrace, request, pid, addr, data); in do_ptrace() 57 test_peeksiginfo(unsigned long pid, const unsigned long bad_request) in test_peeksiginfo() argument 59 do_ptrace(PTRACE_PEEKSIGINFO, pid, 0, bad_request); in test_peeksiginfo() 61 (unsigned) pid, bad_request, errstr); in test_peeksiginfo() 73 do_ptrace(PTRACE_PEEKSIGINFO, pid, (unsigned long) psi, bad_request); in test_peeksiginfo() 76 (unsigned) pid, psi->off, psi->nr, bad_request, errstr); in test_peeksiginfo() 78 pid = fork(); in test_peeksiginfo() 79 if ((pid_t) pid < 0) in test_peeksiginfo() 82 if (!pid) { in test_peeksiginfo() [all …]
|
D | wait4.c | 89 do_wait4(pid_t pid, int *wstatus, int options, struct rusage *ru) in do_wait4() argument 95 pid_t rc = wait4(pid, wstatus, options, ru); in do_wait4() 109 pid_t pid; in main() local 110 pid = fork(); in main() 111 if (pid < 0) in main() 114 if (!pid) { in main() 124 if (wait4(pid, s, WNOHANG|__WALL, NULL)) in main() 126 tprintf("wait4(%d, %p, WNOHANG|__WALL, NULL) = 0\n", pid, s); in main() 129 if (wait4(pid, s, WNOHANG|__WALL, rusage)) in main() 131 tprintf("wait4(%d, %p, WNOHANG|__WALL, %p) = 0\n", pid, s, rusage); in main() [all …]
|
D | waitid.c | 172 pid_t pid; in main() local 173 pid = fork(); in main() 174 if (pid < 0) in main() 177 if (!pid) { in main() 186 if (do_waitid(P_PID, pid, 0, WNOHANG|WEXITED, 0)) in main() 188 tprintf("waitid(P_PID, %d, NULL, WNOHANG|WEXITED, NULL) = 0\n", pid); in main() 193 if (do_waitid(P_PID, pid, sinfo, WNOHANG|WEXITED|WSTOPPED, rusage)) in main() 196 pid, sprint_rusage(rusage)); in main() 201 if (do_waitid(P_PID, pid, sinfo, WEXITED, rusage)) in main() 204 pid, sprint_siginfo(sinfo, "42"), sprint_rusage(rusage)); in main() [all …]
|
D | sched_xetaffinity.c | 45 getaffinity(unsigned long pid, unsigned long size, void *set) in getaffinity() argument 47 int rc = syscall(__NR_sched_getaffinity, pid, size, set); in getaffinity() 53 setaffinity(unsigned long pid, unsigned long size, void *set) in setaffinity() argument 55 int rc = syscall(__NR_sched_setaffinity, pid, size, set); in setaffinity() 64 const pid_t pid = getpid(); in main() local 67 assert(getaffinity(pid, cpuset_size, NULL) == -1); in main() 73 pid, cpuset_size, errstr); in main() 78 pid, cpuset_size, errstr); in main() 81 getaffinity(pid, cpuset_size, cpuset + 1); in main() 83 pid, cpuset_size, cpuset + 1, errstr); in main() [all …]
|
/external/strace/tests/ |
D | ptrace.c | 48 do_ptrace(unsigned long request, unsigned long pid, in do_ptrace() argument 51 long rc = syscall(__NR_ptrace, request, pid, addr, data); in do_ptrace() 57 test_peeksiginfo(unsigned long pid, const unsigned long bad_request) in test_peeksiginfo() argument 59 do_ptrace(PTRACE_PEEKSIGINFO, pid, 0, bad_request); in test_peeksiginfo() 61 (unsigned) pid, bad_request, errstr); in test_peeksiginfo() 73 do_ptrace(PTRACE_PEEKSIGINFO, pid, (unsigned long) psi, bad_request); in test_peeksiginfo() 76 (unsigned) pid, psi->off, psi->nr, bad_request, errstr); in test_peeksiginfo() 78 pid = fork(); in test_peeksiginfo() 79 if ((pid_t) pid < 0) in test_peeksiginfo() 82 if (!pid) { in test_peeksiginfo() [all …]
|
D | wait4.c | 89 do_wait4(pid_t pid, int *wstatus, int options, struct rusage *ru) in do_wait4() argument 95 pid_t rc = wait4(pid, wstatus, options, ru); in do_wait4() 109 pid_t pid; in main() local 110 pid = fork(); in main() 111 if (pid < 0) in main() 114 if (!pid) { in main() 124 if (wait4(pid, s, WNOHANG|__WALL, NULL)) in main() 126 tprintf("wait4(%d, %p, WNOHANG|__WALL, NULL) = 0\n", pid, s); in main() 129 if (wait4(pid, s, WNOHANG|__WALL, rusage)) in main() 131 tprintf("wait4(%d, %p, WNOHANG|__WALL, %p) = 0\n", pid, s, rusage); in main() [all …]
|
D | waitid.c | 172 pid_t pid; in main() local 173 pid = fork(); in main() 174 if (pid < 0) in main() 177 if (!pid) { in main() 186 if (do_waitid(P_PID, pid, 0, WNOHANG|WEXITED, 0)) in main() 188 tprintf("waitid(P_PID, %d, NULL, WNOHANG|WEXITED, NULL) = 0\n", pid); in main() 193 if (do_waitid(P_PID, pid, sinfo, WNOHANG|WEXITED|WSTOPPED, rusage)) in main() 196 pid, sprint_rusage(rusage)); in main() 201 if (do_waitid(P_PID, pid, sinfo, WEXITED, rusage)) in main() 204 pid, sprint_siginfo(sinfo, "42"), sprint_rusage(rusage)); in main() [all …]
|
D | sched_xetaffinity.c | 45 getaffinity(unsigned long pid, unsigned long size, void *set) in getaffinity() argument 47 int rc = syscall(__NR_sched_getaffinity, pid, size, set); in getaffinity() 53 setaffinity(unsigned long pid, unsigned long size, void *set) in setaffinity() argument 55 int rc = syscall(__NR_sched_setaffinity, pid, size, set); in setaffinity() 64 const pid_t pid = getpid(); in main() local 67 assert(getaffinity(pid, cpuset_size, NULL) == -1); in main() 73 pid, cpuset_size, errstr); in main() 78 pid, cpuset_size, errstr); in main() 81 getaffinity(pid, cpuset_size, cpuset + 1); in main() 83 pid, cpuset_size, cpuset + 1, errstr); in main() [all …]
|
/external/cpuinfo/test/dmesg/ |
D | huawei-mate-9.log | 1 [ 0.000000s][pid:0,cpu0,swapper]Booting Linux on physical CPU 0x0 2 [ 0.000000s][pid:0,cpu0,swapper]Initializing cgroup subsys cpuset 3 [ 0.000000s][pid:0,cpu0,swapper]Initializing cgroup subsys cpu 4 [ 0.000000s][pid:0,cpu0,swapper]Initializing cgroup subsys cpuacct 5 [ 0.000000s][pid:0,cpu0,swapper]Linux version 4.1.18-g782b0b9 (android@localhost) (gcc version 4… 6 [ 0.000000s][pid:0,cpu0,swapper]CPU: AArch64 Processor [410fd034] revision 4 7 [ 0.000000s][pid:0,cpu0,swapper]Detected VIPT I-cache on CPU0 8 [ 0.000000s][pid:0,cpu0,swapper]alternatives: enabling workaround for ARM erratum 845719 9 [ 0.000000s][pid:0,cpu0,swapper]runmode is normal, runmode_factory = 0 10 [ 0.000000s][pid:0,cpu0,swapper]early_parse_logctl_cmdline: p: 0, logctl: 0 [all …]
|
D | huawei-mate-8.log | 1 [ 0.000000s][pid:0,cpu0,swapper]Booting Linux on physical CPU 0x0 2 [ 0.000000s][pid:0,cpu0,swapper]Initializing cgroup subsys cpuset 3 [ 0.000000s][pid:0,cpu0,swapper]Initializing cgroup subsys cpu 4 [ 0.000000s][pid:0,cpu0,swapper]Initializing cgroup subsys cpuacct 5 [ 0.000000s][pid:0,cpu0,swapper]Linux version 4.1.18-g9c91e7c (android@localhost) (gcc version 4… 6 [ 0.000000s][pid:0,cpu0,swapper]CPU: AArch64 Processor [410fd034] revision 4 7 [ 0.000000s][pid:0,cpu0,swapper]Detected VIPT I-cache on CPU0 8 [ 0.000000s][pid:0,cpu0,swapper]alternatives: enabling workaround for ARM erratum 845719 9 [ 0.000000s][pid:0,cpu0,swapper]runmode is normal, runmode_factory = 0 10 [ 0.000000s][pid:0,cpu0,swapper]early_parse_logctl_cmdline: p: 0, logctl: 0 [all …]
|
D | huawei-p9-lite.log | 1 [ 0.000000s][pid:0,cpu0,swapper]Initializing cgroup subsys cpuset 2 [ 0.000000s][pid:0,cpu0,swapper]Initializing cgroup subsys cpu 3 [ 0.000000s][pid:0,cpu0,swapper]Initializing cgroup subsys cpuacct 4 [ 0.000000s][pid:0,cpu0,swapper]Linux version 3.10.90-ge124f87 (android@localhost) (gcc version … 5 [ 0.000000s][pid:0,cpu0,swapper]CPU: AArch64 Processor [410fd034] revision 4 6 [ 0.000000s][pid:0,cpu0,swapper]Machine: hi6250 7 [ 0.000000s][pid:0,cpu0,swapper]runmode is normal, runmode_factory = 0 8 [ 0.000000s][pid:0,cpu0,swapper][I/HWLOG_TAG] early_parse_logctl_cmdline: p: 0, logctl: 0 9 [ 0.000000s][pid:0,cpu0,swapper]enter recovery p:0, enter_recovery_flag :0 10 [ 0.000000s][pid:0,cpu0,swapper]power down charge p:normal, pd_charge_flag :0 [all …]
|
/external/ltp/testcases/kernel/controllers/cpuctl_fj/ |
D | 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/tasks [all …]
|
/external/ltp/testcases/kernel/numa/ |
D | numa01.sh | 33 local pid=$1 36 echo $(numastat -p $pid |awk '/^Total/ {print $'$node'}') 41 local pid=$1 43 local state=$(awk '{print $3}' /proc/$pid/stat) 79 pid=$! 81 TST_RETRY_FUNC "check_for_support_numa $pid" 0 83 Mem_curr=$(echo "$(extract_numastat_p $pid $node) * $MB" |bc) 87 kill -CONT $pid >/dev/null 2>&1 91 kill -CONT $pid >/dev/null 2>&1 113 pid=$! [all …]
|
/external/ltp/testcases/kernel/sched/hyperthreading/ht_affinity/ |
D | ht_affinity.c | 43 #define sched_setaffinity(pid, cpusetsize, mask) syscall(__NR_sched_setaffinity, pid, cpusetsize, m… argument 44 #define sched_getaffinity(pid, cpusetsize, mask) syscall(__NR_sched_getaffinity, pid, cpusetsize, m… argument 52 pid_t pid; in HT_SetAffinity() local 56 pid = getpid(); in HT_SetAffinity() 70 sched_setaffinity(pid, sizeof(unsigned long), &mask); in HT_SetAffinity() 82 if (get_current_cpu(pid) != i) in HT_SetAffinity() 98 sched_setaffinity(pid, sizeof(unsigned long), &mask); in HT_SetAffinity() 110 cpuid = get_current_cpu(pid); in HT_SetAffinity() 129 unsigned long get_porc_affinity(pid_t pid) in get_porc_affinity() argument 133 sprintf(buf, "%s%d/%s%c", PROCFS_PATH, pid, AFFINITY_NAME, 0); in get_porc_affinity() [all …]
|
/external/strace/ |
D | strace-graph | 48 my ($pid, $call, $args, $result, $time, $time_spent); 53 $pid = $1; 67 $unfinished{$pid} = $_; 72 unless (exists $unfinished{$pid}) { 76 $_ = $unfinished{$pid} . $_; 77 delete $unfinished{$pid}; 88 handle_killed($pid, $time); 107 handle_trace($pid, $call, $args, $result, $time); 226 my ($pid, $call, $args, $result, $time) = @_; 227 my $pid_fqname = $pid . "-" . $time; [all …]
|
D | strace.c | 346 ptrace_attach_or_seize(int pid) in ptrace_attach_or_seize() argument 351 ptrace(PTRACE_ATTACH, pid, 0L, 0L); in ptrace_attach_or_seize() 352 r = ptrace(PTRACE_SEIZE, pid, 0L, (unsigned long) ptrace_setoptions); in ptrace_attach_or_seize() 355 r = ptrace(PTRACE_INTERRUPT, pid, 0L, 0L); in ptrace_attach_or_seize() 373 ptrace(op, tcp->pid, 0L, (unsigned long) sig); in ptrace_restart() 408 perror_msg("ptrace(PTRACE_%s,pid:%d,sig:%u)", msg, tcp->pid, sig); in ptrace_restart() 436 kill_save_errno(pid_t pid, int sig) in kill_save_errno() argument 440 (void) kill(pid, sig); in kill_save_errno() 487 int pid; in strace_popen() local 496 pid = vfork(); in strace_popen() [all …]
|
/external/perfetto/test/trace_processor/ |
D | sched_waking_raw_compact_sched.out | 3 250978451591891,"sched_waking",0,"pid",8,"[NULL]" 8 250978451609131,"sched_waking",0,"pid",17473,"[NULL]" 13 250978596565656,"sched_waking",0,"pid",17438,"[NULL]" 18 250978600598417,"sched_waking",0,"pid",17438,"[NULL]" 23 250978600639042,"sched_waking",0,"pid",6,"[NULL]" 28 250978604651907,"sched_waking",0,"pid",6,"[NULL]" 33 250978604739980,"sched_waking",0,"pid",17438,"[NULL]" 38 250978608903886,"sched_waking",0,"pid",17438,"[NULL]" 43 250978608942220,"sched_waking",0,"pid",6,"[NULL]" 48 250978612887272,"sched_waking",0,"pid",6,"[NULL]" [all …]
|
/external/bcc/tools/ |
D | sslsniff.py | 122 if args.pid: 123 prog = prog.replace('FILTER', 'if (pid != %d) { return 0; }' % args.pid) 141 pid=args.pid or -1) 143 pid=args.pid or -1) 145 fn_name="probe_SSL_read_exit", pid=args.pid or -1) 149 fn_name="probe_SSL_write", pid=args.pid or -1) 151 fn_name="probe_SSL_read_enter", pid=args.pid or -1) 153 fn_name="probe_SSL_read_exit", pid=args.pid or -1) 157 pid=args.pid or -1) 159 pid=args.pid or -1) [all …]
|
/external/honggfuzz/netbsd/ |
D | trace.c | 127 static size_t arch_getProcMem(pid_t pid, uint8_t* buf, size_t len, register_t pc) { in arch_getProcMem() argument 139 if (ptrace(PT_IO, pid, &io, 0) == -1) { in arch_getProcMem() 142 pid, io.piod_op, io.piod_offs, io.piod_addr, io.piod_len); in arch_getProcMem() 154 pid_t pid, lwpid_t lwp, register_t* pc, register_t* status_reg HF_ATTR_UNUSED) { in arch_getPC() argument 157 if (ptrace(PT_GETREGS, pid, &r, lwp) != 0) { in arch_getPC() 173 static void arch_getInstrStr(pid_t pid, lwpid_t lwp, register_t* pc, char* instr) { in arch_getInstrStr() argument 184 size_t pcRegSz = arch_getPC(pid, lwp, pc, &status_reg); in arch_getInstrStr() 190 if ((memsz = arch_getProcMem(pid, buf, sizeof(buf), *pc)) == 0) { in arch_getInstrStr() 268 pid_t pid, run_t* run, funcs_t* funcs, size_t funcCnt, siginfo_t* si, const char* instr) { in arch_traceGenerateReport() argument 272 util_ssnprintf(run->report, sizeof(run->report), "PID: %d\n", pid); in arch_traceGenerateReport() [all …]
|
/external/ltp/testcases/kernel/syscalls/waitpid/ |
D | waitpid09.c | 28 static void cleanup_pid(pid_t pid) in cleanup_pid() argument 30 if (pid > 0) { in cleanup_pid() 31 kill(pid, SIGKILL); in cleanup_pid() 32 waitpid(pid, NULL, 0); in cleanup_pid() 38 pid_t pid, ret; in case0() local 41 pid = SAFE_FORK(); in case0() 42 if (pid == 0) { in case0() 49 ret = waitpid(pid, &status, WNOHANG); in case0() 59 cleanup_pid(pid); in case0() 64 SAFE_WAITPID(pid, NULL, 0); in case0() [all …]
|