aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/compiler_types.h
diff options
context:
space:
mode:
authorSven Schnelle <svens@stackframe.org>2019-06-05 22:32:21 +0200
committerHelge Deller <deller@gmx.de>2019-06-08 12:56:28 +0200
commit2809b392a62ae307da058a52d451b2fc3ce4de7e (patch)
tree6b55211dd682fc962a84c7a19281a7d8318d0ec0 /include/linux/compiler_types.h
parentparisc: use pr_debug() in kernel/module.c (diff)
downloadwireguard-linux-2809b392a62ae307da058a52d451b2fc3ce4de7e.tar.xz
wireguard-linux-2809b392a62ae307da058a52d451b2fc3ce4de7e.zip
compiler.h: add CC_USING_PATCHABLE_FUNCTION_ENTRY
This can be used for architectures implementing dynamic ftrace via -fpatchable-function-entry. Signed-off-by: Sven Schnelle <svens@stackframe.org> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'include/linux/compiler_types.h')
-rw-r--r--include/linux/compiler_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h
index 19e58b9138a0..095d55c3834d 100644
--- a/include/linux/compiler_types.h
+++ b/include/linux/compiler_types.h
@@ -112,6 +112,8 @@ struct ftrace_likely_data {
#if defined(CC_USING_HOTPATCH)
#define notrace __attribute__((hotpatch(0, 0)))
+#elif defined(CC_USING_PATCHABLE_FUNCTION_ENTRY)
+#define notrace __attribute__((patchable_function_entry(0, 0)))
#else
#define notrace __attribute__((__no_instrument_function__))
#endif