MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bbr_log_startup_event

Function bbr_log_startup_event

freebsd/netinet/tcp_stacks/bbr.c:2389–2410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2387}
2388
2389static void
2390bbr_log_startup_event(struct tcp_bbr *bbr, uint32_t cts, uint32_t flex1, uint32_t flex2, uint32_t flex3, uint8_t reason)
2391{
2392 if (bbr->rc_tp->t_logstate != TCP_LOG_STATE_OFF) {
2393 union tcp_log_stackspecific log;
2394
2395 bbr_fill_in_logging_data(bbr, &log.u_bbr, cts);
2396 log.u_bbr.flex1 = flex1;
2397 log.u_bbr.flex2 = flex2;
2398 log.u_bbr.flex3 = flex3;
2399 log.u_bbr.flex4 = 0;
2400 log.u_bbr.flex5 = bbr->r_ctl.rc_target_at_state;
2401 log.u_bbr.flex6 = bbr->r_ctl.rc_lost_at_startup;
2402 log.u_bbr.flex8 = reason;
2403 log.u_bbr.cur_del_rate = bbr->r_ctl.rc_bbr_lastbtlbw;
2404 TCP_LOG_EVENTP(bbr->rc_tp, NULL,
2405 &bbr->rc_inp->inp_socket->so_rcv,
2406 &bbr->rc_inp->inp_socket->so_snd,
2407 BBR_LOG_REDUCE, 0,
2408 0, &log, false, &bbr->rc_tv);
2409 }
2410}
2411
2412static void
2413bbr_log_hpts_diag(struct tcp_bbr *bbr, uint32_t cts, struct hpts_diag *diag)

Callers 4

bbr_exit_probe_rttFunction · 0.85
bbr_google_startupFunction · 0.85
bbr_state_startupFunction · 0.85
bbr_state_changeFunction · 0.85

Calls 1

bbr_fill_in_logging_dataFunction · 0.85

Tested by

no test coverage detected