mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 23:01:24 +02:00
MINOR: cli/fd: show fd's tgid and refcount in "show fd"
We really need to display these values now.
This commit is contained in:
parent
9464bb1f05
commit
c243182370
@ -1304,7 +1304,7 @@ static int cli_io_handler_show_fd(struct appctx *appctx)
|
|||||||
suspicious = 1;
|
suspicious = 1;
|
||||||
|
|
||||||
chunk_printf(&trash,
|
chunk_printf(&trash,
|
||||||
" %5d : st=0x%06x(%c%c %c%c%c%c%c W:%c%c%c R:%c%c%c) tmask=0x%lx umask=0x%lx owner=%p iocb=%p(",
|
" %5d : st=0x%06x(%c%c %c%c%c%c%c W:%c%c%c R:%c%c%c) ref=%#x gid=%d tmask=0x%lx umask=0x%lx owner=%p iocb=%p(",
|
||||||
fd,
|
fd,
|
||||||
fdt.state,
|
fdt.state,
|
||||||
(fdt.state & FD_CLONED) ? 'C' : 'c',
|
(fdt.state & FD_CLONED) ? 'C' : 'c',
|
||||||
@ -1320,6 +1320,8 @@ static int cli_io_handler_show_fd(struct appctx *appctx)
|
|||||||
(fdt.state & FD_EV_SHUT_R) ? 'S' : 's',
|
(fdt.state & FD_EV_SHUT_R) ? 'S' : 's',
|
||||||
(fdt.state & FD_EV_READY_R) ? 'R' : 'r',
|
(fdt.state & FD_EV_READY_R) ? 'R' : 'r',
|
||||||
(fdt.state & FD_EV_ACTIVE_R) ? 'A' : 'a',
|
(fdt.state & FD_EV_ACTIVE_R) ? 'A' : 'a',
|
||||||
|
(fdt.refc_tgid >> 4) & 0xffff,
|
||||||
|
(fdt.refc_tgid) & 0xffff,
|
||||||
fdt.thread_mask, fdt.update_mask,
|
fdt.thread_mask, fdt.update_mask,
|
||||||
fdt.owner,
|
fdt.owner,
|
||||||
fdt.iocb);
|
fdt.iocb);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user