]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcd6a72af2897348319b922700a6aaec0b2dec9ec
tree0581d741b853bd61bdb0a7b53ca92bda9c32b47f
parent4a36ddb10a4a85bb61ba4b03cbf7d7e8d7fbe3ba
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]