HomeSort by relevance Sort by last modified time
    Searched refs:pid1 (Results 1 - 25 of 41) sorted by null

1 2

  /external/ltp/testcases/kernel/syscalls/kcmp/
kcmp02.c 41 static int pid1; variable
50 int *pid1; member in struct:test_case
57 {&pid1, &pid_unused, KCMP_FILE, &fd1, &fd2, ESRCH},
58 {&pid1, &pid1, KCMP_TYPES + 1, &fd1, &fd2, EINVAL},
59 {&pid1, &pid1, -1, &fd1, &fd2, EINVAL},
60 {&pid1, &pid1, INT_MIN, &fd1, &fd2, EINVAL},
61 {&pid1, &pid1, INT_MAX, &fd1, &fd2, EINVAL}
    [all...]
kcmp.h 47 int kcmp(int pid1, int pid2, int type, int fd1, int fd2)
49 return tst_syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2);
kcmp01.c 39 static int pid1; variable
43 int *pid1; member in struct:test_case
50 {&pid1, &pid1, KCMP_FILE, &fd1, &fd1, 0},
52 {&pid1, &pid2, KCMP_FILE, &fd1, &fd1, 0},
53 {&pid1, &pid2, KCMP_FILE, &fd1, &fd2, 0},
54 {&pid1, &pid2, KCMP_FILE, &fd1, &fd3, 1},
81 TEST(kcmp(*(test->pid1), *(test->pid2), test->type,
106 pid1 = getpid();
kcmp03.c 41 static int pid1; variable
69 TEST(kcmp(pid1, pid2, *(int *)arg, 0, 0));
89 pid1 = getpid();
  /external/ltp/testcases/kernel/syscalls/fork/
fork03.c 57 int pid1, pid2, status; local
67 pid1 = fork();
68 if (pid1 == -1)
71 if (pid1 == 0) {
83 if (pid1 != 0)
89 "fork : %d", pid1);
92 if (pid1 != pid2) {
94 pid1, pid2);
fork02.c 57 int pid1, pid2, status; local
68 pid1 = fork();
69 if (pid1 == -1)
72 if (pid1 == 0) {
80 if (pid1 == pid2)
fork08.c 58 int status, count, forks, pid1; local
90 pid1 = fork();
91 if (pid1 != 0) {
94 if ((pid1 != (-1)) && (forks < 2))
96 else if (pid1 < 0)
fork12.c 58 int forks, pid1, fork_errno, waitstatus; local
71 while ((pid1 = fork()) != -1) {
72 if (pid1 == 0) { /* child */
fork07.c 73 int status, forks, pid1; local
115 pid1 = fork();
116 if (pid1 == 0) {
141 } else if (pid1 == -1)
  /external/linux-kselftest/tools/testing/selftests/kcmp/
kcmp_test.c 23 static long sys_kcmp(int pid1, int pid2, int type, unsigned long fd1, unsigned long fd2)
25 return syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2);
35 int pid1, pid2; local
43 pid1 = getpid();
98 printf("pid1: %6d pid2: %6d FD: %2ld FILES: %2ld VM: %2ld "
101 pid1, pid2,
102 sys_kcmp(pid1, pid2, KCMP_FILE, fd1, fd2),
103 sys_kcmp(pid1, pid2, KCMP_FILES, 0, 0),
104 sys_kcmp(pid1, pid2, KCMP_VM, 0, 0),
105 sys_kcmp(pid1, pid2, KCMP_FS, 0, 0)
    [all...]
  /external/ltp/testcases/kernel/syscalls/unshare/
unshare01.c 158 pid_t pid1; local
170 pid1 = fork(); //call to fork()
171 if (pid1 == -1) {
174 } else if (pid1 == 0) {
206 pid1 = fork();
207 if (pid1 == -1) {
210 } else if (pid1 == 0) {
242 pid1 = fork();
243 if (pid1 == -1) {
246 } else if (pid1 == 0)
    [all...]
unshare02.c 123 pid_t pid1; local
135 TEST(pid1 = fork()); //call to fork()
173 TEST(pid1 = fork()); //call to fork()
174 if (pid1 == -1) {
  /external/ltp/testcases/kernel/syscalls/kill/
kill06.c 77 pid_t pid1, pid2; local
98 pid1 = FORK_OR_VFORK();
99 if (pid1 < 0) {
101 } else if (pid1 == 0) {
127 waitpid(pid1, &status, 0);
kill08.c 77 pid_t pid1, pid2; local
98 pid1 = FORK_OR_VFORK();
99 if (pid1 < 0) {
101 } else if (pid1 == 0) {
124 waitpid(pid1, &status, 0);
kill05.c 144 pid_t pid1; local
156 pid1 = FORK_OR_VFORK();
158 if (pid1 == -1)
161 if (pid1 == 0) {
186 TEST(kill(pid1, TEST_SIG));
191 if (waitpid(pid1, &status, 0) == -1) {
  /external/strace/
kcmp.c 57 pid_t pid1 = tcp->u_arg[0]; local
63 tprintf("%d, %d, ", pid1, pid2);
69 printpidfd(tcp, pid1, idx1);
71 printpidfd(tcp, pid1, idx2);
79 printpidfd(tcp, pid1, idx1);
  /external/ltp/testcases/kernel/syscalls/vhangup/
vhangup02.c 62 pid_t pid, pid1; local
81 pid1 = setsid();
82 if (pid1 < 0) {
  /platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
IProcessStatusTracker.java 31 public int pid0, pid1; field in class:IProcessStatusTracker.ProcessDetails
  /external/ltp/testcases/kernel/fs/fs_inod/
fs_inod 170 pid1=$!
180 wait $pid1
182 pid1=$!
186 wait $pid1
200 pid1=$!
  /packages/experimental/procstatlog/
diskload.sh 23 dd if=/dev/zero bs=65536 of=$1.1 & pid1=$!; echo start $pid1; sleep 2
34 kill $pid1; echo kill $pid1; sleep 2
  /external/ltp/testcases/kernel/syscalls/mkdir/
mkdir04.c 101 pid_t pid, pid1; local
155 if ((pid1 = FORK_OR_VFORK()) < 0) {
159 if (pid1 == 0) { /* second child */
181 waitpid(pid1, &status, 0);
  /external/ltp/testcases/kernel/controllers/memcg/regression/
memcg_regression_test.sh 128 pid1=$!
132 echo $pid1 > memcg/0/tasks
134 # let pid1 'test_2' allocate memory
135 /bin/kill -SIGUSR1 $pid1
151 kill -9 $pid1 $pid2 > /dev/null 2>&1
152 wait $pid1 $pid2
166 kill -9 $pid1 $pid2 > /dev/null 2>&1
167 wait $pid1 $pid2 > /dev/null 2>&1
  /external/ltp/testcases/kernel/controllers/cgroup/
cgroup_regression_test.sh 193 pid1=$!
198 /bin/kill -SIGUSR1 $pid1 $pid2
199 wait $pid1
319 pid1=$!
324 /bin/kill -SIGUSR1 $pid1
326 wait $pid1
474 pid1=$!
479 /bin/kill -SIGUSR1 $pid1 $pid2
480 wait $pid1
501 pid1=$
    [all...]
  /external/ltp/testcases/kernel/mem/shmt/
shmt04.c 69 int pid, pid1, shmid; local
120 while ((pid1 = wait(&status)) < 0 && (errno == EINTR)) ;
121 if (pid1 != pid) {
124 "Error: wait_status = %d, pid1= %d\n", status,
125 pid1);
shmt06.c 68 int pid, pid1, shmid; local
119 while ((pid1 = wait(&status)) < 0 && (errno == EINTR)) ;
120 if (pid1 != pid) {
123 "Error: wait_status = %d, pid1= %d\n", status,
124 pid1);

Completed in 604 milliseconds

1 2