Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107178248
D13767.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D13767.diff
View Options
Index: head/sys/kern/kern_proc.c
===================================================================
--- head/sys/kern/kern_proc.c
+++ head/sys/kern/kern_proc.c
@@ -2159,8 +2159,10 @@
}
for (lobj = tobj = obj; tobj; tobj = tobj->backing_object) {
- if (tobj != obj)
+ if (tobj != obj) {
VM_OBJECT_RLOCK(tobj);
+ kve->kve_offset += tobj->backing_object_offset;
+ }
if (lobj != obj)
VM_OBJECT_RUNLOCK(lobj);
lobj = tobj;
@@ -2168,7 +2170,7 @@
kve->kve_start = (void*)entry->start;
kve->kve_end = (void*)entry->end;
- kve->kve_offset = (off_t)entry->offset;
+ kve->kve_offset += (off_t)entry->offset;
if (entry->protection & VM_PROT_READ)
kve->kve_protection |= KVME_PROT_READ;
@@ -2389,6 +2391,7 @@
for (tobj = obj; tobj != NULL;
tobj = tobj->backing_object) {
VM_OBJECT_RLOCK(tobj);
+ kve->kve_offset += tobj->backing_object_offset;
lobj = tobj;
}
if (obj->backing_object == NULL)
@@ -2409,7 +2412,7 @@
kve->kve_start = entry->start;
kve->kve_end = entry->end;
- kve->kve_offset = entry->offset;
+ kve->kve_offset += entry->offset;
if (entry->protection & VM_PROT_READ)
kve->kve_protection |= KVME_PROT_READ;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 12, 7:36 AM (19 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15763437
Default Alt Text
D13767.diff (1 KB)
Attached To
Mode
D13767: Report offset relative to the backing object for kinfo_vmentry structures.
Attached
Detach File
Event Timeline
Log In to Comment