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
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#else117#else
116#define notrace __attribute__((__no_instrument_function__))118#define notrace __attribute__((__no_instrument_function__))
117#endif119#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