From: Petr Vorel <pvorel@suse.cz>
To: Li Wang <liwang@redhat.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] clone10: add support archs
Date: Thu, 22 Jan 2026 14:06:34 +0100 [thread overview]
Message-ID: <20260122130634.GA71214@pevik> (raw)
In-Reply-To: <CAEemH2c8+X85Ac-oPtsOND=OW=YHvx1R_TNctTThfskKhgOP9Q@mail.gmail.com>
> Petr Vorel <pvorel@suse.cz> wrote:
> > > 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:
> Not based on this, the clone10.c test was written and gets tested
> only on the known archs (x86_64, s390x, aarch64) by now.
> And in case that other archs (not tested) have different behavior like i386,
> so we are limited to the know/tested archs.
> If we can get another arch to verified we can add it to the
> .supported_archs as well.
> $ cat -n ltp/include/lapi/tls.h
> ...
> 53 static inline void init_tls(void)
> 54 {
> 55 #if defined(__x86_64__) || defined(__aarch64__) || defined(__s390x__)
> 56 tls_ptr = allocate_tls_area();
> 57 #else
> ...
include/lapi/tls.h
static inline void init_tls(void)
{
#if defined(__x86_64__) || defined(__aarch64__) || defined(__s390x__)
tls_ptr = allocate_tls_area();
#else
tst_brk(TCONF, "Unsupported architecture for TLS");
#endif
I see. First IMHO the message in include/lapi/tls.h is pretty misleading. It
does not look to me as a test limitation, but as a missing arch support in
kernel. IMHO the message should have been something like:
tst_brk(TCONF, "Test not supported only architecture");
(i.e. to mention "test")
Also having arch listed in the test and also in tls.h is redundant.
IMHO it should be only on a single place.
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-01-22 13:07 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-22 10:26 [LTP] [PATCH] clone10: add support archs Li Wang via ltp
2026-01-22 10:41 ` Jan Stancek via ltp
2026-01-22 12:28 ` Wei Gao via ltp
2026-01-22 12:31 ` Petr Vorel
2026-01-22 12:47 ` Li Wang via ltp
2026-01-22 13:06 ` Petr Vorel [this message]
2026-01-22 14:16 ` Li Wang via ltp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260122130634.GA71214@pevik \
--to=pvorel@suse.cz \
--cc=liwang@redhat.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox