summaryrefslogtreecommitdiff
path: root/internal/eventloop.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-10-09 10:44:27 +0300
committerPaul Buetow <paul@buetow.org>2025-10-09 10:44:27 +0300
commit82f3c50dce5a26d828b9e9fd71bdf3c05adae968 (patch)
treed75439d32485c6586e0631d49d3e3d3b36a577e0 /internal/eventloop.go
parent91632ae9e2f49cb046b5899f190890b9d139ed89 (diff)
fix unit tests, initial hard exclude of not working yet syscalls
Diffstat (limited to 'internal/eventloop.go')
-rw-r--r--internal/eventloop.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/eventloop.go b/internal/eventloop.go
index d568162..6a345f2 100644
--- a/internal/eventloop.go
+++ b/internal/eventloop.go
@@ -216,7 +216,7 @@ func (e *eventLoop) tracepointExited(exitEv event.Event, ch chan<- *event.Pair)
openEv := ep.EnterEv.(*OpenEvent)
comm := types.StringValue(openEv.Comm[:])
if fd := int32(ep.ExitEv.(*RetEvent).Ret); fd >= 0 {
- file := file.NewFd(fd, openEv.Filename[:], v.Flags)
+ file := file.NewFd(fd, types.StringValue(openEv.Filename[:]), v.Flags)
e.files[fd] = file
ep.File = file
ep.Comm = comm
@@ -240,7 +240,7 @@ func (e *eventLoop) tracepointExited(exitEv event.Event, ch chan<- *event.Pair)
nameEvent := ep.EnterEv.(*PathEvent)
if ep.Is(SYS_ENTER_CREAT) {
if fd := int32(ep.ExitEv.(*RetEvent).Ret); fd >= 0 {
- file := file.NewFd(fd, nameEvent.Pathname[:],
+ file := file.NewFd(fd, types.StringValue(nameEvent.Pathname[:]),
syscall.O_CREAT|syscall.O_WRONLY|syscall.O_TRUNC)
e.files[fd] = file
ep.File = file
@@ -319,7 +319,7 @@ func (e *eventLoop) tracepointExited(exitEv event.Event, ch chan<- *event.Pair)
if fd := int32(retEvent.Ret); fd >= 0 {
openByHandleEv := ep.EnterEv.(*OpenByHandleAtEvent)
- file := file.NewFd(fd, []byte(pathname), openByHandleEv.Flags)
+ file := file.NewFd(fd, pathname, openByHandleEv.Flags)
e.files[fd] = file
ep.File = file
ep.Comm = e.comm(tid)