Commit 2809b392 authored by Sven Schnelle's avatar Sven Schnelle Committed by Helge Deller
Browse files

compiler.h: add CC_USING_PATCHABLE_FUNCTION_ENTRY



This can be used for architectures implementing dynamic
ftrace via -fpatchable-function-entry.

Signed-off-by: default avatarSven Schnelle <svens@stackframe.org>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 6183d68b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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