diff options
author | jhb <jhb@FreeBSD.org> | 2015-12-18 00:40:19 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2015-12-18 00:40:19 +0000 |
commit | 2bd3d3a22d907fb6fa50488144b518570c1781cd (patch) | |
tree | eba95c41fa5e79c2be91e33ca9f74fd5a0e55991 | |
parent | cb15359712d2ef7a5d75c3f9e521bd5c9ce1d329 (diff) | |
download | FreeBSD-src-2bd3d3a22d907fb6fa50488144b518570c1781cd.zip FreeBSD-src-2bd3d3a22d907fb6fa50488144b518570c1781cd.tar.gz |
MFC 290429:
When dumping an rman in DDB, include the RID of each resource.
-rw-r--r-- | share/man/man4/ddb.4 | 6 | ||||
-rw-r--r-- | 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 2ca5518..8bcbaea 100644 --- a/share/man/man4/ddb.4 +++ b/share/man/man4/ddb.4 @@ -60,7 +60,7 @@ .\" .\" $FreeBSD$ .\" -.Dd July 15, 2014 +.Dd November 5, 2015 .Dt DDB 4 .Os .Sh NAME @@ -572,8 +572,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 568f566..27e6f1c 100644 --- a/sys/kern/subr_rman.c +++ b/sys/kern/subr_rman.c @@ -1052,7 +1052,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 |