diff mbox series

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

Message ID 173807818869.1854334.15474589105952793986.stgit@devnote2 (mailing list archive)
State Not Applicable
Headers show
Series tracing: s390: Fix fprobes on s390 | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Masami Hiramatsu (Google) Jan. 28, 2025, 3:29 p.m. UTC
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 mbox series

Patch

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>