Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_log_buf.c
Show First 20 Lines • Show All 108 Lines • ▼ Show 20 Lines | |||||
SYSCTL_UMA_CUR(_net_inet_tcp_bb, OID_AUTO, log_id_tcpcb_entries, CTLFLAG_RD, | SYSCTL_UMA_CUR(_net_inet_tcp_bb, OID_AUTO, log_id_tcpcb_entries, CTLFLAG_RD, | ||||
&tcp_log_id_node_zone, "Current number of tcpcbs with log IDs"); | &tcp_log_id_node_zone, "Current number of tcpcbs with log IDs"); | ||||
SYSCTL_U32(_net_inet_tcp_bb, OID_AUTO, log_version, CTLFLAG_RD, &tcp_log_version, | SYSCTL_U32(_net_inet_tcp_bb, OID_AUTO, log_version, CTLFLAG_RD, &tcp_log_version, | ||||
0, "Version of log formats exported"); | 0, "Version of log formats exported"); | ||||
SYSCTL_U32(_net_inet_tcp_bb, OID_AUTO, disable_all, CTLFLAG_RW, | SYSCTL_U32(_net_inet_tcp_bb, OID_AUTO, disable_all, CTLFLAG_RW, | ||||
&tcp_disable_all_bb_logs, TCP_LOG_STATE_HEAD_AUTO, | &tcp_disable_all_bb_logs, 0, | ||||
"Disable all BB logging for all connections"); | "Disable all BB logging for all connections"); | ||||
SYSCTL_ULONG(_net_inet_tcp_bb, OID_AUTO, log_auto_ratio, CTLFLAG_RW, | SYSCTL_ULONG(_net_inet_tcp_bb, OID_AUTO, log_auto_ratio, CTLFLAG_RW, | ||||
&tcp_log_auto_ratio, 0, "Do auto capturing for 1 out of N sessions"); | &tcp_log_auto_ratio, 0, "Do auto capturing for 1 out of N sessions"); | ||||
SYSCTL_U32(_net_inet_tcp_bb, OID_AUTO, log_auto_mode, CTLFLAG_RW, | SYSCTL_U32(_net_inet_tcp_bb, OID_AUTO, log_auto_mode, CTLFLAG_RW, | ||||
&tcp_log_auto_mode, TCP_LOG_STATE_HEAD_AUTO, | &tcp_log_auto_mode, 0, | ||||
"Logging mode for auto-selected sessions (default is TCP_LOG_STATE_HEAD_AUTO)"); | "Logging mode for auto-selected sessions (default is TCP_LOG_STATE_TAIL)"); | ||||
SYSCTL_BOOL(_net_inet_tcp_bb, OID_AUTO, log_auto_all, CTLFLAG_RW, | SYSCTL_BOOL(_net_inet_tcp_bb, OID_AUTO, log_auto_all, CTLFLAG_RW, | ||||
&tcp_log_auto_all, false, | &tcp_log_auto_all, 0, | ||||
tuexen: Possibly replace `false` by `0` to be consistent with the other declarations, in particular the… | |||||
"Auto-select from all sessions (rather than just those with IDs)"); | "Auto-select from all sessions (rather than just those with IDs)"); | ||||
#ifdef TCPLOG_DEBUG_COUNTERS | #ifdef TCPLOG_DEBUG_COUNTERS | ||||
counter_u64_t tcp_log_queued; | counter_u64_t tcp_log_queued; | ||||
counter_u64_t tcp_log_que_fail1; | counter_u64_t tcp_log_que_fail1; | ||||
counter_u64_t tcp_log_que_fail2; | counter_u64_t tcp_log_que_fail2; | ||||
counter_u64_t tcp_log_que_fail3; | counter_u64_t tcp_log_que_fail3; | ||||
counter_u64_t tcp_log_que_fail4; | counter_u64_t tcp_log_que_fail4; | ||||
▲ Show 20 Lines • Show All 2,504 Lines • Show Last 20 Lines |
Possibly replace false by 0 to be consistent with the other declarations, in particular the one for log_verbose?