Thread (5 messages) 5 messages, 3 authors, 2025-01-29
STALE496d LANDED

[PATCH 2/2] s390: tracing: Define ftrace_get_symaddr() for s390

From: "Masami Hiramatsu (Google)" <mhiramat@kernel.org>
Date: 2025-01-28 15:29:54
Also in: bpf, linux-s390, lkml
Subsystem: function hooks (ftrace), s390 architecture, the rest · Maintainers: Steven Rostedt, Masami Hiramatsu, Heiko Carstens, Vasily Gorbik, Alexander Gordeev, Linus Torvalds

From: Masami Hiramatsu (Google) <mhiramat@kernel.org>

Add ftrace_get_symaddr() for s390, which returns the symbol address
from ftrace's 'ip' parameter.

Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
---
 arch/s390/include/asm/ftrace.h |    1 +
 1 file changed, 1 insertion(+)
diff --git a/arch/s390/include/asm/ftrace.h b/arch/s390/include/asm/ftrace.h
index a3b73a4f626e..185331e91f83 100644
--- a/arch/s390/include/asm/ftrace.h
+++ b/arch/s390/include/asm/ftrace.h
@@ -51,6 +51,7 @@ static inline unsigned long ftrace_call_adjust(unsigned long addr)
 {
 	return addr;
 }
+#define ftrace_get_symaddr(fentry_ip) ((unsigned long)(fentry_ip))
 
 #include <linux/ftrace_regs.h>
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help