[LTP] [PATCH v3 0/7] Hugetlb:Migrating the libhugetlbfs tests

Tarun Sahu
2022-11-15T07:09:28Z

Hi,
This patch series is in continuation to first part [1]
This series include 5 more tests taken from libhugetlbfs.

ref:
1. https://lore.kernel.org/all/20221104162511.28658-1-tsahu@linux.ibm.com/

v1 -> v2
1. Fixed comments
v2 -> v3
1. Changed from setjmp/longjmp logic to check/return logic in
hugemmap10.c
2. Added a new patch to create support for custom flags in
tst_creat_unlinked api.
3. Added patch to add safe macros for posix_fadvise call.
4. Updated coding asthetics.
5. Added description along with the line of failure in hugemmap10.c

Tarun Sahu (7):
Hugetlb: Add new argument flags in tst_creat_unlinked
Hugetlb: Migrating libhugetlbfs counters
Hugetlb: Migrating libhugetlbfs directio
Hugetlb: Safe macro for posix_fadvise call
Hugetlb: Migrating libhugetlbfs fadvise_reserve
Hugetlb: Migrating libhugetlbfs fallocate_align
Hugetlb: Migrating libhugetlbfs fallocate_basic

include/tst_safe_macros.h | 17 +
include/tst_test.h | 2 +-
lib/tst_test.c | 22 +-
runtest/hugetlb | 6 +
testcases/kernel/mem/.gitignore | 5 +
.../kernel/mem/hugetlb/hugefallocate/Makefile | 10 +
.../hugetlb/hugefallocate/hugefallocate01.c | 169 +++++++
.../hugetlb/hugefallocate/hugefallocate02.c | 90 ++++
.../kernel/mem/hugetlb/hugemmap/hugemmap07.c | 2 +-
.../kernel/mem/hugetlb/hugemmap/hugemmap08.c | 2 +-
.../kernel/mem/hugetlb/hugemmap/hugemmap09.c | 2 +-
.../kernel/mem/hugetlb/hugemmap/hugemmap10.c | 462 ++++++++++++++++++
.../kernel/mem/hugetlb/hugemmap/hugemmap11.c | 87 ++++
.../kernel/mem/hugetlb/hugemmap/hugemmap12.c | 84 ++++
14 files changed, 951 insertions(+), 9 deletions(-)
create mode 100644 testcases/kernel/mem/hugetlb/hugefallocate/Makefile
create mode 100644 testcases/kernel/mem/hugetlb/hugefallocate/hugefallocate01.c
create mode 100644 testcases/kernel/mem/hugetlb/hugefallocate/hugefallocate02.c
create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap10.c
create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap11.c
create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap12.c