This can be used for architectures implementing dynamic ftrace via -fpatchable-function-entry.
Unified · Split
| @@ -112,6 +112,8 @@ struct ftrace_likely_data { · 111 unmodified lines | |||
| 112 | 112 | ||
| 113 | #if defined(CC_USING_HOTPATCH) | 113 | #if defined(CC_USING_HOTPATCH) |
| 114 | #define notrace __attribute__((hotpatch(0, 0))) | 114 | #define notrace __attribute__((hotpatch(0, 0))) |
| 115 | #elif defined(CC_USING_PATCHABLE_FUNCTION_ENTRY) | ||
| 116 | #define notrace __attribute__((patchable_function_entry(0, 0))) | ||
| 115 | #else | 117 | #else |
| 116 | #define notrace __attribute__((__no_instrument_function__)) | 118 | #define notrace __attribute__((__no_instrument_function__)) |
| 117 | #endif | 119 | #endif |