summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-02-10 18:50:08 +0200
committerPaul Buetow <paul@buetow.org>2024-02-10 18:50:08 +0200
commit25d56de3712412bfb5b271ff9fbad7bf8d75288e (patch)
tree6a9c796ec41a3c2bdeaeaa3036e1fafcf1d44148 /main.go
parentc6200235b553770221e1ca0b25ca46ed6af96803 (diff)
add UID filter
Diffstat (limited to 'main.go')
-rw-r--r--main.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/main.go b/main.go
index 7d4dd8f..1d3988c 100644
--- a/main.go
+++ b/main.go
@@ -66,19 +66,6 @@ func main() {
log.Fatal(err)
}
- testerMap, err := bpfModule.GetMap("tester")
- if err != nil {
- log.Fatal(err)
- }
-
- if testerMap.Name() != "tester" {
- log.Fatal("wrong map")
- }
-
- if testerMap.Type() != bpf.MapTypeHash {
- log.Fatal("wrong map type")
- }
-
eventsChannel := make(chan []byte)
lostChannel := make(chan uint64)
pb, err := bpfModule.InitPerfBuf("events", eventsChannel, lostChannel, 1)