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
This commit is contained in:
John Baldwin 2015-11-05 23:12:23 +00:00
parent 791b3571a2
commit db41d262d3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290429
2 changed files with 5 additions and 4 deletions

View 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

View 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