Re: [PATCH RFC net-next] trace: tcp: Add tracepoint for tcp_cwnd_reduction()
From: Steven Rostedt <rostedt@goodmis.org>
Date: 2025-01-20 15:03:44
Also in:
lkml, netdev
From: Steven Rostedt <rostedt@goodmis.org>
Date: 2025-01-20 15:03:44
Also in:
lkml, netdev
On Mon, 20 Jan 2025 05:20:05 -0800 Breno Leitao [off-list ref] wrote:
This patch enhances the API's stability by introducing a guaranteed hook point, allowing the compiler to make changes without disrupting the BPF program's functionality.
Instead of using a TRACE_EVENT() macro, you can use DECLARE_TRACE() which will create the tracepoint in the kernel, but will not create a trace event that is exported to the tracefs file system. Then BPF could hook to it and it will still not be exposed as an user space API. You can see its use in include/trace/events/sched.h -- Steve