[LTP] Query: Adding support for clone3()

Viresh Kumar viresh.kumar@linaro.org
Wed Mar 4 08:45:02 CET 2020


On 28-02-20, 12:48, Cyril Hrubis wrote:
> That depends I guess mostly on the clone() flags, right? Unless we pass
> CLONE_VM the child lives in a separate copy of the memory space and we
> do not have to do anything about the stack.
> 
> So for the most clone3() tests we can just need the struct clone_args
> and the syscall number and we can treat it mostly like more complex
> version of fork(), i.e. pass NULL and 0 for the stack and stack_size
> parameters.
> 
> So I would start by adding the kernel version of the clone3() syscall,
> the structure, and the V0 structure size into the lapi header and use
> that for a basic testcases.

Okay, so you are suggesting here to create a separate
testcases/kernel/syscalls/clone3 directory for the tests ? That makes
sense as a user may want to test both clone and clone3 on a platform
for a given kernel version.

-- 
viresh


More information about the ltp mailing list