Date: Mon, 09 Feb 2026 16:28:18 +0000 From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: d4d735b26537 - main - sctp: Use __sdt_used for variables only used by SDT probes Message-ID: <698a0b22.1d690.36c3148f@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=d4d735b26537662565001d86685080256cf95758 commit d4d735b26537662565001d86685080256cf95758 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2026-02-09 16:27:55 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2026-02-09 16:27:55 +0000 sctp: Use __sdt_used for variables only used by SDT probes Previously this used a home-rolled version. Reviewed by: tuexen, imp, markj Differential Revision: https://reviews.freebsd.org/D55165 --- sys/netinet/sctp_cc_functions.c | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/sys/netinet/sctp_cc_functions.c b/sys/netinet/sctp_cc_functions.c index 1a252da31b27..db46f5e34195 100644 --- a/sys/netinet/sctp_cc_functions.c +++ b/sys/netinet/sctp_cc_functions.c @@ -51,12 +51,6 @@ #define SHIFT_MPTCP_MULTI_Z 16 #define SHIFT_MPTCP_MULTI 8 -#ifdef KDTRACE_HOOKS -#define __dtrace -#else -#define __dtrace __unused -#endif - static void sctp_enforce_cwnd_limit(struct sctp_association *assoc, struct sctp_nets *net) { @@ -255,7 +249,7 @@ static int cc_bw_same(struct sctp_tcb *stcb, struct sctp_nets *net, uint64_t nbw, uint64_t rtt_offset, uint64_t vtag, uint8_t inst_ind) { - uint64_t oth __dtrace, probepoint __dtrace; + uint64_t oth __sdt_used, probepoint __sdt_used; probepoint = (((uint64_t)net->cwnd) << 32); if (net->rtt > net->cc_mod.rtcc.lbw_rtt + rtt_offset) { @@ -390,7 +384,7 @@ static int cc_bw_decrease(struct sctp_tcb *stcb, struct sctp_nets *net, uint64_t nbw, uint64_t rtt_offset, uint64_t vtag, uint8_t inst_ind) { - uint64_t oth __dtrace, probepoint __dtrace; + uint64_t oth __sdt_used, probepoint __sdt_used; /* Bandwidth decreased. */ probepoint = (((uint64_t)net->cwnd) << 32); @@ -530,7 +524,7 @@ out_decision: static int cc_bw_increase(struct sctp_tcb *stcb, struct sctp_nets *net, uint64_t nbw, uint64_t vtag) { - uint64_t oth __dtrace, probepoint __dtrace; + uint64_t oth __sdt_used, probepoint __sdt_used; /* * BW increased, so update and return 0, since all actions in our @@ -574,7 +568,7 @@ static int cc_bw_limit(struct sctp_tcb *stcb, struct sctp_nets *net, uint64_t nbw) { uint64_t bw_offset, rtt_offset; - uint64_t probepoint __dtrace, rtt, vtag; + uint64_t probepoint __sdt_used, rtt, vtag; uint64_t bytes_for_this_rtt, inst_bw; uint64_t div, inst_off; int bw_shift; @@ -687,7 +681,7 @@ sctp_cwnd_update_after_sack_common(struct sctp_tcb *stcb, int accum_moved, int reneged_all SCTP_UNUSED, int will_exit, int use_rtcc) { struct sctp_nets *net; - int old_cwnd __dtrace; + int old_cwnd __sdt_used; uint32_t t_ssthresh, incr; uint64_t t_ucwnd_sbw; uint64_t t_path_mptcp; @@ -800,7 +794,7 @@ sctp_cwnd_update_after_sack_common(struct sctp_tcb *stcb, continue; } } else { - uint64_t vtag __dtrace, probepoint __dtrace; + uint64_t vtag __sdt_used, probepoint __sdt_used; probepoint = (((uint64_t)net->cwnd) << 32); probepoint |= ((0xa << 16) | 0); @@ -998,7 +992,7 @@ sctp_cwnd_update_after_sack_common(struct sctp_tcb *stcb, static void sctp_cwnd_update_exit_pf_common(struct sctp_tcb *stcb, struct sctp_nets *net) { - int old_cwnd __dtrace; + int old_cwnd __sdt_used; old_cwnd = net->cwnd; net->cwnd = net->mtu; @@ -1339,7 +1333,7 @@ static void sctp_cwnd_new_rtcc_transmission_begins(struct sctp_tcb *stcb, struct sctp_nets *net) { - uint64_t vtag __dtrace, probepoint __dtrace; + uint64_t vtag __sdt_used, probepoint __sdt_used; if (net->cc_mod.rtcc.lbw) { /* Clear the old bw.. we went to 0 in-flight */ @@ -1402,7 +1396,7 @@ static void sctp_set_rtcc_initial_cc_param(struct sctp_tcb *stcb, struct sctp_nets *net) { - uint64_t vtag __dtrace, probepoint __dtrace; + uint64_t vtag __sdt_used, probepoint __sdt_used; sctp_set_initial_cc_param(stcb, net); stcb->asoc.use_precise_time = 1;home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?698a0b22.1d690.36c3148f>
