diff options
| author | Breno Leitao <leitao@debian.org> | 2025-04-16 10:06:12 -0700 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-04-17 19:04:43 -0700 |
| commit | 1df4a945444f071a9c5e09580a485919c42d4de5 (patch) | |
| tree | 17e401353f5203e954ab87d00c0c9c41a0d918c1 /include/trace | |
| parent | 2b905deb43ea0b67fa8448fc9c15dacb068f45b6 (diff) | |
| download | net-1df4a945444f071a9c5e09580a485919c42d4de5.tar.gz | |
trace: tcp: Add const qualifier to skb parameter in tcp_probe event
Change the tcp_probe tracepoint to accept a const struct sk_buff
parameter instead of a non-const one. This improves type safety and
better reflects that the skb is not modified within the tracepoint
implementation.
Signed-off-by: Breno Leitao <leitao@debian.org>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250416-tcp_probe-v1-1-1edc3c5a1cb8@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/trace')
| -rw-r--r-- | include/trace/events/tcp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/events/tcp.h b/include/trace/events/tcp.h index 75d3d53a3832c8..53e878fa14d14e 100644 --- a/include/trace/events/tcp.h +++ b/include/trace/events/tcp.h @@ -293,7 +293,7 @@ DECLARE_TRACE(tcp_cwnd_reduction_tp, TRACE_EVENT(tcp_probe, - TP_PROTO(struct sock *sk, struct sk_buff *skb), + TP_PROTO(struct sock *sk, const struct sk_buff *skb), TP_ARGS(sk, skb), |
