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>
Showing
- Documentation/livepatch/callbacks.txt 5 additions, 484 deletionsDocumentation/livepatch/callbacks.txt
- MAINTAINERS 1 addition, 0 deletionsMAINTAINERS
- lib/Kconfig.debug 21 additions, 1 deletionlib/Kconfig.debug
- lib/Makefile 2 additions, 0 deletionslib/Makefile
- lib/livepatch/Makefile 15 additions, 0 deletionslib/livepatch/Makefile
- lib/livepatch/test_klp_atomic_replace.c 57 additions, 0 deletionslib/livepatch/test_klp_atomic_replace.c
- lib/livepatch/test_klp_callbacks_busy.c 43 additions, 0 deletionslib/livepatch/test_klp_callbacks_busy.c
- lib/livepatch/test_klp_callbacks_demo.c 121 additions, 0 deletionslib/livepatch/test_klp_callbacks_demo.c
- lib/livepatch/test_klp_callbacks_demo2.c 93 additions, 0 deletionslib/livepatch/test_klp_callbacks_demo2.c
- lib/livepatch/test_klp_callbacks_mod.c 24 additions, 0 deletionslib/livepatch/test_klp_callbacks_mod.c
- lib/livepatch/test_klp_livepatch.c 51 additions, 0 deletionslib/livepatch/test_klp_livepatch.c
- lib/livepatch/test_klp_shadow_vars.c 236 additions, 0 deletionslib/livepatch/test_klp_shadow_vars.c
- tools/testing/selftests/Makefile 1 addition, 0 deletionstools/testing/selftests/Makefile
- tools/testing/selftests/livepatch/Makefile 8 additions, 0 deletionstools/testing/selftests/livepatch/Makefile
- tools/testing/selftests/livepatch/README 43 additions, 0 deletionstools/testing/selftests/livepatch/README
- tools/testing/selftests/livepatch/config 1 addition, 0 deletionstools/testing/selftests/livepatch/config
- tools/testing/selftests/livepatch/functions.sh 203 additions, 0 deletionstools/testing/selftests/livepatch/functions.sh
- tools/testing/selftests/livepatch/test-callbacks.sh 587 additions, 0 deletionstools/testing/selftests/livepatch/test-callbacks.sh
- tools/testing/selftests/livepatch/test-livepatch.sh 168 additions, 0 deletionstools/testing/selftests/livepatch/test-livepatch.sh
- tools/testing/selftests/livepatch/test-shadow-vars.sh 60 additions, 0 deletionstools/testing/selftests/livepatch/test-shadow-vars.sh
Loading
Please register or sign in to comment