mirror of
https://github.com/torvalds/linux.git
synced 2026-02-04 15:28:49 +08:00
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:
committed by
Helge Deller
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
|
||||
|
||||
Reference in New Issue
Block a user