mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
ANDROID: Disable CFI on trace hooks
Disable CFI on trace hooks, as this improves some lmbench microbenchmarks by as much as 12%. Bug: 200542217 Change-Id: I6ad1d12047c4e69743ff94cf0ea8f70f5023c7da Signed-off-by: Shaleen Agrawal <shalagra@codeaurora.org>
This commit is contained in:
parent
38532a9f24
commit
de7ca5e752
|
|
@ -235,7 +235,7 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)
|
||||||
extern int __traceiter_##name(data_proto); \
|
extern int __traceiter_##name(data_proto); \
|
||||||
DECLARE_STATIC_CALL(tp_func_##name, __traceiter_##name); \
|
DECLARE_STATIC_CALL(tp_func_##name, __traceiter_##name); \
|
||||||
extern struct tracepoint __tracepoint_##name; \
|
extern struct tracepoint __tracepoint_##name; \
|
||||||
static inline void trace_##name(proto) \
|
static inline void __nocfi trace_##name(proto) \
|
||||||
{ \
|
{ \
|
||||||
if (static_key_false(&__tracepoint_##name.key)) \
|
if (static_key_false(&__tracepoint_##name.key)) \
|
||||||
__DO_TRACE(name, \
|
__DO_TRACE(name, \
|
||||||
|
|
@ -300,7 +300,7 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)
|
||||||
.unregfunc = _unreg, \
|
.unregfunc = _unreg, \
|
||||||
.funcs = NULL }; \
|
.funcs = NULL }; \
|
||||||
__TRACEPOINT_ENTRY(_name); \
|
__TRACEPOINT_ENTRY(_name); \
|
||||||
int __traceiter_##_name(void *__data, proto) \
|
int __nocfi __traceiter_##_name(void *__data, proto) \
|
||||||
{ \
|
{ \
|
||||||
struct tracepoint_func *it_func_ptr; \
|
struct tracepoint_func *it_func_ptr; \
|
||||||
void *it_func; \
|
void *it_func; \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user