Re: [PATCH net-next] udp: Add tracepoint for udp_sendmsg()
From: Willem de Bruijn
Date: Wed Apr 16 2025 - 15:34:50 EST
Breno Leitao wrote:
> Add a lightweight tracepoint to monitor UDP send message operations,
> similar to the recently introduced tcp_sendmsg_locked() trace event in
> commit 0f08335ade712 ("trace: tcp: Add tracepoint for
> tcp_sendmsg_locked()")
>
> This implementation uses DECLARE_TRACE instead of TRACE_EVENT to avoid
> creating extensive trace event infrastructure and exporting to tracefs,
> keeping it minimal and efficient.
>
> Since this patch creates a rawtracepoint, it can be accessed using
> standard tracing tools like bpftrace:
>
> rawtracepoint:udp_sendmsg_tp {
> ...
> }
What does this enable beyond kfunc:udp_sendmsg?
The arguments are the same, unlike the TCP tracepoint.