selftests/livepatch: Test interaction with ftrace_enabled
authorJoe Lawrence <joe.lawrence@redhat.com>
Wed, 16 Oct 2019 11:33:15 +0000 (13:33 +0200)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 4 Nov 2019 14:33:16 +0000 (09:33 -0500)
commit8c666d2ab5762280cb5ef43df4decb2a25450d54
tree0581d741b853bd61bdb0a7b53ca92bda9c32b47f
parent35c9e74cff4c798d0a07830d0d483e6ebe70352f
selftests/livepatch: Test interaction with ftrace_enabled

Since livepatching depends upon ftrace handlers to implement "patched"
code functionality, verify that the ftrace_enabled sysctl value
interacts with livepatch registration as expected.  At the same time,
ensure that ftrace_enabled is set and part of the test environment
configuration that is saved and restored when running the selftests.

Link: http://lkml.kernel.org/r/20191016113316.13415-4-mbenes@suse.cz
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
tools/testing/selftests/livepatch/Makefile
tools/testing/selftests/livepatch/functions.sh
tools/testing/selftests/livepatch/test-ftrace.sh [new file with mode: 0755]