[DTrace-devel] [PATCH v4 25/25] libproc: add the dev/ino pair to the mapping debug printout

Nick Alcock nick.alcock at oracle.com
Fri Oct 7 10:25:19 UTC 2022


This helps correlation with usdt probes, which are filtered out (really,
filtered in) by the dev/ino.

Signed-off-by: Nick Alcock <nick.alcock at oracle.com>
---
 libproc/Psymtab.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libproc/Psymtab.c b/libproc/Psymtab.c
index 763520a6427d..fbfd5fe122cf 100644
--- a/libproc/Psymtab.c
+++ b/libproc/Psymtab.c
@@ -723,7 +723,8 @@ Pupdate_maps(struct ps_prochandle *P)
 				mptr->map_file->file_map = P->num_mappings;
 		}
 
-		_dprintf("Added mapping for %s: %lx(%lx)\n", prf->prf_mapname,
+		_dprintf("Added mapping for %s: %lx:%lx %lx(%lx)\n",
+		    prf->prf_mapname, pmptr->pr_dev, pmptr->pr_inum,
 		    pmptr->pr_vaddr, pmptr->pr_size);
 		P->num_mappings++;
 	}
-- 
2.35.1




More information about the DTrace-devel mailing list