Comments (2)
Thanks for question! :)
So, I'd say that main difference is our library intended to be really simple to use but still preserves low level API so you can do basic things (load / attach / work with maps) in a real simple way, e.g. (snipped from readme.md):
bpf.LoadElf("test.elf")
xdp := bpf.GetProgramByName("xdp_test")
xdp.Load()
xdp.Attach("eth0")
// etc
If I would compare it to libraries you mentioned above:
iovisor gobpf
- is go bindings forbcc
framework (developed by the same team, iovisor)newtools ebpf
- we found it a bit complicated to use, however I believe it does the same thing as Dropbox'sebpf
library.andrewkroh go-ebpf
- I personally haven't tried this library, from brief look it is unclear how to use it, so can't describe the difference.
Hope it helps you.
from goebpf.
Thanks for the response!
from goebpf.
Related Issues (20)
- Should we support af_xdp? HOT 4
- Attach the same program to multiple interfaces HOT 4
- perf_event_output doesn't work HOT 1
- LoadElf() loads without error but elfSystem is empty HOT 4
- XDP example packet_counter - BPF map definition and LoadElf() fails HOT 1
- all tests fail HOT 3
- ebpf_create_map() failed: Operation not permitted HOT 3
- Include linux header file failed HOT 2
- Invalid BPF instruction while bpf map lookup after having called `htons` or `bpf_htons` HOT 3
- goebpf for windows HOT 1
- eBPF program in Go HOT 1
- My Go program cannot exit, it traps in `p.updateChannel <- p.items[int(p.fds[i])]`
- can't run xdp_dump HOT 6
- error while loading BPF_MAP_TYPE_PROG_ARRAY map HOT 1
- kprobe_events: device or resource busy / no such file or directory
- ebpf map insert 不支持struct?需要如何支持?
- xdp.Attach error when bind to eth0 on aws-ubuntu 22.04.1 HOT 1
- possible to include this example for ipv6 as well? HOT 1
- Crash on PerfEvents Stop() HOT 1
- bpf_trace_printk result in LoadElf() failed: loadPrograms() failed: map '' doesn't exist
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goebpf.