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 b374c48  update
b374c48 is described below

commit b374c4826c375aee77803fdb65a02709fb01c56c
Author: mrproliu <[email protected]>
AuthorDate: Sat Dec 21 15:50:07 2024 +0800

    update
---
 pkg/tools/btf/queue.go | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/pkg/tools/btf/queue.go b/pkg/tools/btf/queue.go
index 8fe52a2..c07a15c 100644
--- a/pkg/tools/btf/queue.go
+++ b/pkg/tools/btf/queue.go
@@ -75,11 +75,6 @@ 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)
                }
        }
 }

Reply via email to