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>
This commit is contained in:
parent
6183d68b8b
commit
2809b392a6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue