Hugetlb:Migrating the libhugetlbfs tests
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 posting 2/27 patches 5 repliesIn review
- v4 posting 2/27 patches 7 repliesSuperseded
- v3 posting 2/27 patches 1 replySuperseded
Earlier versions · 8
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v8 Latest | 4 patches | 4 replies | In review | |
| v7 | 4 patches | 5 replies | Superseded | |
| v6 | 4 patches | 6 replies | Superseded | |
| v5 posting 1/2 | 4 patches | 4 replies | Superseded | |
| v4 posting 1/2 | 4 patches | 0 replies | Superseded | |
| v3 posting 1/2 | 4 patches | 11 replies | Superseded | |
| v2 | 3 patches | 7 replies | Superseded | |
| v1 | 3 patches | 0 replies | Superseded |
Changes in v8 from the cover letter
1. Updated the check for mmu_type for powerpc in PATCH[2/4].
2. Removed leftover in test description.
Patches in v8 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | Hugetlb: Add new tst_test options for hugeltb test supportinclude/ include/ lib/ | +46 | 0 replies | |
| 2/4 | Hugetlb: Migrating libhugetlbfs brk_near_hugeruntest/ testcases/ testcases/ +1 more | +137 | 1 reply | |
| 3/4 | Hugetlb: Migrating libhugetlbfs chunk-overcommitruntest/ testcases/ testcases/ | +146 | 1 reply | |
| 4/4 | Hugetlb: Migrating libhugetlbfs corrupt-by-cow-optruntest/ testcases/ testcases/ | +81 | 1 reply |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Li Wang | Cyril Hrubis |
|---|---|---|
| 1/4 | R-b | R-b |
| 2/4 | R-b | |
| 3/4 | R-b | |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [LTP] [PATCH v8 0/4] Hugetlb:Migrating the libhugetlbfs tests
Hi,
Libhugetlbfs is not being maintained actively, and some distro is dropping support for it. There are some tests that are good for testing hugetlb functionality in kernel.
As per previous dicussion in RFC[1], Here, this patch series consists of hugetlb tests taken from libhugetlbfs modified to work in ltp environment.
Based on suggestion[2], I am reposting the patches again. Also, I added suggested changes at [3].
ref:
1:https://lore.kernel.org/all/[email protected]/ 2:https://lore.kernel.org/all/[email protected]/ 3:https://lore.kernel.org/all/[email protected]/
v1 -> v2
1. In (brk near huge) test [PATCH 1/3] removed unused library function test_addr_huge() and read_maps().
v2 -> v3
1. Added a new patch commit for two new flags "needs_hugetlbfs" & "needs_unlinked_hugetlb_file" in tst_test and modified tests to use these flags.
2. Added taint check in test [PATCH 1/3].
3. Removed redundant Hopt and nr_opt option.
4. Corrected pre-processor ARCH based conditional flags in test [PATCH 1/3]
v3 -> v4
1. Removed the needs_unlinked_hugetlb_file option in PATCH[1/4].
2. Removed the redundant saved_oc_hugepages checks in PATCH[3/4].
3. Updated the mntpoint checks in PATCH[1/4].
v4 -> v5
1. Removed the needs_hugetlbfs check from needs_tmpdir function, because mntpoint is now mandatory option with needs_hugetlbfs. (PATCH[1/4])
v5 -> v6
1. Edited the comment for needs_hugetlbfs PATCH[1/4].
2. Changed TCID to tid and removed __func__ from tst_brk PATCH[1/4].
3. Removed SAFE_UMOUNT in do_cleanup PATCH[1/4].
4. Added the ARCH definition in Makefile PATCH[2/4].
5. Removed ALIGN and use LTP_ALIGN PATCH[2/4].
v6 -> v7
1. Removed ppc32 check from makefile, and checked for ppc32 system at runtime in PATCH[2/4]
2. Updated the test description in PATCH[2,3,4/4].
3. Defined macros for Hugepage related strings.
v7 -> v8
1. Updated the check for mmu_type for powerpc in PATCH[2/4].
2. Removed leftover in test description.
Tarun Sahu (4):
Hugetlb: Add new tst_test options for hugeltb test support
Hugetlb: Migrating libhugetlbfs brk_near_huge
Hugetlb: Migrating libhugetlbfs chunk-overcommit
Hugetlb: Migrating libhugetlbfs corrupt-by-cow-opt
include/tst_hugepage.h | 7 + include/tst_test.h | 10 ++ lib/tst_test.c | 32 +++- runtest/hugetlb | 3 + testcases/kernel/mem/.gitignore | 3 + .../kernel/mem/hugetlb/hugemmap/hugemmap07.c | 133 ++++++++++++++++ .../kernel/mem/hugetlb/hugemmap/hugemmap08.c | 144 ++++++++++++++++++ .../kernel/mem/hugetlb/hugemmap/hugemmap09.c | 79 ++++++++++ testcases/kernel/mem/hugetlb/lib/hugetlb.h | 2 + 9 files changed, 410 insertions(+), 3 deletions(-) create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap07.c create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap08.c create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap09.c
Signature · 5 lines
2.31.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp