@@ -248,7 +248,7 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)
248
248
#define __DECLARE_TRACE_RCU (name , proto , args , cond ) \
249
249
static inline void trace_##name##_rcuidle(proto) \
250
250
{ \
251
- if (static_key_false (&__tracepoint_##name.key)) \
251
+ if (static_branch_unlikely (&__tracepoint_##name.key)) \
252
252
__DO_TRACE(name, \
253
253
TP_ARGS(args), \
254
254
TP_CONDITION(cond), 1); \
@@ -274,7 +274,7 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)
274
274
extern struct tracepoint __tracepoint_##name; \
275
275
static inline void trace_##name(proto) \
276
276
{ \
277
- if (static_key_false (&__tracepoint_##name.key)) \
277
+ if (static_branch_unlikely (&__tracepoint_##name.key)) \
278
278
__DO_TRACE(name, \
279
279
TP_ARGS(args), \
280
280
TP_CONDITION(cond), 0); \
@@ -311,7 +311,7 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)
311
311
static inline bool \
312
312
trace_##name##_enabled(void) \
313
313
{ \
314
- return static_key_false (&__tracepoint_##name.key); \
314
+ return static_branch_unlikely (&__tracepoint_##name.key);\
315
315
}
316
316
317
317
/*
@@ -328,7 +328,7 @@ static inline struct tracepoint *tracepoint_ptr_deref(tracepoint_ptr_t *p)
328
328
struct tracepoint __tracepoint_##_name __used \
329
329
__section("__tracepoints") = { \
330
330
.name = __tpstrtab_##_name, \
331
- .key = STATIC_KEY_INIT_FALSE , \
331
+ .key = STATIC_KEY_FALSE_INIT , \
332
332
.static_call_key = &STATIC_CALL_KEY(tp_func_##_name), \
333
333
.static_call_tramp = STATIC_CALL_TRAMP_ADDR(tp_func_##_name), \
334
334
.iterator = &__traceiter_##_name, \
0 commit comments