HomeSort by relevance Sort by last modified time
    Searched defs:pid (Results 326 - 350 of 1842) sorted by null

<<11121314151617181920>>

  /external/linux-kselftest/tools/testing/selftests/powerpc/tm/
tm-signal-context-chk-vmx.c 39 long tm_signal_self_context_load(pid_t pid, long *gprs, double *fps, vector int *vms, vector int *vss);
85 pid_t pid = getpid(); local
99 rc = tm_signal_self_context_load(pid, NULL, NULL, vms, NULL);
100 FAIL_IF(rc != pid);
tm-syscall.c 33 pid_t pid; local
37 pid = getppid_tm_suspended();
39 pid = getppid_tm_active();
41 if (pid >= 0)
42 return pid;
  /external/linux-kselftest/tools/testing/selftests/seccomp/
seccomp_benchmark.c 21 pid_t pid, ret; local
25 pid = getpid();
29 assert(pid == ret);
  /external/ltp/lib/
tst_run_cmd.c 58 pid_t pid = vfork(); local
59 if (pid == -1) {
64 if (!pid) {
84 if (waitpid(pid, &ret, 0) != pid) {
  /external/ltp/testcases/kernel/containers/pidns/
pidns06.c 17 * Testcase tries killing of the parent namespace pid by the container-init.
18 * It also tries killing of non-existent PID, by the container-init.
24 * 2. The pid of the parent namespace is passed to the container.
25 * 3. Container receieves the PID and passes SIGKILL to this PID.
57 * Cont-init tries to kill the parent-process using parent's global Pid.
58 * Also checks passing SIGKILL to non existent PID in the container.
71 "pid=%d ppid=%d\n", cpid, ppid);
76 * While trying kill() of the pid of the parent namespace..
81 printf("Container: killing parent pid=%d failed as expected
121 pid_t pid = getpid(); local
    [all...]
pidns10.c 23 * * Create a PID namespace container.
61 pid_t pid, ppid; local
63 /* Set process id and parent pid */
64 pid = getpid();
66 if (pid != CHILD_PID || ppid != PARENT_PID) {
92 pid_t pid; local
96 pid = getpid();
98 /* Container creation on PID namespace */
pidns12.c 23 * * Create a PID namespace container.
26 * * Check if sender pid is set to 0 from signal info.
60 /* Recieved SIGUSR1. Check sender pid */
62 tst_resm(TPASS, "cinit: signalling PID (from other namespace)"
65 tst_resm(TFAIL, "cinit: signalling PID (from other namespace)"
75 pid_t pid, ppid; local
77 /* Set process id and parent pid */
78 pid = getpid();
80 if (pid != CHILD_PID || ppid != PARENT_PID) {
123 pid_t pid, cpid local
    [all...]
pidns16.c 26 * * Create PID namespace container.
31 * * In the sig-handler check if it's invoked from correct pid(parent/container)
78 tst_resm(TPASS, "child is signalled from expected pid %d",
81 tst_resm(TFAIL, "child is signalled from unexpected pid %d,"
82 " expecting pid %d", si->si_pid, expected_pid);
93 pid_t pid, ppid; local
95 /* Set process id and parent pid */
96 pid = getpid();
99 if ((pid != CHILD_PID) || (ppid != PARENT_PID))
107 tst_resm(TBROK, "%d: sigaction() failed", pid);
    [all...]
pidns17.c 23 * * Create a PID namespace container.
62 pid_t pid, ppid; local
64 /* Set process id and parent pid */
65 pid = getpid();
67 if (pid != CHILD_PID || ppid != PARENT_PID) {
137 pid_t pid; local
141 pid = getpid();
143 /* Container creation on PID namespace */
  /external/ltp/testcases/kernel/containers/share/
ns_ifmove.c 18 * Moves a network interface to the namespace of a process specified by a PID.
81 int intf_index, pid, rtnetlink_socket; local
95 pid = atoi(argv[2]);
115 RTA_LENGTH(sizeof(pid));
116 memcpy(RTA_DATA(rta), &pid, sizeof(pid)); local
  /external/ltp/testcases/kernel/controllers/memcg/regression/
memcg_test_1.c 41 int pid; local
50 pid = fork();
51 if (pid == 0) {
  /external/ltp/testcases/kernel/fs/doio/
forker.c 79 * be updated to contain the pid of each new process. The
162 int pid; local
171 if ((pid = fork()) == -1) {
181 switch (pid) {
191 Forker_pids[Forker_npids - 1] = pid;
198 if ((pid = fork()) == -1) {
208 switch (pid) {
217 Forker_pids[Forker_npids - 1] = pid;
262 printf("Starting Pid = %d\n", getpid());
264 printf("After background() ret:%d, pid = %d\n", ret, getpid())
    [all...]
  /external/ltp/testcases/kernel/input/
input01.c 47 int pid; local
54 pid = tst_fork();
56 switch (pid) {
70 SAFE_WAITPID(NULL, pid, NULL, 0);
input02.c 46 int pid; local
53 pid = tst_fork();
57 switch (pid) {
72 SAFE_WAITPID(NULL, pid, NULL, 0);
input04.c 44 int pid; local
51 pid = tst_fork();
53 switch (pid) {
69 SAFE_WAITPID(NULL, pid, NULL, 0);
input05.c 50 int pid; local
57 pid = tst_fork();
59 switch (pid) {
73 SAFE_WAITPID(NULL, pid, NULL, 0);
  /external/ltp/testcases/kernel/io/ltp-aiodio/
dio_append.c 110 int pid[NUM_CHILDREN]; local
120 if ((pid[i] = fork()) == 0) {
123 } else if (pid[i] < 0) {
140 kill(pid[i], SIGTERM);
  /external/ltp/testcases/kernel/ipc/semaphore/
sem01.c 110 pid_t pid; local
138 if ((pid = fork()) < 0) {
142 if (pid) {
144 srand(pid);
146 waitpid(pid, &chstat, 0);
  /external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/
hugeshmat03.c 63 pid_t pid; local
65 switch (pid = SAFE_FORK()) {
82 SAFE_WAITPID(pid, &status, 0);
  /external/ltp/testcases/kernel/mem/hugetlb/hugeshmget/
hugeshmget05.c 46 pid_t pid; local
49 switch (pid = fork()) {
59 SAFE_WAITPID(pid, &status, 0);
  /external/ltp/testcases/kernel/mem/ksm/
ksm05.c 62 pid_t pid; local
76 pid = SAFE_FORK();
77 if (pid == 0) {
83 SAFE_WAITPID(pid, &status, WUNTRACED | WCONTINUED);
  /external/ltp/testcases/kernel/mem/shmt/
shmt04.c 69 int pid, pid1, shmid; local
78 pid = fork();
79 switch (pid) {
95 (void)kill(pid, SIGINT);
107 kill(pid, SIGINT);
119 kill(pid, SIGUSR1);
121 if (pid1 != pid) {
shmt06.c 68 int pid, pid1, shmid; local
77 pid = fork();
78 switch (pid) {
94 (void)kill(pid, SIGINT);
106 kill(pid, SIGINT);
118 kill(pid, SIGUSR1);
120 if (pid1 != pid) {
shmt10.c 72 int pid, st; local
101 pid = fork();
102 switch (pid) {
  /external/ltp/testcases/kernel/security/dirtyc0w/
dirtyc0w.c 68 int i, fd, pid, fail = 0; local
76 pid = SAFE_FORK();
78 if (!pid) {
96 SAFE_KILL(pid, SIGUSR1);

Completed in 724 milliseconds

<<11121314151617181920>>