Searched refs:testpid (Results 1 – 2 of 2) sorted by relevance
| /tools/testing/selftests/kselftest_harness/ |
| A D | harness-selftest.c | 49 pid_t testpid; in FIXTURE() local 54 self->testpid = getpid(); in FIXTURE_SETUP() 58 TH_LOG("teardown same-process=%d", self->testpid == getpid()); in FIXTURE_TEARDOWN() 83 pid_t testpid; in FIXTURE() local 88 self->testpid = getpid(); in FIXTURE_SETUP() 92 TH_LOG("teardown same-process=%d", self->testpid == getpid()); in FIXTURE_TEARDOWN_PARENT() 102 pid_t testpid; in FIXTURE() local 107 self->testpid = getpid(); in FIXTURE_SETUP() 112 TH_LOG("teardown same-process=%d", self->testpid == getpid()); in FIXTURE_TEARDOWN()
|
| /tools/testing/selftests/x86/ |
| A D | syscall_numbering.c | 363 ptrace(PTRACE_GETREGS, testpid, NULL, ®s); in mess_with_syscall() 394 ptrace(PTRACE_SETREGS, testpid, NULL, ®s); in mess_with_syscall() 402 pid_t wpid = waitpid(testpid, &wstatus, 0); in syscall_numbering_tracer() 405 if (wpid != testpid) in syscall_numbering_tracer() 415 ptrace(PTRACE_DETACH, testpid, NULL, NULL); in syscall_numbering_tracer() 418 while (waitpid(testpid, &wstatus, 0) != testpid || !WIFEXITED(wstatus)) in syscall_numbering_tracer() 424 pid_t testpid; in test_traced_syscall_numbering() local 427 testpid = fork(); in test_traced_syscall_numbering() 429 if (testpid < 0) { in test_traced_syscall_numbering() 431 } else if (testpid == 0) { in test_traced_syscall_numbering() [all …]
|
Completed in 4 milliseconds