From 5689e8adef500979a1805ebb3bb01b4f1e69d67e Mon Sep 17 00:00:00 2001 From: jhb Date: Fri, 18 Dec 2015 00:40:19 +0000 Subject: [PATCH] MFC 290429: When dumping an rman in DDB, include the RID of each resource. git-svn-id: svn://svn.freebsd.org/base/stable/9@292417 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- share/man/man4/ddb.4 | 6 +++--- sys/kern/subr_rman.c | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/share/man/man4/ddb.4 b/share/man/man4/ddb.4 index bb1214f84..408e7fd74 100644 --- a/share/man/man4/ddb.4 +++ b/share/man/man4/ddb.4 @@ -60,7 +60,7 @@ .\" .\" $FreeBSD$ .\" -.Dd December 16, 2011 +.Dd November 5, 2015 .Dt DDB 4 .Os .Sh NAME @@ -570,8 +570,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 diff --git a/sys/kern/subr_rman.c b/sys/kern/subr_rman.c index 4ed0c4795..12b6a0bf3 100644 --- a/sys/kern/subr_rman.c +++ b/sys/kern/subr_rman.c @@ -1047,7 +1047,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 -- 2.45.0