]> xenbits.xensource.com Git - people/liuw/freebsd.git/commitdiff
When dumping an rman in DDB, include the RID of each resource.
authorjhb <jhb@FreeBSD.org>
Thu, 5 Nov 2015 23:12:23 +0000 (23:12 +0000)
committerjhb <jhb@FreeBSD.org>
Thu, 5 Nov 2015 23:12:23 +0000 (23:12 +0000)
Submitted by: Ravi Pokala (rpokala@panasas.com)
Reviewed by: imp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D4086

share/man/man4/ddb.4
sys/kern/subr_rman.c

index 8d2a947c967906784f891f77fcd35297afc93bb8..d29bcdda78a08eb1f33f68e926238c5a7cfcb1b1 100644 (file)
@@ -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 CPU present in the system.
 .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
index 61e951f4e5d74ca2aa1421f5d3b327b1aea7da30..310bd5e521ec184ecb25f69c908c918acef0ee9b 100644 (file)
@@ -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