Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #undef TRACE_SYSTEM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define TRACE_SYSTEM sctp
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) #if !defined(_TRACE_SCTP_H) || defined(TRACE_HEADER_MULTI_READ)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) #define _TRACE_SCTP_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) #include <net/sctp/structs.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #include <linux/tracepoint.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) TRACE_EVENT(sctp_probe_path,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	TP_PROTO(struct sctp_transport *sp,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 		 const struct sctp_association *asoc),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	TP_ARGS(sp, asoc),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 		__field(__u64, asoc)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 		__field(__u32, primary)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 		__array(__u8, ipaddr, sizeof(union sctp_addr))
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 		__field(__u32, state)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 		__field(__u32, cwnd)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 		__field(__u32, ssthresh)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 		__field(__u32, flight_size)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 		__field(__u32, partial_bytes_acked)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 		__field(__u32, pathmtu)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 		__entry->asoc = (unsigned long)asoc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 		__entry->primary = (sp == asoc->peer.primary_path);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 		memcpy(__entry->ipaddr, &sp->ipaddr, sizeof(union sctp_addr));
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 		__entry->state = sp->state;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 		__entry->cwnd = sp->cwnd;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 		__entry->ssthresh = sp->ssthresh;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 		__entry->flight_size = sp->flight_size;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 		__entry->partial_bytes_acked = sp->partial_bytes_acked;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 		__entry->pathmtu = sp->pathmtu;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 	TP_printk("asoc=%#llx%s ipaddr=%pISpc state=%u cwnd=%u ssthresh=%u "
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 		  "flight_size=%u partial_bytes_acked=%u pathmtu=%u",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 		  __entry->asoc, __entry->primary ? "(*)" : "",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 		  __entry->ipaddr, __entry->state, __entry->cwnd,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 		  __entry->ssthresh, __entry->flight_size,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 		  __entry->partial_bytes_acked, __entry->pathmtu)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) TRACE_EVENT(sctp_probe,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) 	TP_PROTO(const struct sctp_endpoint *ep,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) 		 const struct sctp_association *asoc,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) 		 struct sctp_chunk *chunk),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) 	TP_ARGS(ep, asoc, chunk),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) 	TP_STRUCT__entry(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) 		__field(__u64, asoc)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) 		__field(__u32, mark)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) 		__field(__u16, bind_port)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) 		__field(__u16, peer_port)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) 		__field(__u32, pathmtu)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) 		__field(__u32, rwnd)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) 		__field(__u16, unack_data)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) 	TP_fast_assign(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) 		struct sk_buff *skb = chunk->skb;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) 		__entry->asoc = (unsigned long)asoc;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) 		__entry->mark = skb->mark;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) 		__entry->bind_port = ep->base.bind_addr.port;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) 		__entry->peer_port = asoc->peer.port;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 75) 		__entry->pathmtu = asoc->pathmtu;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 76) 		__entry->rwnd = asoc->peer.rwnd;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 77) 		__entry->unack_data = asoc->unack_data;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 78) 	),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 79) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 80) 	TP_printk("asoc=%#llx mark=%#x bind_port=%d peer_port=%d pathmtu=%d "
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 81) 		  "rwnd=%u unack_data=%d",
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 82) 		  __entry->asoc, __entry->mark, __entry->bind_port,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 83) 		  __entry->peer_port, __entry->pathmtu, __entry->rwnd,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 84) 		  __entry->unack_data)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 85) );
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 86) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 87) #endif /* _TRACE_SCTP_H */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 88) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 89) /* This part must be outside protection */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 90) #include <trace/define_trace.h>