From: Cyril Hrubis <chrubis@suse.cz>
To: Li Wang <liwang@redhat.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v4 2/3] testcase: make use of .supported_archs
Date: Tue, 9 Nov 2021 17:23:33 +0100 [thread overview]
Message-ID: <YYqghWs62gwfQZqR@yuki> (raw)
In-Reply-To: <20211109130910.1583233-2-liwang@redhat.com>
Hi!
> static void run(void)
> @@ -58,6 +50,11 @@ static void run(void)
> register long mode __asm__("r3");
> register long node_mask_ptr __asm__("r4");
> register long node_mask_sz __asm__("r5");
> +#else
> + static const int sys_num = 276;
> + static const int mode;
> + static const int node_mask_ptr = UINT_MAX;
> + static const int node_mask_sz = UINT_MAX;
These shouldn't be static anymore.
> #endif
> char stack_pattern[0x400];
>
> @@ -78,7 +75,8 @@ static void run(void)
> :
> "memory", "cr0", "r6", "r7", "r8", "r9", "r10", "r11", "r12");
> sys_ret = mode;
> -#else /* __i386__ */
> +#endif
> +#ifdef __i386__
> asm volatile (
> "add $0x400, %%esp\n\t"
> "int $0x80\n\t"
> @@ -114,15 +112,14 @@ static void run(void)
>
> static struct tst_test test = {
> .test_all = run,
> + .supported_archs = (const char *const []) {
> + "i386",
> + "ppc",
And we should add "ppc64" here as well, right?
> + NULL
> + },
> .tags = (const struct tst_tag[]) {
> {"linux-git", "cf01fb9985e8"},
> {"CVE", "CVE-2017-7616"},
> {}
> }
> };
Other than these two:
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2021-11-09 16:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-09 13:09 [LTP] [PATCH v4 1/3] lib: adding .supported_archs field in tst_test structure Li Wang
2021-11-09 13:09 ` [LTP] [PATCH v4 2/3] testcase: make use of .supported_archs Li Wang
2021-11-09 16:23 ` Cyril Hrubis [this message]
2021-11-16 10:27 ` Richard Palethorpe
2021-11-09 13:09 ` [LTP] [PATCH v4 3/3] max_map_count: replace ifdefs by tst_arch Li Wang
2021-11-09 16:24 ` Cyril Hrubis
2021-11-09 16:11 ` [LTP] [PATCH v4 1/3] lib: adding .supported_archs field in tst_test structure Cyril Hrubis
2021-11-12 6:41 ` Li Wang
2021-11-16 10:30 ` Richard Palethorpe
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=YYqghWs62gwfQZqR@yuki \
--to=chrubis@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