diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-20 07:41:04 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-20 07:41:04 +0300 |
| commit | 5fd613562e2aa2ab3aac3349f44db88330046c1c (patch) | |
| tree | dfb391de44b309d391031b7744bc48f3ea7c8d7d /internal/streamrow/row.go | |
| parent | df1225efe494cc81513cf98e93891376e45f9615 (diff) | |
task 07: assert mmap address-space accounting end-to-end
Diffstat (limited to 'internal/streamrow/row.go')
| -rw-r--r-- | internal/streamrow/row.go | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/internal/streamrow/row.go b/internal/streamrow/row.go index 5bccb61..7497583 100644 --- a/internal/streamrow/row.go +++ b/internal/streamrow/row.go @@ -23,9 +23,11 @@ type Row struct { DurationNs uint64 GapNs uint64 Bytes uint64 - RetVal int64 - IsError bool - FD int32 + // AddressSpaceBytes tracks memory-region extent for memory-management syscalls. + AddressSpaceBytes uint64 + RetVal int64 + IsError bool + FD int32 } func (r Row) SyscallValue() string { @@ -99,18 +101,19 @@ func (s *Sequencer) Next() uint64 { // New converts one syscall pair into the shared row model. func New(seq uint64, pair *event.Pair) Row { row := Row{ - Seq: seq, - TimeNs: pair.EnterEv.GetTime(), - Syscall: pair.EnterEv.GetTraceId().Name(), - Family: string(pair.EnterEv.GetTraceId().Family()), - Comm: pair.Comm, - PID: pair.EnterEv.GetPid(), - TID: pair.EnterEv.GetTid(), - FileName: pair.FileName(), - DurationNs: pair.Duration, - GapNs: pair.DurationToPrev, - Bytes: pair.Bytes, - FD: UnknownFD, + Seq: seq, + TimeNs: pair.EnterEv.GetTime(), + Syscall: pair.EnterEv.GetTraceId().Name(), + Family: string(pair.EnterEv.GetTraceId().Family()), + Comm: pair.Comm, + PID: pair.EnterEv.GetPid(), + TID: pair.EnterEv.GetTid(), + FileName: pair.FileName(), + DurationNs: pair.Duration, + GapNs: pair.DurationToPrev, + Bytes: pair.Bytes, + AddressSpaceBytes: pair.AddressSpaceBytes, + FD: UnknownFD, } if fd, ok := pair.FileDescriptor(); ok { row.FD = fd |
