Commit 7d1e9e12 authored by George Guo's avatar George Guo
Browse files

selftests/livepatch: fix selftest execution error

kylin inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IB7CZ5



---------------------------------------------------------------------------

The selftest scripts fails with the following error:
$ sudo ./test-callbacks.sh
TEST: target module before livepatch ... not ok
$ sudo ./test-ftrace.sh
TEST: livepatch interaction with ftrace_enabled sysctl ... not ok
$ sudo ./test-livepatch.sh
TEST: basic function patching ... not ok
$ sudo ./test-state.sh
TEST: system state modification ... not ok
$ sudo ./test-syscall.sh
TEST: patch getpid syscall while being heavily hammered ... not ok
$ sudo ./test-sysfs.sh
TEST: sysfs test ... not ok

Fixes: 601dd19c ("livepatch/core: Reuse common codes in the solution without ftrace")

Signed-off-by: default avatarGeorge Guo <guodongtai@kylinos.cn>
parent 3152ab40
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0-only
obj-$(CONFIG_LIVEPATCH) += livepatch.o

obj-$(CONFIG_LIVEPATCH_FTRACE) += patch.o shadow.o state.o transition.o
ifeq ($(CONFIG_LIVEPATCH_FTRACE), y)
livepatch-objs := core.o patch.o shadow.o state.o transition.o
else
livepatch-objs := core.o
endif