svn commit: r310028 - head/sys/vm
John Baldwin
jhb at FreeBSD.org
Tue Dec 13 19:22:44 UTC 2016
Author: jhb
Date: Tue Dec 13 19:22:43 2016
New Revision: 310028
URL: https://svnweb.freebsd.org/changeset/base/310028
Log:
Use db_lookup_proc() in the DDB 'show procvm' command.
This allows processes to be identified by PID as well as a pointer address.
MFC after: 2 weeks
Sponsored by: DARPA / AFRL
Modified:
head/sys/vm/vm_map.c
Modified: head/sys/vm/vm_map.c
==============================================================================
--- head/sys/vm/vm_map.c Tue Dec 13 19:04:05 2016 (r310027)
+++ head/sys/vm/vm_map.c Tue Dec 13 19:22:43 2016 (r310028)
@@ -4309,7 +4309,7 @@ DB_SHOW_COMMAND(procvm, procvm)
struct proc *p;
if (have_addr) {
- p = (struct proc *) addr;
+ p = db_lookup_proc(addr);
} else {
p = curproc;
}
More information about the svn-src-all
mailing list