[LTP] [PATCH 0/4] enhance .save_restore to support set value

Li Wang liwang@redhat.com
Tue Mar 8 08:37:05 CET 2022


This makes .save_restore to support set expected value after
saving the knob's original to be possible, the main change
is convert the NULL-terminated string to struct tst_path_val.

And the rest part is preparing and cleanup work.

Li Wang (4):
  lib: move struct tst_sys_conf to internal
  lib: enhance .save_restore to support set expected value
  testcase: switch to the new .save_restore
  ksm: cleanup work and make use of .save_restore

 doc/c-test-api.txt                            | 16 +++----
 include/tst_sys_conf.h                        |  8 ++--
 include/tst_test.h                            |  2 +-
 lib/newlib_tests/test19.c                     | 14 +++----
 lib/newlib_tests/test20.c                     | 10 ++---
 lib/tst_sys_conf.c                            | 19 +++++++++
 lib/tst_test.c                                |  9 ++--
 testcases/cve/icmp_rate_limit01.c             |  4 +-
 testcases/kernel/containers/userns/userns08.c |  4 +-
 testcases/kernel/mem/ksm/ksm01.c              | 42 +++++++------------
 testcases/kernel/mem/ksm/ksm02.c              | 29 ++++---------
 testcases/kernel/mem/ksm/ksm03.c              | 29 ++++---------
 testcases/kernel/mem/ksm/ksm04.c              | 28 ++++---------
 testcases/kernel/mem/ksm/ksm05.c              | 29 ++++---------
 testcases/kernel/mem/ksm/ksm06.c              | 10 ++---
 testcases/kernel/mem/ksm/ksm_common.h         |  2 -
 testcases/kernel/syscalls/add_key/add_key05.c | 16 ++-----
 testcases/kernel/syscalls/bind/bind06.c       |  4 +-
 testcases/kernel/syscalls/madvise/madvise08.c |  4 +-
 .../syscalls/migrate_pages/migrate_pages02.c  |  5 +--
 testcases/kernel/syscalls/sendto/sendto03.c   |  4 +-
 .../kernel/syscalls/setsockopt/setsockopt05.c |  4 +-
 .../kernel/syscalls/setsockopt/setsockopt06.c |  4 +-
 .../kernel/syscalls/setsockopt/setsockopt07.c |  4 +-
 .../kernel/syscalls/setsockopt/setsockopt08.c |  4 +-
 .../kernel/syscalls/setsockopt/setsockopt09.c |  4 +-
 26 files changed, 130 insertions(+), 178 deletions(-)

-- 
2.31.1



More information about the ltp mailing list