[LTP] [PATCH v2 0/4] cachestat testing suite

Andrea Cervesato andrea.cervesato@suse.de
Mon Jul 15 14:18:31 CEST 2024


This suite is adding covergae for the cachestat() syscall which is
providing support for reading the file cache status and it has been
added in the kernel 6.5.

There's not a man page yet, so please consider the following link as
documentation:
https://lwn.net/Articles/917059/

---
Changes in v2:
- cachestat01: run test on multiple test pages
- remove cachestat01A
- cachestat02: run test on multiple test pages
- add new cachestat03 test

Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>

---
Andrea Cervesato (4):
      Add cachestat fallback definitions
      Add cachestat01 test
      Add cachestat02 test
      Add cachestat03 test

 configure.ac                                      |   4 +
 include/lapi/mman.h                               |  44 +++++++++
 include/lapi/syscalls/aarch64.in                  |   1 +
 include/lapi/syscalls/arc.in                      |   1 +
 include/lapi/syscalls/arm.in                      |   1 +
 include/lapi/syscalls/hppa.in                     |   1 +
 include/lapi/syscalls/i386.in                     |   1 +
 include/lapi/syscalls/ia64.in                     |   1 +
 include/lapi/syscalls/loongarch.in                |   1 +
 include/lapi/syscalls/mips_n32.in                 |   1 +
 include/lapi/syscalls/mips_n64.in                 |   1 +
 include/lapi/syscalls/mips_o32.in                 |   1 +
 include/lapi/syscalls/powerpc.in                  |   1 +
 include/lapi/syscalls/powerpc64.in                |   1 +
 include/lapi/syscalls/s390.in                     |   1 +
 include/lapi/syscalls/s390x.in                    |   1 +
 include/lapi/syscalls/sh.in                       |   1 +
 include/lapi/syscalls/sparc.in                    |   1 +
 include/lapi/syscalls/sparc64.in                  |   1 +
 include/lapi/syscalls/x86_64.in                   |   1 +
 runtest/syscalls                                  |   4 +
 testcases/kernel/syscalls/cachestat/.gitignore    |   3 +
 testcases/kernel/syscalls/cachestat/Makefile      |  10 +++
 testcases/kernel/syscalls/cachestat/cachestat.h   |  27 ++++++
 testcases/kernel/syscalls/cachestat/cachestat01.c | 105 ++++++++++++++++++++++
 testcases/kernel/syscalls/cachestat/cachestat02.c |  89 ++++++++++++++++++
 testcases/kernel/syscalls/cachestat/cachestat03.c |  80 +++++++++++++++++
 27 files changed, 384 insertions(+)
---
base-commit: 87c632c8bfbb772efde047e83e72c215bfeb1aba
change-id: 20240515-cachestat-11fc82af07ec

Best regards,
-- 
Andrea Cervesato <andrea.cervesato@suse.com>



More information about the ltp mailing list