]> git.ipfire.org Git - thirdparty/linux.git/commit
ftrace: Fix address for jmp mode in t_show()
authorMenglong Dong <menglong8.dong@gmail.com>
Wed, 17 Dec 2025 03:00:53 +0000 (11:00 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 17 Dec 2025 22:53:59 +0000 (17:53 -0500)
commit39263f986da55c5b7bc328c757fe378a6a41799d
tree88a789ef9b33cf961be711d0170ffa012cc0275b
parent74bf97e9a8b6443ba2119dc884940e9364c91bde
ftrace: Fix address for jmp mode in t_show()

The address from ftrace_find_rec_direct() is printed directly in t_show().
This can mislead symbol offsets if it has the "jmp" bit in the last bit.

Fix this by printing the address that returned by ftrace_jmp_get().

Link: https://patch.msgid.link/20251217030053.80343-1-dongml2@chinatelecom.cn
Fixes: 25e4e3565d45 ("ftrace: Introduce FTRACE_OPS_FL_JMP")
Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/ftrace.c