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

From: Steven Rostedt

Date: Mon Jul 06 2026 - 10:22:03 EST


On Sun, 05 Jul 2026 07:19:20 +0800
Eugene Mavick <m@xxxxxxxxxx> 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