Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Dec 2019 18:16:35 +0000 (UTC)
From:      Doug Moore <dougm@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r355501 - head/lib/libprocstat
Message-ID:  <201912071816.xB7IGZkY053852@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dougm
Date: Sat Dec  7 18:16:35 2019
New Revision: 355501
URL: https://svnweb.freebsd.org/changeset/base/355501

Log:
  r355491 broke compilation of libprocstat.c.  Change that code to use
  new methods for accessing first, next map entries.
  
  Approved by: kib
  Differential Revision: https://reviews.freebsd.org/D22725

Modified:
  head/lib/libprocstat/libprocstat.c

Modified: head/lib/libprocstat/libprocstat.c
==============================================================================
--- head/lib/libprocstat/libprocstat.c	Sat Dec  7 18:07:49 2019	(r355500)
+++ head/lib/libprocstat/libprocstat.c	Sat Dec  7 18:16:35 2019	(r355501)
@@ -617,9 +617,9 @@ do_mmapped:
 		}
 		map = &vmspace.vm_map;
 
-		for (entryp = map->header.next;
+		for (entryp = vm_map_entry_first(map);
 		    entryp != &kp->ki_vmspace->vm_map.header;
-		    entryp = vmentry.next) {
+		    entryp = vm_map_entry_succ(vmentry)) {
 			if (!kvm_read_all(kd, (unsigned long)entryp, &vmentry,
 			    sizeof(vmentry))) {
 				warnx("can't read vm_map_entry at %p",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912071816.xB7IGZkY053852>