10 #include <linux/kernel.h> 11 #include <sys/types.h> 12 #include <uapi/linux/sched.h> 19 if (flags & CLONE_##n) { \ 20 printed += scnprintf(bf + printed, size - printed, "%s%s", printed ? "|" : "", #n); \ 21 flags &= ~CLONE_##n; \ 50 printed += scnprintf(bf + printed, size - printed,
"%s%#x", printed ?
"|" :
"", flags);
58 enum syscall_clone_args {
60 SCC_CHILD_STACK = (1 << 1),
61 SCC_PARENT_TIDPTR = (1 << 2),
62 SCC_CHILD_TIDPTR = (1 << 3),
65 if (!(flags & CLONE_PARENT_SETTID))
66 arg->
mask |= SCC_PARENT_TIDPTR;
68 if (!(flags & (CLONE_CHILD_SETTID | CLONE_CHILD_CLEARTID)))
69 arg->
mask |= SCC_CHILD_TIDPTR;
71 if (!(flags & CLONE_SETTLS))
static size_t clone__scnprintf_flags(unsigned long flags, char *bf, size_t size)
size_t syscall_arg__scnprintf_clone_flags(char *bf, size_t size, struct syscall_arg *arg)