svn commit: r345029 - head/sys/kern
Kirk McKusick
mckusick at FreeBSD.org
Mon Mar 11 21:49:45 UTC 2019
Author: mckusick
Date: Mon Mar 11 21:49:44 2019
New Revision: 345029
URL: https://svnweb.freebsd.org/changeset/base/345029
Log:
Augment DDB "show buffer" command to print the buffer's referenced
vnode pointer (b_vp). The value of b_vp can be used by "show vnode"
to print the vnode and "show vnodebufs" to print all the clean and
dirty buffers associated with the vnode (which should include this
buffer).
Sponsored by: Netflix
Modified:
head/sys/kern/vfs_bio.c
Modified: head/sys/kern/vfs_bio.c
==============================================================================
--- head/sys/kern/vfs_bio.c Mon Mar 11 21:37:58 2019 (r345028)
+++ head/sys/kern/vfs_bio.c Mon Mar 11 21:49:44 2019 (r345029)
@@ -5337,11 +5337,11 @@ DB_SHOW_COMMAND(buffer, db_show_buffer)
(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, "
- "b_dep = %p\n",
+ "b_bufobj = (%p), b_data = %p\n, b_blkno = %jd, b_lblkno = %jd, "
+ "b_vp = %p, b_dep = %p\n",
bp->b_error, bp->b_bufsize, bp->b_bcount, bp->b_resid,
bp->b_bufobj, bp->b_data, (intmax_t)bp->b_blkno,
- (intmax_t)bp->b_lblkno, bp->b_dep.lh_first);
+ (intmax_t)bp->b_lblkno, bp->b_vp, bp->b_dep.lh_first);
db_printf("b_kvabase = %p, b_kvasize = %d\n",
bp->b_kvabase, bp->b_kvasize);
if (bp->b_npages) {
More information about the svn-src-head
mailing list