From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] {get|set}_thread_area issue on ARM
Date: Mon, 7 Dec 2015 10:25:03 +0100 [thread overview]
Message-ID: <20151207092503.GA11996@rei.lan> (raw)
In-Reply-To: <20151204034711.GA27222@yury-N73SV>
Hi!
> I just tried build ltp for arm, and one (maybe, first of) test failed
> build. Namely, set_thread_area01.c
>
> The reason is that __NR_set_thread_area and __NR_get_thread_area are
> not declared. They should come from
> /usr/arm-linux-gnueabi/include/asm/unistd.h
> But there's only:
> [...]
> #define __NR_remap_file_pages (__NR_SYSCALL_BASE+253)
> /* for set_thread_area */
> /* for get_thread_area */
> #define __NR_set_tid_address (__NR_SYSCALL_BASE+256)
> [...]
>
> In kernel, there are stubs for corresponding syscall numbers. So it
> looks like this pair is deprecated and unsupported. I can build ltp
> for aarch64 and x84_64 just fine.
>
> Could someone explain me what am I doing wrong?
LTP contains stub syscall definitions for cases when certain
syscall is not supported by given arch. What is the exact error that
causes the build failure? I had a look at the test source code and the
only thing that could be an issue is that there would be duplicate case
in switch() statement since on aarch64 both __NR_set_thread_area and
__NR_get_thread_area would be defined to -1 (which means not implemented
in LTP).
--
Cyril Hrubis
chrubis@suse.cz
next prev parent reply other threads:[~2015-12-07 9:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-04 3:47 [LTP] {get|set}_thread_area issue on ARM Yury Norov
2015-12-04 9:20 ` Jan Stancek
2015-12-04 13:02 ` Yury Norov
2015-12-04 13:19 ` Jan Stancek
2015-12-04 15:20 ` Yury Norov
2015-12-07 9:25 ` Cyril Hrubis [this message]
2015-12-07 9:54 ` Cyril Hrubis
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=20151207092503.GA11996@rei.lan \
--to=chrubis@suse.cz \
--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