--- zzzz-none-000/linux-4.19.183/include/trace/events/tcp.h 2021-03-24 10:07:39.000000000 +0000 +++ bcm63-7530ax-756/linux-4.19.183/include/trace/events/tcp.h 2023-06-28 08:54:20.000000000 +0000 @@ -10,6 +10,9 @@ #include #include #include +#if defined(CONFIG_BCM_KF_MPTCP) && defined(CONFIG_BCM_MPTCP) +#include +#endif #include #define TP_STORE_V4MAPPED(__entry, saddr, daddr) \ @@ -178,6 +181,15 @@ TP_ARGS(sk) ); +#if defined(CONFIG_BCM_KF_MPTCP) && defined(CONFIG_BCM_MPTCP) +DEFINE_EVENT(tcp_event_sk_skb, mptcp_retransmit, + + TP_PROTO(const struct sock *sk, const struct sk_buff *skb), + + TP_ARGS(sk, skb) +); + +#endif TRACE_EVENT(tcp_retransmit_synack, TP_PROTO(const struct sock *sk, const struct request_sock *req), @@ -245,6 +257,9 @@ __field(__u32, srtt) __field(__u32, rcv_wnd) __field(__u64, sock_cookie) +#if defined(CONFIG_BCM_KF_MPTCP) && defined(CONFIG_BCM_MPTCP) + __field(__u8, mptcp) +#endif ), TP_fast_assign( @@ -271,13 +286,25 @@ __entry->ssthresh = tcp_current_ssthresh(sk); __entry->srtt = tp->srtt_us >> 3; __entry->sock_cookie = sock_gen_cookie(sk); +#if defined(CONFIG_BCM_KF_MPTCP) && defined(CONFIG_BCM_MPTCP) + __entry->mptcp = mptcp(tp) ? tp->mptcp->path_index : 0; +#endif ), +#if !defined(CONFIG_BCM_KF_MPTCP) || !defined(CONFIG_BCM_MPTCP) TP_printk("src=%pISpc dest=%pISpc mark=%#x data_len=%d snd_nxt=%#x snd_una=%#x snd_cwnd=%u ssthresh=%u snd_wnd=%u srtt=%u rcv_wnd=%u sock_cookie=%llx", +#else + TP_printk("src=%pISpc dest=%pISpc mark=%#x data_len=%d snd_nxt=%#x snd_una=%#x snd_cwnd=%u ssthresh=%u snd_wnd=%u srtt=%u rcv_wnd=%u sock_cookie=%llx mptcp=%d", +#endif __entry->saddr, __entry->daddr, __entry->mark, __entry->data_len, __entry->snd_nxt, __entry->snd_una, __entry->snd_cwnd, __entry->ssthresh, __entry->snd_wnd, +#if !defined(CONFIG_BCM_KF_MPTCP) || !defined(CONFIG_BCM_MPTCP) __entry->srtt, __entry->rcv_wnd, __entry->sock_cookie) +#else + __entry->srtt, __entry->rcv_wnd, __entry->sock_cookie, + __entry->mptcp) +#endif ); #endif /* _TRACE_TCP_H */