Skip to content

Commit 1df4a94

Browse files
leitaokuba-moo
authored andcommitted
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 <[email protected]> Reviewed-by: Kuniyuki Iwashima <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 2b905de commit 1df4a94

File tree

1 file changed

+1
-1
lines changed
  • include/trace/events

1 file changed

+1
-1
lines changed

include/trace/events/tcp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ DECLARE_TRACE(tcp_cwnd_reduction_tp,
293293

294294
TRACE_EVENT(tcp_probe,
295295

296-
TP_PROTO(struct sock *sk, struct sk_buff *skb),
296+
TP_PROTO(struct sock *sk, const struct sk_buff *skb),
297297

298298
TP_ARGS(sk, skb),
299299

0 commit comments

Comments
 (0)