From: Richard Palethorpe <rpalethorpe@suse.de>
To: Andrea Cervesato <andrea.cervesato@suse.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v1] Add more madvise testcases in madvise01
Date: Mon, 17 Oct 2022 09:13:24 +0100 [thread overview]
Message-ID: <87a65uq34j.fsf@suse.de> (raw)
In-Reply-To: <20220824080638.23012-1-andrea.cervesato@suse.com>
Merged, thanks!
Andrea Cervesato via ltp <ltp@lists.linux.it> writes:
> Added MADV_COLD and MADV_PAGEOUT madvise modes and created two new
> testcases in madvise01 for them. Supported by kernel >= 5.4.
>
> Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
> ---
> include/lapi/mmap.h | 8 ++++++++
> testcases/kernel/syscalls/madvise/madvise01.c | 2 ++
> 2 files changed, 10 insertions(+)
>
> diff --git a/include/lapi/mmap.h b/include/lapi/mmap.h
> index 12845b76e..49108338b 100644
> --- a/include/lapi/mmap.h
> +++ b/include/lapi/mmap.h
> @@ -66,6 +66,14 @@
> # define MADV_KEEPONFORK 19
> #endif
>
> +#ifndef MADV_COLD
> +# define MADV_COLD 20
> +#endif
> +
> +#ifndef MADV_PAGEOUT
> +# define MADV_PAGEOUT 21
> +#endif
> +
> #ifndef MAP_FIXED_NOREPLACE
>
> #ifdef __alpha__
> diff --git a/testcases/kernel/syscalls/madvise/madvise01.c b/testcases/kernel/syscalls/madvise/madvise01.c
> index de5daf34a..ec64a1db3 100644
> --- a/testcases/kernel/syscalls/madvise/madvise01.c
> +++ b/testcases/kernel/syscalls/madvise/madvise01.c
> @@ -55,6 +55,8 @@ static struct tcase {
> {MADV_FREE, "MADV_FREE", &amem}, /* since Linux 4.5 */
> {MADV_WIPEONFORK, "MADV_WIPEONFORK", &amem}, /* since Linux 4.14 */
> {MADV_KEEPONFORK, "MADV_KEEPONFORK", &amem}, /* since Linux 4.14 */
> + {MADV_COLD, "MADV_COLD", &amem}, /* since Linux 5.4 */
> + {MADV_PAGEOUT, "MADV_PAGEOUT", &amem}, /* since Linux 5.4 */
>
> };
>
> --
> 2.35.3
--
Thank you,
Richard.
--
Mailing list info: https://lists.linux.it/listinfo/ltp
prev parent reply other threads:[~2022-10-17 8:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-24 8:06 [LTP] [PATCH v1] Add more madvise testcases in madvise01 Andrea Cervesato via ltp
2022-10-06 11:53 ` Petr Vorel
2022-10-17 8:13 ` Richard Palethorpe [this message]
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=87a65uq34j.fsf@suse.de \
--to=rpalethorpe@suse.de \
--cc=andrea.cervesato@suse.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.