Thread (8 messages) 8 messages, 2 authors, 9d ago

Re: [PATCH 1/4] tracing: add ref_trace_final_put tracepoint

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2026-07-06 13:36:52
Also in: linux-mm, lkml

On Sun, 05 Jul 2026 07:19:20 +0800
Eugene Mavick [off-list ref] wrote:
+#ifdef CONFIG_TRACEPOINTS
+/* Wrapper function implemented in lib/ref_trace.c */
+extern void do_ref_trace_final_put(unsigned long caller, const char *fn, const void *obj);
+
+#define trace_ref_final_put(obj)						\
+	do {									\
+		if (tracepoint_enabled(ref_trace_final_put))			\
+			do_ref_trace_final_put(_RET_IP_, __func__, obj);	\
+	} while (0)
+

Also, you may want to make the macro called do_trace_ref_final_put(), to
show that it is not a tracepoint (which all start with "trace_").

-- Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help