This is an automated email from the ASF dual-hosted git repository.
liuhan pushed a commit to branch tmp_disable_reading
in repository https://gitbox.apache.org/repos/asf/skywalking-rover.git
The following commit(s) were added to refs/heads/tmp_disable_reading by this
push:
new e8d1d11 update max entries
e8d1d11 is described below
commit e8d1d119d3dfe9b371299ee24be287b42c36e3db
Author: mrproliu <[email protected]>
AuthorDate: Sat Dec 21 15:42:24 2024 +0800
update max entries
---
pkg/tools/btf/queue.go | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/pkg/tools/btf/queue.go b/pkg/tools/btf/queue.go
index c07a15c..8fe52a2 100644
--- a/pkg/tools/btf/queue.go
+++ b/pkg/tools/btf/queue.go
@@ -75,6 +75,11 @@ func enhanceDataQueueOpts(bpfSpec *ebpf.CollectionSpec) {
mapSpec.Type = ebpf.PerfEventArray
mapSpec.KeySize = 4
mapSpec.ValueSize = 4
+ } else {
+ mapName := strings.TrimPrefix(it.Type.TypeName(),
dataQueuePrefix)
+ mapSpec := bpfSpec.Maps[mapName]
+ mapSpec.Type = ebpf.RingBuf
+ mapSpec.MaxEntries = uint32(os.Getpagesize() * 1024 *
1024)
}
}
}