Skip to content

Commit 2809b39

Browse files
Sven Schnellehdeller
authored andcommitted
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>
1 parent 6183d68 commit 2809b39

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎include/linux/compiler_types.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ struct ftrace_likely_data {
112112

113113
#if defined(CC_USING_HOTPATCH)
114114
#define notrace __attribute__((hotpatch(0, 0)))
115+
#elif defined(CC_USING_PATCHABLE_FUNCTION_ENTRY)
116+
#define notrace __attribute__((patchable_function_entry(0, 0)))
115117
#else
116118
#define notrace __attribute__((__no_instrument_function__))
117119
#endif

0 commit comments

Comments
 (0)