From c2b7fa891c440ef4dae82b680dc994be89da560f Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 18 Jan 2022 10:46:10 +0100 Subject: [PATCH] DEV: flags: Add missing flags The flags dev tool was not updated since a while. Support for several flags was missing. It is up to date now. --- dev/flags/flags.c | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/dev/flags/flags.c b/dev/flags/flags.c index ccd22050d8..126e9a0220 100644 --- a/dev/flags/flags.c +++ b/dev/flags/flags.c @@ -68,6 +68,7 @@ void show_chn_ana(unsigned int f) SHOW_FLAG(f, AN_REQ_STICKING_RULES); SHOW_FLAG(f, AN_REQ_FLT_HTTP_HDRS); SHOW_FLAG(f, AN_REQ_HTTP_XFER_BODY); + SHOW_FLAG(f, AN_REQ_WAIT_CLI); SHOW_FLAG(f, AN_REQ_FLT_XFER_DATA); SHOW_FLAG(f, AN_REQ_FLT_END); @@ -80,6 +81,7 @@ void show_chn_ana(unsigned int f) SHOW_FLAG(f, AN_RES_HTTP_PROCESS_BE); SHOW_FLAG(f, AN_RES_FLT_HTTP_HDRS); SHOW_FLAG(f, AN_RES_HTTP_XFER_BODY); + SHOW_FLAG(f, AN_RES_WAIT_CLI); SHOW_FLAG(f, AN_RES_FLT_XFER_DATA); SHOW_FLAG(f, AN_RES_FLT_END); @@ -145,11 +147,12 @@ void show_conn_flags(unsigned int f) } SHOW_FLAG(f, CO_FL_XPRT_TRACKED); + SHOW_FLAG(f, CO_FL_SESS_IDLE); SHOW_FLAG(f, CO_FL_RCVD_PROXY); SHOW_FLAG(f, CO_FL_PRIVATE); + SHOW_FLAG(f, CO_FL_SSL_WAIT_HS); SHOW_FLAG(f, CO_FL_ACCEPT_CIP); SHOW_FLAG(f, CO_FL_ACCEPT_PROXY); - SHOW_FLAG(f, CO_FL_SSL_WAIT_HS); SHOW_FLAG(f, CO_FL_SEND_PROXY); SHOW_FLAG(f, CO_FL_WAIT_L6_CONN); SHOW_FLAG(f, CO_FL_WAIT_L4_CONN); @@ -163,6 +166,7 @@ void show_conn_flags(unsigned int f) SHOW_FLAG(f, CO_FL_ADDR_TO_SET); SHOW_FLAG(f, CO_FL_ADDR_FROM_SET); SHOW_FLAG(f, CO_FL_WAIT_ROOM); + SHOW_FLAG(f, CO_FL_WANT_DRAIN); SHOW_FLAG(f, CO_FL_XPRT_READY); SHOW_FLAG(f, CO_FL_CTRL_READY); SHOW_FLAG(f, CO_FL_IDLE_LIST); @@ -180,9 +184,11 @@ void show_cs_flags(unsigned int f) printf("0\n"); return; } + SHOW_FLAG(f, CS_FL_WEBSOCKET); SHOW_FLAG(f, CS_FL_NOT_FIRST); SHOW_FLAG(f, CS_FL_KILL_CONN); SHOW_FLAG(f, CS_FL_WAIT_FOR_HS); + SHOW_FLAG(f, CS_FL_MAY_SPLICE); SHOW_FLAG(f, CS_FL_EOI); SHOW_FLAG(f, CS_FL_EOS); SHOW_FLAG(f, CS_FL_ERR_PENDING); @@ -236,7 +242,7 @@ void show_si_flags(unsigned int f) SHOW_FLAG(f, SI_FL_EXP); SHOW_FLAG(f, SI_FL_ERR); - SHOW_FLAG(f, SI_FL_RXBLK_ROOM); + SHOW_FLAG(f, SI_FL_KILL_CONN); SHOW_FLAG(f, SI_FL_WAIT_DATA); SHOW_FLAG(f, SI_FL_ISBACK); SHOW_FLAG(f, SI_FL_DONT_WAKE); @@ -250,9 +256,12 @@ void show_si_flags(unsigned int f) SHOW_FLAG(f, SI_FL_RXBLK_BUFF); SHOW_FLAG(f, SI_FL_RXBLK_ROOM); SHOW_FLAG(f, SI_FL_RXBLK_SHUT); + SHOW_FLAG(f, SI_FL_RXBLK_CONN); SHOW_FLAG(f, SI_FL_RX_WAIT_EP); SHOW_FLAG(f, SI_FL_L7_RETRY); SHOW_FLAG(f, SI_FL_D_L7_RETRY); + SHOW_FLAG(f, SI_FL_ADDR_FROM_SET); + SHOW_FLAG(f, SI_FL_ADDR_TO_SET); if (f) { printf("EXTRA(0x%08x)", f); @@ -269,6 +278,8 @@ void show_task_state(unsigned int f) return; } + SHOW_FLAG(f, TASK_F_USR1); + SHOW_FLAG(f, TASK_F_TASKLET); SHOW_FLAG(f, TASK_WOKEN_OTHER); SHOW_FLAG(f, TASK_WOKEN_RES); SHOW_FLAG(f, TASK_WOKEN_MSG); @@ -276,6 +287,13 @@ void show_task_state(unsigned int f) SHOW_FLAG(f, TASK_WOKEN_IO); SHOW_FLAG(f, TASK_WOKEN_TIMER); SHOW_FLAG(f, TASK_WOKEN_INIT); + SHOW_FLAG(f, TASK_HEAVY); + SHOW_FLAG(f, TASK_IN_LIST); + SHOW_FLAG(f, TASK_KILLED); + SHOW_FLAG(f, TASK_SELF_WAKING); + SHOW_FLAG(f, TASK_SHARED_WQ); + SHOW_FLAG(f, TASK_QUEUED); + SHOW_FLAG(f, TASK_GLOBAL); SHOW_FLAG(f, TASK_RUNNING); if (f) { @@ -295,8 +313,10 @@ void show_txn_flags(unsigned int f) SHOW_FLAG(f, TX_NOT_FIRST); SHOW_FLAG(f, TX_USE_PX_CONN); + SHOW_FLAG(f, TX_CACHE_HAS_SEC_KEY); SHOW_FLAG(f, TX_CON_WANT_TUN); + SHOW_FLAG(f, TX_CACHE_IGNORE); SHOW_FLAG(f, TX_CACHE_COOK); SHOW_FLAG(f, TX_CACHEABLE); SHOW_FLAG(f, TX_SCK_PRESENT); @@ -325,6 +345,7 @@ void show_txn_flags(unsigned int f) } SHOW_FLAG(f, TX_CLTARPIT); + SHOW_FLAG(f, TX_CONST_REPLY); if (f) { printf("EXTRA(0x%08x)", f); @@ -341,6 +362,8 @@ void show_strm_flags(unsigned int f) return; } + SHOW_FLAG(f, SF_WEBSOCKET); + SHOW_FLAG(f, SF_SRV_REUSED_ANTICIPATED); SHOW_FLAG(f, SF_SRV_REUSED); SHOW_FLAG(f, SF_IGNORE_PRST);