aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/tracepoint-defs.h
diff options
context:
space:
mode:
authorJosh Poimboeuf <jpoimboe@kernel.org>2024-10-08 12:17:19 -0700
committerSteven Rostedt (Google) <rostedt@goodmis.org>2024-10-08 21:17:39 -0400
commit4a8840af5f53f2902eba91130fae650879f18e7a (patch)
treee7cbdc43532ea4e737977dc56df7aa983bffcb5c /include/linux/tracepoint-defs.h
parenttracing: Remove TRACE_EVENT_FL_FILTERED logic (diff)
downloadwireguard-linux-4a8840af5f53f2902eba91130fae650879f18e7a.tar.xz
wireguard-linux-4a8840af5f53f2902eba91130fae650879f18e7a.zip
tracepoints: Use new static branch API
The old static key API is deprecated. Switch to the new one. Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Alice Ryhl <aliceryhl@google.com> Link: https://lore.kernel.org/7a08dae3c5eddb14b13864923c1b58ac1f4af83c.1728414936.git.jpoimboe@kernel.org Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/tracepoint-defs.h')
-rw-r--r--include/linux/tracepoint-defs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/tracepoint-defs.h b/include/linux/tracepoint-defs.h
index 4dc4955f0fbf..60a6e8314d4c 100644
--- a/include/linux/tracepoint-defs.h
+++ b/include/linux/tracepoint-defs.h
@@ -31,7 +31,7 @@ struct tracepoint_func {
struct tracepoint {
const char *name; /* Tracepoint name */
- struct static_key key;
+ struct static_key_false key;
struct static_call_key *static_call_key;
void *static_call_tramp;
void *iterator;
@@ -83,7 +83,7 @@ struct bpf_raw_event_map {
#ifdef CONFIG_TRACEPOINTS
# define tracepoint_enabled(tp) \
- static_key_false(&(__tracepoint_##tp).key)
+ static_branch_unlikely(&(__tracepoint_##tp).key)
#else
# define tracepoint_enabled(tracepoint) false
#endif