diff options
author | Michael Vetter <mvetter@suse.com> | 2024-10-17 22:01:31 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2024-10-22 17:13:11 +0200 |
commit | 59766286b6e54f8ad334dcef7d2e743b7550df0e (patch) | |
tree | eb98479ec72253fc8d7890e214c969abdd5ed47a /arch/x86/kernel/acpi/cppc.c | |
parent | 637c730998b8f440dc5d0c6bae254fbf19143ea4 (diff) |
selftests: livepatch: save and restore kprobe state
Save the state of /sys/kernel/debug/kprobes/enabled
during setup_config() and restore it during cleanup().
This is in preparation for a future commit that will add a test
that should confirm that we cannot livepatch a kprobed function
if that kprobe has a post handler.
Signed-off-by: Michael Vetter <mvetter@suse.com>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Reviewed-by: Joe Lawrence <joe.lawrence@redhat.com>
Tested-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Reviewed-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Tested-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20241017200132.21946-3-mvetter@suse.com
[pmladek@suse.com: Added few more substitutions in test-syscall.sh]
Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'arch/x86/kernel/acpi/cppc.c')
0 files changed, 0 insertions, 0 deletions