Page MenuHomeFreeBSD

D61682.1795033711.diff
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

D61682.1795033711.diff

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

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.1795033711.diff (1 KB)

Event Timeline