]> Gentwo Git Trees - linux/.git/commit
selftests: livepatch: use canonical ftrace path
authorFushuai Wang <wangfushuai@baidu.com>
Fri, 10 Oct 2025 12:07:27 +0000 (20:07 +0800)
committerPetr Mladek <pmladek@suse.com>
Wed, 15 Oct 2025 12:50:46 +0000 (14:50 +0200)
commit5cb5575308bce9d63178fe943bf89c520a348808
tree00280a1d5730a0cf675c53551fb21bbd71135a34
parent139560e8b973402140cafeb68c656c1374bd4c20
selftests: livepatch: use canonical ftrace path

Since v4.1 kernel, a new interface for ftrace called "tracefs" was
introduced, which is usually mounted in /sys/kernel/tracing. Therefore,
tracing files can now be accessed via either the legacy path
/sys/kernel/debug/tracing or the newer path /sys/kernel/tracing.

Signed-off-by: Fushuai Wang <wangfushuai@baidu.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Tested-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
tools/testing/selftests/livepatch/functions.sh