Home
last modified time | relevance | path

Searched refs:ctid (Results 1 – 8 of 8) sorted by relevance

/external/llvm-project/openmp/runtime/test/affinity/format/
Dfields_modifiers.c44 char ctid = '0' + (char)tid; in check_thread_num_padded_rjustified() local
49 check(s[j] == ctid); in check_thread_num_padded_rjustified()
63 char ctid = '0' + (char)tid; in check_thread_num_rjustified() local
68 check(s[j] == ctid); in check_thread_num_rjustified()
82 char ctid = '0' + (char)tid; in check_thread_num_ljustified() local
84 check(s[0] == ctid); in check_thread_num_ljustified()
101 char ctid = '0' + (char)tid; in check_thread_num_padded_ljustified() local
103 check(s[0] == ctid); in check_thread_num_padded_ljustified()
/external/ltp/testcases/kernel/syscalls/clone/
Dclone08.c20 static pid_t ptid, ctid, tgid; variable
88 child_stack, &ptid, NULL, &ctid)); in clone_child()
132 if (ctid == tst_syscall(__NR_getpid)) in child_clone_child_settid()
135 tst_res(TFAIL, "ctid != getpid() (%d != %d)", ctid, getpid()); in child_clone_child_settid()
193 ctid = -1; in test_clone_thread()
197 if (syscall(SYS_futex, &ctid, FUTEX_WAIT, -1, &timeout)) { in test_clone_thread()
206 if (errno != EWOULDBLOCK || ctid == -1) { in test_clone_thread()
208 "futex failed, ctid: %d", ctid); in test_clone_thread()
212 tst_res(TPASS, "futex exit on ctid change, ctid: %d", ctid); in test_clone_thread()
/external/ltp/lib/
Dcloner.c54 # define clone(fn, stack, flags, arg, ptid, tls, ctid) \ argument
66 size_t stack_size, void *stack, pid_t *ptid, void *tls, pid_t *ctid) in ltp_clone_() argument
71 ret = __clone2(fn, stack, stack_size, flags, arg, ptid, tls, ctid); in ltp_clone_()
87 ret = clone(fn, stack, flags, arg, ptid, tls, ctid); in ltp_clone_()
102 pid_t *ptid, *ctid; in ltp_clone7() local
109 ctid = va_arg(arg_clone, pid_t *); in ltp_clone7()
113 return ltp_clone_(flags, fn, arg, stack_size, stack, ptid, tls, ctid); in ltp_clone7()
/external/openssh/openbsd-compat/
Dport-solaris.c50 ctid_t ctid = -1; in get_active_process_contract_id() local
63 if ((ctid = ct_status_get_id(stathdl)) < 0) { in get_active_process_contract_id()
72 return ctid; in get_active_process_contract_id()
142 ctid_t ctid; in solaris_contract_post_fork_parent() local
168 ctid = get_active_process_contract_id(); in solaris_contract_post_fork_parent()
170 debug2("%s: abandoning contract id %ld", __func__, ctid); in solaris_contract_post_fork_parent()
173 CTFS_ROOT "/process/%ld/ctl", ctid); in solaris_contract_post_fork_parent()
/external/libchrome/base/process/
Dlaunch_posix.cc721 pid_t* ctid, in CloneAndLongjmpInChild() argument
737 return clone(&CloneHelper, stack, flags, env, ptid, nullptr, ctid); in CloneAndLongjmpInChild()
742 pid_t ForkWithFlags(unsigned long flags, pid_t* ptid, pid_t* ctid) { in ForkWithFlags() argument
745 (flags & (CLONE_CHILD_SETTID | CLONE_CHILD_CLEARTID)) && !ctid; in ForkWithFlags()
757 return CloneAndLongjmpInChild(flags, ptid, ctid, &env); in ForkWithFlags()
Dlaunch.h391 BASE_EXPORT pid_t ForkWithFlags(unsigned long flags, pid_t* ptid, pid_t* ctid);
Dprocess_util_unittest.cc1327 pid_t ctid = 0; in TEST() local
1328 const pid_t pid = ForkWithFlags(SIGCHLD | CLONE_CHILD_SETTID, nullptr, &ctid); in TEST()
1332 RAW_CHECK(syscall(__NR_getpid) == ctid); in TEST()
1333 RAW_CHECK(getpid() == ctid); in TEST()
/external/bcc/tools/
Ddeadlock_detector.c184 void *ptid, void *ctid, struct pt_regs *regs) { in trace_clone() argument