Remove tcp_acounts, some tcp_usrreq() counting from 1981. Also
authorbluhm <bluhm@openbsd.org>
Mon, 5 Feb 2018 14:53:26 +0000 (14:53 +0000)
committerbluhm <bluhm@openbsd.org>
Mon, 5 Feb 2018 14:53:26 +0000 (14:53 +0000)
remove the #ifdef KPROF which seems to be unused since that year.
OK mpi@

sys/conf/defines
sys/netinet/tcp_fsm.h
sys/netinet/tcp_usrreq.c

index f5ce63c..711bba7 100644 (file)
@@ -1,4 +1,3 @@
-/:#if.*[ \t]*KPROF/d
 /:#if.*[ \t]*PGINPROF/d
 /:#if.*[ \t]*TRACE/d
 /:#if.*[ \t]*lint/d
index 8a3000a..8434b89 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: tcp_fsm.h,v 1.8 2004/07/06 13:52:31 markus Exp $      */
+/*     $OpenBSD: tcp_fsm.h,v 1.9 2018/02/05 14:53:26 bluhm Exp $       */
 /*     $NetBSD: tcp_fsm.h,v 1.6 1994/10/14 16:01:48 mycroft Exp $      */
 
 /*
@@ -75,10 +75,6 @@ u_char       tcp_outflags[TCP_NSTATES] = {
 };
 #endif /* TCPOUTFLAGS */
 
-#ifdef KPROF
-int    tcp_acounts[TCP_NSTATES][PRU_NREQ];
-#endif /* KPROF */
-
 #ifdef TCPSTATES
 const char *tcpstates[] = {
        "CLOSED",       "LISTEN",       "SYN_SENT",     "SYN_RCVD",
index 3502c90..cd7f7e3 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: tcp_usrreq.c,v 1.166 2018/02/03 16:14:26 bluhm Exp $  */
+/*     $OpenBSD: tcp_usrreq.c,v 1.167 2018/02/05 14:53:26 bluhm Exp $  */
 /*     $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */
 
 /*
@@ -171,9 +171,6 @@ tcp_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam,
        /* tp might get 0 when using socket splicing */
        if (tp == NULL)
                return (0);
-#ifdef KPROF
-       tcp_acounts[tp->t_state][req]++;
-#endif
        ostate = tp->t_state;
 
        switch (req) {
@@ -631,9 +628,6 @@ tcp_detach(struct socket *so)
        /* tp might get 0 when using socket splicing */
        if (tp == NULL)
                return (0);
-#ifdef KPROF
-       tcp_acounts[tp->t_state][req]++;
-#endif
        ostate = tp->t_state;
 
        /*