summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMasami Hiramatsu (Google) <mhiramat@kernel.org>2025-01-29 00:29:48 +0900
committerAlexander Gordeev <agordeev@linux.ibm.com>2025-01-29 15:12:40 +0100
commitb999589956dd3ae096b7d67b6fee4e9989a2e430 (patch)
treed5571da3a8b661a6f67cadf558e5fc5d56f31db9 /arch
parent95a05bf552adcb665af57b2958506a4395ab2f5e (diff)
downloadlinux-b999589956dd3ae096b7d67b6fee4e9989a2e430.tar.gz
linux-b999589956dd3ae096b7d67b6fee4e9989a2e430.tar.bz2
linux-b999589956dd3ae096b7d67b6fee4e9989a2e430.zip
s390/tracing: Define ftrace_get_symaddr() for s390
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> Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Link: https://lore.kernel.org/r/173807818869.1854334.15474589105952793986.stgit@devnote2 Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/s390/include/asm/ftrace.h1
1 files changed, 1 insertions, 0 deletions
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>