Add printing of b_ioflags to DDB `show buffer' command.
Sponsored by: Netflix
This commit is contained in:
parent
62eee06124
commit
5f49ddd0a0
@ -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, "
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user