selftests/livepatch: introduce tests
authorJoe Lawrence <joe.lawrence@redhat.com>
Wed, 9 Jan 2019 12:43:29 +0000 (13:43 +0100)
committerJiri Kosina <jkosina@suse.cz>
Fri, 11 Jan 2019 19:51:24 +0000 (20:51 +0100)
commita2818ee4dce575b299d8a7f46b393bc2b02ef1f4
tree0f616177ebf9e8d2f00023f8db89a89374e65c94
parentd67a53720966f2ef5be5c8f238d13512b8260868
selftests/livepatch: introduce tests

Add a few livepatch modules and simple target modules that the included
regression suite can run tests against:

  - basic livepatching (multiple patches, atomic replace)
  - pre/post (un)patch callbacks
  - shadow variable API

Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Tested-by: Miroslav Benes <mbenes@suse.cz>
Tested-by: Alice Ferrazzi <alice.ferrazzi@gmail.com>
Acked-by: Joe Lawrence <joe.lawrence@redhat.com>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
20 files changed:
Documentation/livepatch/callbacks.txt
MAINTAINERS
lib/Kconfig.debug
lib/Makefile
lib/livepatch/Makefile [new file with mode: 0644]
lib/livepatch/test_klp_atomic_replace.c [new file with mode: 0644]
lib/livepatch/test_klp_callbacks_busy.c [new file with mode: 0644]
lib/livepatch/test_klp_callbacks_demo.c [new file with mode: 0644]
lib/livepatch/test_klp_callbacks_demo2.c [new file with mode: 0644]
lib/livepatch/test_klp_callbacks_mod.c [new file with mode: 0644]
lib/livepatch/test_klp_livepatch.c [new file with mode: 0644]
lib/livepatch/test_klp_shadow_vars.c [new file with mode: 0644]
tools/testing/selftests/Makefile
tools/testing/selftests/livepatch/Makefile [new file with mode: 0644]
tools/testing/selftests/livepatch/README [new file with mode: 0644]
tools/testing/selftests/livepatch/config [new file with mode: 0644]
tools/testing/selftests/livepatch/functions.sh [new file with mode: 0644]
tools/testing/selftests/livepatch/test-callbacks.sh [new file with mode: 0755]
tools/testing/selftests/livepatch/test-livepatch.sh [new file with mode: 0755]
tools/testing/selftests/livepatch/test-shadow-vars.sh [new file with mode: 0755]