A golang ebpf libary based on cilium/ebpf and datadog/ebpf.
A golang ebpf libary based on cilium/ebpf and datadog/ebpf.
ebpfmanager参照datadog/ebpf/manager包的思想,基于cilium/ebpf实现的ebpf类库封装。
相比cilium/ebpf实现配置化,自动加载,更具备面向对象思想,且实现了probe颗粒的卡开启关闭功能。 相比datadog/ebpf,实现了依赖包方式加载cilium/ebpf
,而非fork方式,这点与其期望走的方向一致。且依赖cilium/ebpf版本更新到最新v0.9.0。
Work is underway to convert this library to wrap the upstream library, rather than forking.
go:embed类似。go get -d github.com/shuLhan/go-bindata/cmd/go-bindatamanager与probe是一对多关系。每个probe必须配置Section与EbpfFuncName两个属性。如果是k(ret)probe或u(ret)probe,则还需要配置AttachToFuncName属性。
…参考examples目录下例子,比如uprobe
…loadProgram函数返回的progs map中,索引已经改为C代码中函数名。 见elf_reader.go312行res[prog.Name] = prog
,这点不同于老版本。(老版本是以section名字作为索引)感谢 https://jetbrains.com/ 的 All Products Pack IDE使用授权。
No open issues yet, or sync has not completed.