[PATCH 00/26] Various misc tests and additional checks
Eugene Syromyatnikov
evgsyr at gmail.com
Mon Oct 24 02:59:38 UTC 2016
Hello.
This patchset adds some minor decoder tests, amend existing decoder
tests with additional checks and provides some minor fixes.
* New tests: init_module, finit_module, delete_module, fanotify_init,
setns, unshare, oldfstat, oldlstat, oldstat, kexec_load,
kexec_file_load.
* Additional checks: fonotify_mark, capset, capget, stat family,
name_to_handle_at, open_by_handle_at.
* Another changes: create_module decoder removed; keyctl test build
warning fix; minor fixes in decoders.
Eugene Syromyatnikov (26):
Remove parser of create_module syscall
xlat: Add values for MODULE_INIT_* constants
bjm: Use getarg_ull for retrieving len parameter of init_module
syscall
tests: Add checks for {init,finit,delete}_module syscall decoders
tests: use sprintrc in tests/fanotify_mark.c
tests: Some additional checks for fanotify_mark
tests: Add fanotify_init syscall decoding check
tests: Additional capset decoder checks
tests: Check non-verbose capget/capset output
clone: Use separate xlat for nstype parameter of setns syscall
tests: Add setns syscall decoding check
tests: Additional tests for stat decoder
tests: Add old*stat checks
clone: Use separate flag list for unshare
clone: Use kernel_ulong_t as type of flags parameter of unshare call
tests: Add unshare syscall decoding check
kexec: Add printing of struct kexec_segment field names
kexec: Fix zeroing of higher bits of flags parameter in kexec_load
defs: Add widen_to_ulong macro
kexec: Use widen_to_ulong since kexec_load has compat on x32/n32
tests: Add kexec checks
bjm: Parse parameters of init_module as of kernel_ulong_t type
file_handle: Use separate xlat for name_ta_handle_at flags
tests: Proper type conversion in keyctl test
tests: Require only presence of __NR_* macros for file_handle test
tests: Additional name_to_handle_at/open_by_handle_at checks
bjm.c | 17 +--
clone.c | 6 +-
defs.h | 15 +-
file_handle.c | 7 +-
kexec.c | 17 +--
linux/dummy.h | 1 +
tests/.gitignore | 12 ++
tests/Makefile.am | 26 ++++
tests/caps-abbrev.awk | 52 +++++++
tests/caps-abbrev.c | 1 +
tests/caps-abbrev.test | 11 ++
tests/caps.awk | 16 ++-
tests/caps.c | 28 +++-
tests/delete_module.c | 118 ++++++++++++++++
tests/delete_module.test | 6 +
tests/fanotify_init.c | 68 +++++++++
tests/fanotify_init.test | 6 +
tests/fanotify_mark.c | 139 ++++++++++++++++++-
tests/fanotify_mark.test | 2 +-
tests/file_handle.c | 293 +++++++++++++++++++++++++++++++++++++--
tests/finit_module.c | 124 +++++++++++++++++
tests/finit_module.test | 6 +
tests/fstat.test | 2 +-
tests/fstatat.c | 10 +-
tests/fstatx.c | 11 +-
tests/init_delete_module.h | 37 +++++
tests/init_module.c | 113 +++++++++++++++
tests/init_module.test | 6 +
tests/kexec_file_load.c | 129 +++++++++++++++++
tests/kexec_file_load.test | 6 +
tests/kexec_load.c | 178 ++++++++++++++++++++++++
tests/kexec_load.test | 6 +
tests/keyctl.c | 3 +-
tests/lstatx.c | 10 +-
tests/oldfstat.c | 47 +++++++
tests/oldfstat.test | 19 +++
tests/oldlstat.c | 47 +++++++
tests/oldlstat.test | 5 +
tests/oldstat.c | 47 +++++++
tests/oldstat.test | 5 +
tests/setns.c | 75 ++++++++++
tests/setns.test | 6 +
tests/statx.sh | 2 +-
tests/unshare.c | 82 +++++++++++
tests/unshare.test | 6 +
tests/xstatx.c | 67 +++++++--
util.c | 11 +-
xlat/module_init_flags.in | 4 +-
xlat/name_to_handle_at_flags.in | 2 +
xlat/setns_types.in | 8 ++
xlat/unshare_flags.in | 13 ++
51 files changed, 1849 insertions(+), 79 deletions(-)
create mode 100644 tests/caps-abbrev.awk
create mode 100644 tests/caps-abbrev.c
create mode 100755 tests/caps-abbrev.test
create mode 100644 tests/delete_module.c
create mode 100755 tests/delete_module.test
create mode 100644 tests/fanotify_init.c
create mode 100755 tests/fanotify_init.test
create mode 100644 tests/finit_module.c
create mode 100755 tests/finit_module.test
create mode 100644 tests/init_delete_module.h
create mode 100644 tests/init_module.c
create mode 100755 tests/init_module.test
create mode 100644 tests/kexec_file_load.c
create mode 100755 tests/kexec_file_load.test
create mode 100644 tests/kexec_load.c
create mode 100755 tests/kexec_load.test
create mode 100644 tests/oldfstat.c
create mode 100755 tests/oldfstat.test
create mode 100644 tests/oldlstat.c
create mode 100755 tests/oldlstat.test
create mode 100644 tests/oldstat.c
create mode 100755 tests/oldstat.test
create mode 100644 tests/setns.c
create mode 100755 tests/setns.test
create mode 100644 tests/unshare.c
create mode 100755 tests/unshare.test
create mode 100644 xlat/name_to_handle_at_flags.in
create mode 100644 xlat/setns_types.in
create mode 100644 xlat/unshare_flags.in
--
1.7.10.4
More information about the Strace-devel
mailing list