On Sun, 05 Jul 2026 07:19:20 +0800
Eugene Mavick <[email protected]> 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

Reply via email to