Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Mar 2019 21:49:45 +0000 (UTC)
From:      Kirk McKusick <mckusick@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r345029 - head/sys/kern
Message-ID:  <201903112149.x2BLnjY7044555@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903112149.x2BLnjY7044555>