Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Nov 2015 23:12:23 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r290429 - in head: share/man/man4 sys/kern
Message-ID:  <201511052312.tA5NCNPl069030@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Thu Nov  5 23:12:23 2015
New Revision: 290429
URL: https://svnweb.freebsd.org/changeset/base/290429

Log:
  When dumping an rman in DDB, include the RID of each resource.
  
  Submitted by:	Ravi Pokala (rpokala@panasas.com)
  Reviewed by:	imp
  MFC after:	1 week
  Differential Revision:	https://reviews.freebsd.org/D4086

Modified:
  head/share/man/man4/ddb.4
  head/sys/kern/subr_rman.c

Modified: head/share/man/man4/ddb.4
==============================================================================
--- head/share/man/man4/ddb.4	Thu Nov  5 22:50:21 2015	(r290428)
+++ head/share/man/man4/ddb.4	Thu Nov  5 23:12:23 2015	(r290429)
@@ -60,7 +60,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd March 16, 2015
+.Dd November 5, 2015
 .Dt DDB 4
 .Os
 .Sh NAME
@@ -560,8 +560,8 @@ The same as "show pcpu", but for every C
 .Pp
 .It Ic show Cm allrman
 Show information related with resource management, including
-interrupt request lines, DMA request lines, I/O ports and I/O memory
-addresses.
+interrupt request lines, DMA request lines, I/O ports, I/O memory
+addresses, and Resource IDs.
 .\"
 .Pp
 .It Ic show Cm apic

Modified: head/sys/kern/subr_rman.c
==============================================================================
--- head/sys/kern/subr_rman.c	Thu Nov  5 22:50:21 2015	(r290428)
+++ head/sys/kern/subr_rman.c	Thu Nov  5 23:12:23 2015	(r290429)
@@ -1051,7 +1051,8 @@ dump_rman(struct rman *rm)
 				devname = "nomatch";
 		} else
 			devname = NULL;
-		db_printf("    0x%lx-0x%lx ", r->r_start, r->r_end);
+		db_printf("    0x%lx-0x%lx (RID=%d) ",
+		    r->r_start, r->r_end, r->r_rid);
 		if (devname != NULL)
 			db_printf("(%s)\n", devname);
 		else



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