diff options
| author | Paul Buetow <paul@buetow.org> | 2025-03-16 21:31:14 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-03-16 21:31:14 +0200 |
| commit | dcb120befa13c275d0fdabe694fcfeaf3d17dca9 (patch) | |
| tree | f70a754d45ff816c95a4a91d6a60d9fe4f4b8331 /internal/eventloop.go | |
| parent | 4f744e2e83072405bc448ac212787214ed5472fa (diff) | |
printing out file flags in human mode... only open syscalls yet
Diffstat (limited to 'internal/eventloop.go')
| -rw-r--r-- | internal/eventloop.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/eventloop.go b/internal/eventloop.go index 3963cf6..e17095a 100644 --- a/internal/eventloop.go +++ b/internal/eventloop.go @@ -16,7 +16,6 @@ import ( . "ior/internal/generated/types" ) -// TODO: Move in its own package? type eventLoop struct { flags flags.Flags filter *eventFilter @@ -150,6 +149,7 @@ func (e *eventLoop) syscallEnter(enterEv event.Event) { // Only, when we have a comm name if _, ok := e.comms[tid]; ok { e.enterEvs[tid] = event.NewPair(enterEv) + // TODO } else { .... what if not? } } } } @@ -180,7 +180,7 @@ func (e *eventLoop) syscallExit(exitEv event.Event, ch chan<- *event.Pair) { fd := int32(ev.ExitEv.(*RetEvent).Ret) // It's from an array, so only create string from array until first 0 byte // TODO: This could speed up the path filter as well - file := file.NewFd(fd, openEv.Filename[:]) + file := file.NewFd(fd, openEv.Filename[:], v.Flags) if fd >= 0 { e.files[fd] = file } |
