mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-31 18:17:29 +00:00
Use kernel page size for the sys_closes
perf buffer
This commit is contained in:
@@ -74,7 +74,7 @@ func (p *tlsPoller) init(bpfObjects *tlsTapperObjects, bufferSize int) error {
|
||||
return errors.Wrap(err, 0)
|
||||
}
|
||||
|
||||
p.sysCloses, err = perf.NewReader(bpfObjects.SysCloses, bufferSize)
|
||||
p.sysCloses, err = perf.NewReader(bpfObjects.SysCloses, os.Getpagesize())
|
||||
|
||||
if err != nil {
|
||||
return errors.Wrap(err, 0)
|
||||
|
Reference in New Issue
Block a user