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
This commit is contained in:
parent
0cc9fb7551
commit
99b1d4c1e7
@ -617,9 +617,9 @@ procstat_getfiles_kvm(struct procstat *procstat, struct kinfo_proc *kp, int mmap
|
||||
}
|
||||
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",
|
||||
|
Loading…
Reference in New Issue
Block a user