/external/linux-kselftest/tools/testing/selftests/kcmp/ |
D | kcmp_test.c | 22 static long sys_kcmp(int pid1, int pid2, int type, int fd1, int fd2) in sys_kcmp() argument 24 return syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2); in sys_kcmp() 30 int pid1, pid2; in main() local 35 pid1 = getpid(); in main() 62 pid1, pid2, in main() 63 sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd2), in main() 64 sys_kcmp(pid1, pid2, KCMP_FILES, 0, 0), in main() 65 sys_kcmp(pid1, pid2, KCMP_VM, 0, 0), in main() 66 sys_kcmp(pid1, pid2, KCMP_FS, 0, 0), in main() 67 sys_kcmp(pid1, pid2, KCMP_SIGHAND, 0, 0), in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/kcmp/ |
D | kcmp02.c | 42 static int pid1; variable 52 int *pid1; member 59 {&pid1, &pid_unused, KCMP_FILE, &fd1, &fd2, ESRCH}, 60 {&pid1, &pid1, KCMP_TYPES + 1, &fd1, &fd2, EINVAL}, 61 {&pid1, &pid1, -1, &fd1, &fd2, EINVAL}, 62 {&pid1, &pid1, INT_MIN, &fd1, &fd2, EINVAL}, 63 {&pid1, &pid1, INT_MAX, &fd1, &fd2, EINVAL}, 64 {&pid1, &pid1, KCMP_FILE, &fd1, &fd_fake, EBADF} 95 TEST(kcmp(*(test->pid1), *(test->pid2), test->type, in kcmp_verify() 122 pid1 = getpid(); in setup()
|
D | kcmp01.c | 41 static int pid1; variable 47 int *pid1; member 54 {&pid1, &pid1, KCMP_FILE, &fd1, &fd1, 0}, 56 {&pid1, &pid2, KCMP_FILE, &fd1, &fd1, 0}, 57 {&pid1, &pid2, KCMP_FILE, &fd1, &fd2, 0}, 58 {&pid1, &pid2, KCMP_FILE, &fd1, &fd3, 1}, 103 TEST(kcmp(*(test->pid1), *(test->pid2), test->type, in do_child() 140 pid1 = getpid(); in setup()
|
/external/ltp/testcases/kernel/syscalls/unshare/ |
D | unshare01.c | 157 pid_t pid1; in main() local 169 pid1 = fork(); //call to fork() in main() 170 if (pid1 == -1) { in main() 173 } else if (pid1 == 0) { in main() 207 pid1 = fork(); in main() 208 if (pid1 == -1) { in main() 211 } else if (pid1 == 0) { in main() 245 pid1 = fork(); in main() 246 if (pid1 == -1) { in main() 249 } else if (pid1 == 0) { in main()
|
D | unshare02.c | 120 pid_t pid1; in main() local 132 TEST(pid1 = fork()); //call to fork() in main() 173 TEST(pid1 = fork()); //call to fork() in main() 174 if (pid1 == -1) { in main()
|
/external/ltp/testcases/kernel/syscalls/fork/ |
D | fork03.c | 57 int pid1, pid2, status; in main() local 67 pid1 = fork(); in main() 68 if (pid1 == -1) in main() 71 if (pid1 == 0) { in main() 83 if (pid1 != 0) in main() 89 "fork : %d", pid1); in main() 92 if (pid1 != pid2) { in main() 94 pid1, pid2); in main()
|
D | fork02.c | 57 int pid1, pid2, status; in main() local 68 pid1 = fork(); in main() 69 if (pid1 == -1) in main() 72 if (pid1 == 0) { in main() 80 if (pid1 == pid2) in main()
|
D | fork08.c | 58 int status, count, forks, pid1; in main() local 90 pid1 = fork(); in main() 91 if (pid1 != 0) { in main() 94 if ((pid1 != (-1)) && (forks < 2)) in main() 96 else if (pid1 < 0) in main()
|
D | fork07.c | 73 int status, forks, pid1; in main() local 115 pid1 = fork(); in main() 116 if (pid1 == 0) { in main() 141 } else if (pid1 == -1) in main()
|
/external/chromium-trace/catapult/telemetry/telemetry/util/ |
D | process_statistic_timeline_data_unittest.py | 13 pid1 = 1 16 a = process_statistic_timeline_data.ProcessStatisticTimelineData(pid1, 5) 18 c = process_statistic_timeline_data.ProcessStatisticTimelineData(pid1, 1) 22 self.assertEquals(5, addition_result[pid1]) 28 self.assertEquals(4, subtraction_result[pid1]) 34 self.assertEquals(4, subtraction_results1[pid1]) 41 pid1 = 1 44 a = process_statistic_timeline_data.ProcessStatisticTimelineData(pid1, 1)
|
/external/ltp/testcases/kernel/controllers/cgroup/ |
D | cgroup_regression_test.sh | 190 pid1=$! 195 /bin/kill -SIGUSR1 $pid1 $pid2 196 wait $pid1 316 pid1=$! 321 /bin/kill -SIGUSR1 $pid1 323 wait $pid1 471 pid1=$! 476 /bin/kill -SIGUSR1 $pid1 $pid2 477 wait $pid1 498 pid1=$! [all …]
|
/external/ltp/testcases/kernel/controllers/memcg/regression/ |
D | memcg_regression_test.sh | 129 pid1=$! 133 echo $pid1 > memcg/0/tasks 136 /bin/kill -SIGUSR1 $pid1 152 kill -9 $pid1 $pid2 > /dev/null 2>&1 153 wait $pid1 $pid2 167 kill -9 $pid1 $pid2 > /dev/null 2>&1 168 wait $pid1 $pid2 > /dev/null 2>&1
|
/external/ltp/testcases/kernel/syscalls/kill/ |
D | kill05.c | 144 pid_t pid1; in do_master_child() local 156 pid1 = FORK_OR_VFORK(); in do_master_child() 158 if (pid1 == -1) in do_master_child() 161 if (pid1 == 0) { in do_master_child() 186 TEST(kill(pid1, TEST_SIG)); in do_master_child() 191 if (waitpid(pid1, &status, 0) == -1) { in do_master_child()
|
D | kill08.c | 77 pid_t pid1, pid2; in main() local 98 pid1 = FORK_OR_VFORK(); in main() 99 if (pid1 < 0) { in main() 101 } else if (pid1 == 0) { in main() 124 waitpid(pid1, &status, 0); in main()
|
D | kill06.c | 77 pid_t pid1, pid2; in main() local 98 pid1 = FORK_OR_VFORK(); in main() 99 if (pid1 < 0) { in main() 101 } else if (pid1 == 0) { in main() 127 waitpid(pid1, &status, 0); in main()
|
/external/ltp/testcases/kernel/fs/fs_inod/ |
D | fs_inod | 170 pid1=$! 180 wait $pid1 182 pid1=$! 186 wait $pid1 200 pid1=$!
|
/external/ltp/testcases/kernel/mem/shmt/ |
D | shmt04.c | 69 int pid, pid1, shmid; in main() local 120 while ((pid1 = wait(&status)) < 0 && (errno == EINTR)) ; in main() 121 if (pid1 != pid) { in main() 125 pid1); in main()
|
D | shmt06.c | 68 int pid, pid1, shmid; in main() local 119 while ((pid1 = wait(&status)) < 0 && (errno == EINTR)) ; in main() 120 if (pid1 != pid) { in main() 124 pid1); in main()
|
/external/ltp/testcases/kernel/syscalls/mkdir/ |
D | mkdir04.c | 101 pid_t pid, pid1; in main() local 155 if ((pid1 = FORK_OR_VFORK()) < 0) { in main() 159 if (pid1 == 0) { /* second child */ in main() 181 waitpid(pid1, &status, 0); in main()
|
/external/autotest/client/site_tests/hardware_ch7036/ |
D | hardware_ch7036.py | 92 pid1 = check_server(_SERVER) 96 logging.debug("pids %s %s" % (pid1, pid2)) 97 if pid1 != pid2: 99 (_SERVER, pid1, pid2))
|
/external/ltp/testcases/kernel/syscalls/vhangup/ |
D | vhangup02.c | 62 pid_t pid, pid1; in main() local 81 pid1 = setsid(); in main() 82 if (pid1 < 0) { in main()
|
/external/ltp/testcases/kernel/syscalls/rename/ |
D | rename09.c | 100 pid_t pid, pid1; in main() local 156 if ((pid1 = FORK_OR_VFORK()) == -1) { in main() 160 if (pid1 == 0) { /* second child */ in main() 212 waitpid(pid1, &status, 0); in main()
|
/external/strace/tests/ |
D | kcmp.c | 44 do_kcmp(kernel_ulong_t pid1, kernel_ulong_t pid2, kernel_ulong_t type, in do_kcmp() argument 50 rc = syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); in do_kcmp() 53 printf("kcmp(%d, %d, ", (int) pid1, (int) pid2); in do_kcmp()
|
/external/strace/tests-m32/ |
D | kcmp.c | 44 do_kcmp(kernel_ulong_t pid1, kernel_ulong_t pid2, kernel_ulong_t type, in do_kcmp() argument 50 rc = syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); in do_kcmp() 53 printf("kcmp(%d, %d, ", (int) pid1, (int) pid2); in do_kcmp()
|
/external/strace/tests-mx32/ |
D | kcmp.c | 44 do_kcmp(kernel_ulong_t pid1, kernel_ulong_t pid2, kernel_ulong_t type, in do_kcmp() argument 50 rc = syscall(__NR_kcmp, pid1, pid2, type, idx1, idx2); in do_kcmp() 53 printf("kcmp(%d, %d, ", (int) pid1, (int) pid2); in do_kcmp()
|