Add printing of b_ioflags to DDB `show buffer' command.

Sponsored by: Netflix
This commit is contained in:
Kirk McKusick 2019-01-25 21:24:09 +00:00
parent cecf8bebe7
commit dab83bd1e8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=343457
2 changed files with 9 additions and 3 deletions

View file

@ -5329,9 +5329,12 @@ DB_SHOW_COMMAND(buffer, db_show_buffer)
}
db_printf("buf at %p\n", bp);
db_printf("b_flags = 0x%b, b_xflags=0x%b, b_vflags=0x%b\n",
(u_int)bp->b_flags, PRINT_BUF_FLAGS, (u_int)bp->b_xflags,
PRINT_BUF_XFLAGS, (u_int)bp->b_vflags, PRINT_BUF_VFLAGS);
db_printf("b_flags = 0x%b, b_xflags=0x%b\n",
(u_int)bp->b_flags, PRINT_BUF_FLAGS,
(u_int)bp->b_xflags, PRINT_BUF_XFLAGS);
db_printf("b_vflags=0x%b b_ioflags0x%b\n",
(u_int)bp->b_vflags, PRINT_BUF_VFLAGS,
(u_int)bp->b_ioflags, PRINT_BIO_FLAGS);
db_printf(
"b_error = %d, b_bufsize = %ld, b_bcount = %ld, b_resid = %ld\n"
"b_bufobj = (%p), b_data = %p, b_blkno = %jd, b_lblkno = %jd, "

View file

@ -67,6 +67,9 @@
#define BIO_TRANSIENT_MAPPING 0x20
#define BIO_VLIST 0x40
#define PRINT_BIO_FLAGS "\20\7vlist\6transient_mapping\5unmapped" \
"\4ordered\3onqueue\2done\1error"
#ifdef _KERNEL
struct disk;
struct bio;