mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 05:24:39 +01: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:
parent
6183d68b8b
commit
2809b392a6
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue