diff options
| author | Paul Buetow <paul@buetow.org> | 2024-02-17 14:26:20 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2024-02-17 14:26:20 +0200 |
| commit | 58fa8bab3fdf2bf2dc45d17366e1d8a4129b4b54 (patch) | |
| tree | 3185fb576555365a7d583b18792a68140ac5ffb7 /internal/ioriotng.go | |
| parent | c3a41ac0cb15d3f2665d75051260c1909b434548 (diff) | |
always inline
Diffstat (limited to 'internal/ioriotng.go')
| -rw-r--r-- | internal/ioriotng.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/ioriotng.go b/internal/ioriotng.go index 3482a86..9b2aeb7 100644 --- a/internal/ioriotng.go +++ b/internal/ioriotng.go @@ -47,7 +47,8 @@ func Run(flags flags.Flags) { panic(err) } - ch := make(chan []byte) + // 4096 channel size, minimises event drops + ch := make(chan []byte, 4096) rb, err := bpfModule.InitRingBuf("event_map", ch) if err != nil { panic(err) |
