[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20241125112812.281018-1-dongtai.guo@linux.dev>
Date: Mon, 25 Nov 2024 19:28:11 +0800
From: George Guo <dongtai.guo@...ux.dev>
To: jpoimboe@...nel.org,
jikos@...nel.org,
mbenes@...e.cz,
pmladek@...e.com,
joe.lawrence@...hat.com,
shuah@...nel.org
Cc: live-patching@...r.kernel.org,
linux-kselftest@...r.kernel.org,
linux-kernel@...r.kernel.org,
George Guo <guodongtai@...inos.cn>
Subject: [PATCH livepatch/master v1 1/2] selftests/livepatch: Replace hardcoded path with variable in test-syscall.sh
From: George Guo <guodongtai@...inos.cn>
Updated test-syscall.sh to replace the path
/sys/kernel/test_klp_syscall/npids with a variable $MOD_SYSCALL.
Signed-off-by: George Guo <guodongtai@...inos.cn>
---
tools/testing/selftests/livepatch/test-syscall.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/livepatch/test-syscall.sh b/tools/testing/selftests/livepatch/test-syscall.sh
index b76a881d4..9cfa17b6b 100755
--- a/tools/testing/selftests/livepatch/test-syscall.sh
+++ b/tools/testing/selftests/livepatch/test-syscall.sh
@@ -24,9 +24,9 @@ pid_list=$(echo ${pids[@]} | tr ' ' ',')
load_lp $MOD_SYSCALL klp_pids=$pid_list
# wait for all tasks to transition to patched state
-loop_until 'grep -q '^0$' /sys/kernel/test_klp_syscall/npids'
+loop_until 'grep -q '^0$' /sys/kernel/$MOD_SYSCALL/npids'
-pending_pids=$(cat /sys/kernel/test_klp_syscall/npids)
+pending_pids=$(cat /sys/kernel/$MOD_SYSCALL/npids)
log "$MOD_SYSCALL: Remaining not livepatched processes: $pending_pids"
for pid in ${pids[@]}; do
--
2.43.0
Powered by blists - more mailing lists