Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177687244
D61682.1795033708.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D61682.1795033708.diff
View Options
diff --git a/sys/dev/hwt/hwt_record.c b/sys/dev/hwt/hwt_record.c
--- a/sys/dev/hwt/hwt_record.c
+++ b/sys/dev/hwt/hwt_record.c
@@ -88,6 +88,9 @@
usr->record_type = ent->record_type;
switch (ent->record_type) {
case HWT_RECORD_MMAP:
+ usr->size = ent->size;
+ usr->foffset = ent->foffset;
+ /* Fallthrough. */
case HWT_RECORD_EXECUTABLE:
case HWT_RECORD_KERNEL:
usr->addr = ent->addr;
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -3220,6 +3220,8 @@
if (vn_fullpath(vp, &fullpath, &freepath) == 0) {
ent.fullpath = fullpath;
ent.addr = (uintptr_t) *addr;
+ ent.size = size;
+ ent.foffset = foff;
ent.record_type = HWT_RECORD_MMAP;
HWT_CALL_HOOK(td, HWT_MMAP, &ent);
free(freepath, M_TEMP);
diff --git a/sys/sys/hwt.h b/sys/sys/hwt.h
--- a/sys/sys/hwt.h
+++ b/sys/sys/hwt.h
@@ -83,8 +83,10 @@
*/
struct {
char fullpath[MAXPATHLEN];
+ size_t size;
uintptr_t addr;
uintptr_t baseaddr;
+ vm_ooffset_t foffset;
};
/* Used for BUFFER records. */
struct {
diff --git a/sys/sys/hwt_record.h b/sys/sys/hwt_record.h
--- a/sys/sys/hwt_record.h
+++ b/sys/sys/hwt_record.h
@@ -52,8 +52,10 @@
*/
struct {
char *fullpath;
+ size_t size;
uintptr_t addr;
uintptr_t baseaddr;
+ vm_ooffset_t foffset;
};
/* Used for BUFFER records. */
struct {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 18, 8:28 PM (23 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41829603
Default Alt Text
D61682.1795033708.diff (1 KB)
Attached To
Mode
D61682: hwt(4): Emit more information about address space change events
Attached
Detach File
Event Timeline