summaryrefslogtreecommitdiff
path: root/internal/eventloop.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-02-29 10:06:25 +0200
committerPaul Buetow <paul@buetow.org>2024-02-29 10:06:25 +0200
commit34cc66c02fe4592596613361a5ed152fe8f19ae5 (patch)
tree5efff8cdab1821becc415ba6a685ec5f17ede116 /internal/eventloop.go
parent992b37d9e9d7614d54b4338bc285fc5756d639b7 (diff)
return correct value (e.g. bytes read)
Diffstat (limited to 'internal/eventloop.go')
-rw-r--r--internal/eventloop.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/eventloop.go b/internal/eventloop.go
index f1eab22..d15c221 100644
--- a/internal/eventloop.go
+++ b/internal/eventloop.go
@@ -26,6 +26,14 @@ type Event interface {
Recycle()
}
+type Syscall struct {
+ enterEv, exitEv Event
+}
+
+func (s Syscall) String() string {
+ return ""
+}
+
func human(enterEv, exitEv Event) string {
return fmt.Sprintf("%08d µs %s %s",
exitEv.Timestamp()-enterEv.Timestamp(), enterEv, exitEv)