[LTP] [PATCH 00/29] Hugetlb: Migrating libhugetlbfs tests

Tarun Sahu tsahu@linux.ibm.com
Sun Oct 16 14:57:02 CEST 2022


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. This series do not include all the tests, I
will post another series for the remaining tests soon.

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

Tarun Sahu (29):
  Hugetlb: Migrating libhugetlbfs brk_near_huge
  Hugetlb: Migrating libhugetlbfs chunk-overcommit
  Hugetlb: Migrating libhugetlbfs corrupt-by-cow-opt
  Hugetlb: Migrating libhugetlbfs counters
  Hugetlb: Migrating libhugetlbfs directio
  Hugetlb: Migrating libhugetlbfs fadvise_reserve
  Hugetlb: Migrating libhugetlbfs fallocate_align
  Hugetlb: Migrating libhugetlbfs fallocate_basic
  Hugetlb: Migrating libhugetlbfs fork-cow
  Hugetlb: Migrating libhugetlbfs huge_at_4GB_normal_below
  Hugetlb: Migrating libhugetlbfs huge_below_4GB_normal_above
  Hugetlb: Migrating libhugetlbfs icache-hygiene
  Hugetlb: Migrating libhugetlbfs madvise_reserve
  Hugetlb: Migrating libhugetlbfs map_high_truncate_2
  Hugetlb: Migrating libhugetlbfs misalign
  Hugetlb: Migrating libhugetlbfs misaligned_offset
  Hugetlb: Migrating libhugetlbfs mlock
  Hugetlb: Migrating libhugetlbfs mmap-cow
  Hugetlb: Migrating libhugetlbfs mmap-gettest
  Hugetlb: Migrating libhugetlbfs mprotect
  Hugetlb: Migrating libhugetlbfs mremap-fixed-huge-near-normal
  Hugetlb: Migrating libhugetlbfs mremap-fixed-normal-near-huge
  Hugetlb: Migrating libhugetlbfs noresv-reserve-resv-page
  Hugetlb: Migrating libhugetlbfs noresv-regarded-as-resv
  Hugetlb: Migrating libhugetlbfs private
  Hugetlb: Migrating libhugetlbfs readahead_reserve
  Hugetlb: Migrating libhugetlbfs readback
  Hugetlb: Migrating libhugetlbfs shared
  Hugetlb: Migrating libhugetlbfs shm-fork

 runtest/hugetlb                               |  31 ++
 testcases/kernel/mem/.gitignore               |  29 ++
 .../kernel/mem/hugetlb/hugefallocate/Makefile |  10 +
 .../hugetlb/hugefallocate/hugefallocate01.c   | 187 +++++++
 .../hugetlb/hugefallocate/hugefallocate02.c   | 116 +++++
 .../kernel/mem/hugetlb/hugefork/Makefile      |  10 +
 .../kernel/mem/hugetlb/hugefork/hugefork01.c  | 220 ++++++++
 .../kernel/mem/hugetlb/hugefork/hugefork02.c  | 196 ++++++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap07.c  | 163 ++++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap08.c  | 173 +++++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap09.c  | 102 ++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap10.c  | 475 ++++++++++++++++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap11.c  | 111 ++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap12.c  | 114 +++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap13.c  | 160 ++++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap14.c  | 204 ++++++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap15.c  | 250 +++++++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap16.c  | 112 +++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap17.c  | 126 +++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap18.c  | 173 +++++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap19.c  | 166 ++++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap20.c  | 108 ++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap21.c  | 222 ++++++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap22.c  | 170 +++++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap23.c  | 283 +++++++++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap25.c  | 168 +++++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap26.c  | 148 ++++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap27.c  | 166 ++++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap28.c  | 107 ++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap29.c  | 129 +++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap30.c  | 120 +++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap31.c  |  98 ++++
 .../kernel/mem/hugetlb/hugemmap/hugemmap32.c  | 104 ++++
 testcases/kernel/mem/hugetlb/lib/hugetlb.c    |  75 +++
 testcases/kernel/mem/hugetlb/lib/hugetlb.h    |   5 +
 35 files changed, 5031 insertions(+)
 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/hugefork/Makefile
 create mode 100644 testcases/kernel/mem/hugetlb/hugefork/hugefork01.c
 create mode 100644 testcases/kernel/mem/hugetlb/hugefork/hugefork02.c
 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
 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
 create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap13.c
 create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap14.c
 create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap15.c
 create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap16.c
 create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap17.c
 create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap18.c
 create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap19.c
 create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap20.c
 create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap21.c
 create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap22.c
 create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap23.c
 create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap25.c
 create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap26.c
 create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap27.c
 create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap28.c
 create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap29.c
 create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap30.c
 create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap31.c
 create mode 100644 testcases/kernel/mem/hugetlb/hugemmap/hugemmap32.c

-- 
2.31.1



More information about the ltp mailing list