[LTP] [PATCH] clone10: add support archs
Petr Vorel
pvorel@suse.cz
Thu Jan 22 13:31:54 CET 2026
Hi Li, Jan,
> On Thu, Jan 22, 2026 at 11:26 AM Li Wang via ltp <ltp@lists.linux.it> wrote:
> > Signed-off-by: Li Wang <liwang@redhat.com>
> > ---
> > testcases/kernel/syscalls/clone/clone10.c | 6 ++++++
> > 1 file changed, 6 insertions(+)
> > diff --git a/testcases/kernel/syscalls/clone/clone10.c b/testcases/kernel/syscalls/clone/clone10.c
> > index a52ac3568..9ffb49c37 100644
> > --- a/testcases/kernel/syscalls/clone/clone10.c
> > +++ b/testcases/kernel/syscalls/clone/clone10.c
> > @@ -91,4 +91,10 @@ static struct tst_test test = {
> > .cleanup = cleanup,
> > .needs_checkpoints = 1,
> > .test_all = verify_tls,
> > + .supported_archs = (const char *const []) {
> > + "x86_64",
> > + "aarch64",
> > + "s390x",
> > + NULL
> > + }
> > };
> Acked-by: Jan Stancek <jstancek@redhat.com>
LGTM. Indeed only these 3 archs don't TCONF.
Acked-by: Petr Vorel <pvorel@suse.cz>
Out of curiosity, where is the support defined in kernel?
"if (clone_flags & CLONE_SETTLS)" is in many archs:
$ git grep CLONE_SETTLS
...
arch/loongarch/kernel/process.c:220: if (clone_flags & CLONE_SETTLS)
arch/m68k/kernel/process.c:179: if (clone_flags & CLONE_SETTLS)
arch/microblaze/kernel/process.c:110: if (clone_flags & CLONE_SETTLS)
arch/mips/kernel/process.c:171: if (clone_flags & CLONE_SETTLS)
arch/nios2/kernel/process.c:143: if (clone_flags & CLONE_SETTLS)
arch/openrisc/kernel/process.c:199: * For CLONE_SETTLS set "tp" (r10) to the TLS pointer.
arch/openrisc/kernel/process.c:201: if (clone_flags & CLONE_SETTLS)
arch/parisc/kernel/process.c:251: if (clone_flags & CLONE_SETTLS)
arch/powerpc/kernel/process.c:1819: if (clone_flags & CLONE_SETTLS) {
Kind regards,
Petr
More information about the ltp
mailing list