summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-02-10 23:35:37 +0200
committerPaul Buetow <paul@buetow.org>2024-02-10 23:35:37 +0200
commitb9762202d123160c9a64b804b72e018f61fddd1d (patch)
tree56e2834fc3b2c801660d6c75ca62fea4921ecd63 /main.go
parentf70036a89d1ee5b000ad6d97031bb37f50dae778 (diff)
add debugfs.TracepointsWithF
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.go b/main.go
index 5fbcc6c..c21b831 100644
--- a/main.go
+++ b/main.go
@@ -11,6 +11,7 @@ import (
"runtime"
"sync"
+ "ioriotng/internal/debugfs"
"ioriotng/internal/tracepoints"
bpf "github.com/aquasecurity/libbpfgo"
@@ -63,6 +64,9 @@ func resizeMap(module *bpf.Module, name string, size uint32) error {
}
func main() {
+ // To consider for implementation!
+ log.Println("Tracepoints with FD", debugfs.TracepointsWithFd())
+
bpfModule, err := bpf.NewModuleFromFile("main.bpf.o")
if err != nil {
log.Fatal(err)