aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSong Liu <songliubraving@fb.com>2017-10-23 09:20:23 -0700
committerDavid S. Miller <davem@davemloft.net>2017-10-24 01:21:25 +0100
commit7344e29f285a94b965075599731811c352f3ab40 (patch)
tree27df50998a931017db9727559f49ac5f06111a7c /include
parenttcp: add trace event class tcp_event_sk_skb (diff)
downloadlinux-dev-7344e29f285a94b965075599731811c352f3ab40.tar.xz
linux-dev-7344e29f285a94b965075599731811c352f3ab40.zip
tcp: mark trace event arguments sk and skb as const
Some functions that we plan to add trace points require const sk and/or skb. So we mark these fields as const in the tracepoint. Signed-off-by: Song Liu <songliubraving@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/trace/events/tcp.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/trace/events/tcp.h b/include/trace/events/tcp.h
index 14b0a7083f1d..2b6fe72c6781 100644
--- a/include/trace/events/tcp.h
+++ b/include/trace/events/tcp.h
@@ -17,13 +17,13 @@
*/
DECLARE_EVENT_CLASS(tcp_event_sk_skb,
- TP_PROTO(struct sock *sk, struct sk_buff *skb),
+ TP_PROTO(const struct sock *sk, const struct sk_buff *skb),
TP_ARGS(sk, skb),
TP_STRUCT__entry(
- __field(void *, skbaddr)
- __field(void *, skaddr)
+ __field(const void *, skbaddr)
+ __field(const void *, skaddr)
__field(__u16, sport)
__field(__u16, dport)
__array(__u8, saddr, 4)
@@ -72,7 +72,7 @@ DECLARE_EVENT_CLASS(tcp_event_sk_skb,
DEFINE_EVENT(tcp_event_sk_skb, tcp_retransmit_skb,
- TP_PROTO(struct sock *sk, struct sk_buff *skb),
+ TP_PROTO(const struct sock *sk, const struct sk_buff *skb),
TP_ARGS(sk, skb)
);