Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netinet/tcp_log_buf.c
Show All 24 Lines | |||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
*/ | */ | ||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
#include <sys/param.h> | #include <sys/param.h> | ||||
#include <sys/arb.h> | |||||
#include <sys/kernel.h> | #include <sys/kernel.h> | ||||
#include <sys/lock.h> | #include <sys/lock.h> | ||||
#include <sys/malloc.h> | #include <sys/malloc.h> | ||||
#include <sys/mutex.h> | #include <sys/mutex.h> | ||||
#include <sys/qmath.h> | |||||
#include <sys/queue.h> | #include <sys/queue.h> | ||||
#include <sys/refcount.h> | #include <sys/refcount.h> | ||||
#include <sys/rwlock.h> | #include <sys/rwlock.h> | ||||
#include <sys/socket.h> | #include <sys/socket.h> | ||||
#include <sys/socketvar.h> | #include <sys/socketvar.h> | ||||
#include <sys/sysctl.h> | #include <sys/sysctl.h> | ||||
#include <sys/tree.h> | #include <sys/tree.h> | ||||
#include <sys/stats.h> | |||||
#include <sys/counter.h> | #include <sys/counter.h> | ||||
#include <dev/tcp_log/tcp_log_dev.h> | #include <dev/tcp_log/tcp_log_dev.h> | ||||
#include <net/if.h> | #include <net/if.h> | ||||
#include <net/if_var.h> | #include <net/if_var.h> | ||||
#include <net/vnet.h> | #include <net/vnet.h> | ||||
▲ Show 20 Lines • Show All 418 Lines • ▼ Show 20 Lines | |||||
#define RECHECK_INP() RECHECK_INP_CLEAN(/* noop */) | #define RECHECK_INP() RECHECK_INP_CLEAN(/* noop */) | ||||
static void | static void | ||||
tcp_log_grow_tlb(char *tlb_id, struct tcpcb *tp) | tcp_log_grow_tlb(char *tlb_id, struct tcpcb *tp) | ||||
{ | { | ||||
INP_WLOCK_ASSERT(tp->t_inpcb); | INP_WLOCK_ASSERT(tp->t_inpcb); | ||||
#ifdef NETFLIX | #ifdef STATS | ||||
if (V_tcp_perconn_stats_enable == 2 && tp->t_stats == NULL) | if (V_tcp_perconn_stats_enable == 2 && tp->t_stats == NULL) | ||||
(void)tcp_stats_sample_rollthedice(tp, tlb_id, strlen(tlb_id)); | (void)tcp_stats_sample_rollthedice(tp, tlb_id, strlen(tlb_id)); | ||||
#endif | #endif | ||||
} | } | ||||
/* | /* | ||||
* Set the TCP log ID for a TCPCB. | * Set the TCP log ID for a TCPCB. | ||||
* Called with INPCB locked. Returns with it unlocked. | * Called with INPCB locked. Returns with it unlocked. | ||||
▲ Show 20 Lines • Show All 1,949 Lines • Show Last 20 Lines |