History

compiler.h: add CC_USING_PATCHABLE_FUNCTION_ENTRY

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

Sven Schnelle committed 7 years ago

Commit 2809b391 parent 6183d681 file · +2 −0Browse files

Unified · Split

include/linux/compiler_types.h+2−0
@@ -112,6 +112,8 @@ struct ftrace_likely_data { · 111 unmodified lines
112112
113113 #if defined(CC_USING_HOTPATCH)
114114 #define notrace __attribute__((hotpatch(0, 0)))
115+#elif defined(CC_USING_PATCHABLE_FUNCTION_ENTRY)
116+#define notrace __attribute__((patchable_function_entry(0, 0)))
115117 #else
116118 #define notrace __attribute__((__no_instrument_function__))
117119 #endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t