Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Breno Leitao and committed by
Jakub Kicinski
1df4a945 2b905deb

+1 -1
+1 -1
include/trace/events/tcp.h
··· 293 293 294 294 TRACE_EVENT(tcp_probe, 295 295 296 - TP_PROTO(struct sock *sk, struct sk_buff *skb), 296 + TP_PROTO(struct sock *sk, const struct sk_buff *skb), 297 297 298 298 TP_ARGS(sk, skb), 299 299