This Repo consist of the code and guide to build a monitor for processes running on the system using eBPF
Generate the go bindings for the ebpf command using ebpf2go module
go get github.com/cilium/ebpf/cmd/bpf2go
go generate -x
Build the go program
go build -o monitor ./go_monitor_objects.go ./ebpfmonitoring_bpf.go
Run the binary with priviliges
sudo ./monitor