From: Cyril Hrubis <chrubis@suse.cz>
To: Andrea Cervesato <andrea.cervesato@suse.de>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH 2/8] Refactor mmap10 test
Date: Mon, 24 Feb 2025 17:46:08 +0100 [thread overview]
Message-ID: <Z7yiUCEMtgIT6lV9@yuki.lan> (raw)
In-Reply-To: <20250207-mmap_suite_refactoring-v1-2-d006d921e4d5@suse.com>
Hi!
> #ifdef HAVE_DECL_MADV_MERGEABLE
> if (opt_ksm) {
> - if (madvise(x, SIZE + SIZE - ps, MADV_MERGEABLE) == -1)
> - tst_brkm(TBROK | TERRNO, cleanup, "madvise");
> + if (madvise(memory, SIZE + SIZE - page_sz, MADV_MERGEABLE) == -1)
> + tst_brk(TBROK | TERRNO, "madvise error");
We do have MADV_MERGEABLE in lapi/mmap.h I suppose that we can get rid
of the ifdefs as the kernel functionality was included in 2.6.32 which
is way older than anything we support now.
> +static struct tst_test test = {
> + .test_all = run,
> + .setup = setup,
> + .needs_root = 1,
> + .forks_child = 1,
> + .options = (struct tst_option[]) {
> + {"a", &opt_anon, "Test anonymous pages"},
> + {"s", &opt_ksm, "Add to KSM regions"},
> + {}
Can we get rid of these options too?
I do not see a reason why this cannot implement four different testcases
and that are executed in a row.
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2025-02-24 16:46 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-07 14:50 [LTP] [PATCH 0/8] Cleanup the mmap testing suite Andrea Cervesato
2025-02-07 14:50 ` [LTP] [PATCH 1/8] Refactor mmap03 test Andrea Cervesato
2025-02-24 16:34 ` Cyril Hrubis
2025-02-27 14:27 ` Petr Vorel
2025-02-28 9:12 ` Andrea Cervesato via ltp
2025-02-07 14:50 ` [LTP] [PATCH 2/8] Refactor mmap10 test Andrea Cervesato
2025-02-09 14:54 ` Ricardo B. Marlière
2025-02-24 16:46 ` Cyril Hrubis [this message]
2025-02-07 14:50 ` [LTP] [PATCH 3/8] Cleanup mmap12 test Andrea Cervesato
2025-02-07 14:50 ` [LTP] [PATCH 4/8] Cleanup mmap17 test Andrea Cervesato
2025-02-07 14:50 ` [LTP] [PATCH 5/8] Cleanup mmap18 test Andrea Cervesato
2025-02-07 14:50 ` [LTP] [PATCH 6/8] Cleanup mmap19 test Andrea Cervesato
2025-02-07 14:50 ` [LTP] [PATCH 7/8] Cleanup mmap20 test Andrea Cervesato
2025-02-07 14:50 ` [LTP] [PATCH 8/8] Refactor mmap001 test and move it to mmap21 Andrea Cervesato
2025-02-09 14:55 ` Ricardo B. Marlière
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=Z7yiUCEMtgIT6lV9@yuki.lan \
--to=chrubis@suse.cz \
--cc=andrea.cervesato@suse.de \
--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