[LTP] [PATCH v3 0/5] cachestat testing suite

Andrea Cervesato andrea.cervesato@suse.de
Mon Jul 22 16:28:39 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 v3:
- include stdlib.h when free() is used
- add cachestat04 test looping on all file descriptors
- Link to v2: https://lore.kernel.org/r/20240715-cachestat-v2-0-55817ad1a408@suse.com

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 (5):
      Add cachestat fallback definitions
      Add cachestat01 test
      Add cachestat02 test
      Add cachestat03 test
      Add cachestat04 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                                  |   5 +
 testcases/kernel/syscalls/cachestat/.gitignore    |   4 +
 testcases/kernel/syscalls/cachestat/Makefile      |  10 ++
 testcases/kernel/syscalls/cachestat/cachestat.h   |  27 ++++++
 testcases/kernel/syscalls/cachestat/cachestat01.c | 106 ++++++++++++++++++++++
 testcases/kernel/syscalls/cachestat/cachestat02.c |  90 ++++++++++++++++++
 testcases/kernel/syscalls/cachestat/cachestat03.c |  80 ++++++++++++++++
 testcases/kernel/syscalls/cachestat/cachestat04.c |  58 ++++++++++++
 28 files changed, 446 insertions(+)
---
base-commit: 2433c503a6657273da895e36adda73942452c482
change-id: 20240515-cachestat-11fc82af07ec

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



More information about the ltp mailing list