Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_stacks/rack.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 1,972 Lines • ▼ Show 20 Lines | #ifdef TCP_REQUEST_TRK | ||||
int do_log = 0; | int do_log = 0; | ||||
/* | /* | ||||
* The rate cap one is noisy and only should come out when normal BB logging | * The rate cap one is noisy and only should come out when normal BB logging | ||||
* is enabled, the other logs (not RATE_CAP and NOT CAP_CALC) only come out | * is enabled, the other logs (not RATE_CAP and NOT CAP_CALC) only come out | ||||
* once per chunk and make up the BBpoint that can be turned on by the client. | * once per chunk and make up the BBpoint that can be turned on by the client. | ||||
*/ | */ | ||||
if ((mod == HYBRID_LOG_RATE_CAP) || (mod == HYBRID_LOG_CAP_CALC)) { | if ((mod == HYBRID_LOG_RATE_CAP) || (mod == HYBRID_LOG_CAP_CALC)) { | ||||
/* | |||||
* The very noisy two need to only come out when | |||||
* we have verbose logging on. | |||||
*/ | |||||
if (rack_verbose_logging != 0) | if (rack_verbose_logging != 0) | ||||
do_log = tcp_bblogging_on(rack->rc_tp); | do_log = tcp_bblogging_on(rack->rc_tp); | ||||
else | else | ||||
do_log = 0; | do_log = 0; | ||||
} else | } else if (mod != HYBRID_LOG_BW_MEASURE) { | ||||
/* | |||||
* All other less noisy logs here except the measure which | |||||
* also needs to come out on the point and the log. | |||||
*/ | |||||
do_log = tcp_bblogging_on(rack->rc_tp); | |||||
} else { | |||||
do_log = tcp_bblogging_point_on(rack->rc_tp, TCP_BBPOINT_REQ_LEVEL_LOGGING); | do_log = tcp_bblogging_point_on(rack->rc_tp, TCP_BBPOINT_REQ_LEVEL_LOGGING); | ||||
} | |||||
if (do_log) { | if (do_log) { | ||||
union tcp_log_stackspecific log; | union tcp_log_stackspecific log; | ||||
struct timeval tv; | struct timeval tv; | ||||
uint64_t lt_bw; | uint64_t lt_bw; | ||||
/* Convert our ms to a microsecond */ | /* Convert our ms to a microsecond */ | ||||
memset(&log, 0, sizeof(log)); | memset(&log, 0, sizeof(log)); | ||||
▲ Show 20 Lines • Show All 22,112 Lines • Show Last 20 Lines |