summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-02-11 22:28:41 +0200
committerPaul Buetow <paul@buetow.org>2024-02-11 22:28:41 +0200
commitfe024ec9fc47b96b5cc9b3301ebf311510568fda (patch)
tree3425a50020dceaf218e3192b5a1a881c43ab3ddf /main.go
parent0f3e937fff5e8e7407f262694e8e2558bcfec703 (diff)
initial timestamps
Diffstat (limited to 'main.go')
-rw-r--r--main.go20
1 files changed, 12 insertions, 8 deletions
diff --git a/main.go b/main.go
index 5930763..54b3c85 100644
--- a/main.go
+++ b/main.go
@@ -22,11 +22,13 @@ type BpfMapper interface {
}
type openEvent struct {
- FD int32
- OpID int32
- TID uint32
- Filename [256]byte
- Comm [16]byte
+ FD int32
+ OpID int32
+ TID uint32
+ EnterTime int64
+ ExitTime int64
+ Filename [256]byte
+ Comm [16]byte
}
func (e openEvent) String() string {
@@ -37,9 +39,11 @@ func (e openEvent) String() string {
}
type fdEvent struct {
- FD int32
- OpID int32
- TID uint32
+ FD int32
+ OpID int32
+ TID uint32
+ EnterTime int64
+ ExitTime int64
}
func (e fdEvent) String() string {