@@ -109,6 +109,13 @@ DEFINE_EVENT(tcp_event_sk_skb, tcp_retransmit_skb,
TP_ARGS(sk, skb)
);
+DEFINE_EVENT(tcp_event_sk_skb, tcp_v4_rcv,
+
+ TP_PROTO(const struct sock *sk, const struct sk_buff *skb),
+
+ TP_ARGS(sk, skb)
+);
+
/*
* skb of trace_tcp_send_reset is the skb that caused RST. In case of
* active reset, skb should be NULL
@@ -2093,6 +2093,8 @@ int tcp_v4_rcv(struct sk_buff *skb)
bh_unlock_sock(sk);
if (skb_to_free)
__kfree_skb(skb_to_free);
+ if (!ret)
+ trace_tcp_v4_rcv(sk, skb);
put_and_return:
if (refcounted)