gobpf
Go bindings for creating BPF programs. (by iovisor)
ebpf
ebpf-go is a pure-Go library to read, modify and load eBPF programs and attach them to various hooks in the Linux kernel. (by cilium)
gobpf | ebpf | |
---|---|---|
2 | 9 | |
2,163 | 6,777 | |
0.6% | 2.4% | |
0.0 | 9.5 | |
over 1 year ago | 10 days ago | |
C | Go | |
Apache License 2.0 | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
gobpf
Posts with mentions or reviews of gobpf.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-10.
-
eBPF Documentary
This [1] makes me think gobpf uses C bindings to bcc, so golang does not compile to eBPF, bcc does.
[1] - https://github.com/iovisor/gobpf/tree/master/bcc
-
Simple XDP Firwall with Golang
gobpf by iovisor which provides go bindings for the bcc framework as well as low-level routines to load and use eBPF programs from .elf files.
ebpf
Posts with mentions or reviews of ebpf.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2024-03-10.
-
eBPF Documentary
Oh, no I don't mean that arbitrary Go compiles to eBPF. Apologies if I gave that impression. I meant that there are libraries that let you compose eBPF programs in other languages. But you're still putting together an eBPF program, just like you can assemble JSON with Go but you can't compile an arbitrary Go program to JSON.
Cilium's eBPF library is the Go one I had in mind: https://github.com/cilium/ebpf
Here's an example from that repo: https://github.com/cilium/ebpf/tree/main/examples/ringbuffer
- eBPF Verification Is Untenable
-
Memory Tracing
Hey there! Of course. There are a few good examples here and here. Yes, they're specific tools (which I, by the way, do recommend), but you can have a look at the BPF code here as well.
-
Simple XDP Firwall with Golang
ebpf-go by Cilium which is a pure-Go library to read, modify and load eBPF programs and attach them to various hooks in the Linux kernel.
-
Has anyone had any luck with Ebpf libraries?
cilium is probably the best one that has the widest use and is supported by cloudflare.
-
eBPF learning material(updating)
libbpfgo ebpf
-
Ship your firewall rules with your application using eBPF
Go library that provides utilities for loading, compiling, and debugging eBPF programs [https://github.com/cilium/ebpf]
-
lsp-mode can't find github packages
The error I get is "could not import github.com/cilium/ebpf (no package for import github.com/cilium/ebpf". I have the variable lsp-go-library-directories-include-go-modules set to t and the directory $GOPATH/pkg/mod/github.com/cilium/[email protected] exists and has the correct code in it. What am I missing to make LSP pick up these libraries?
-
Running a function everytime an exported function is called
If you want to run something like monitoring or diagnostic code, maybe you could achieve something like this with eBPF (see https://github.com/cilium/ebpf).
What are some alternatives?
When comparing gobpf and ebpf you can also consider the following projects:
goebpf - Library to work with eBPF programs from Go
libbpfgo - eBPF library for Go. Powered by libbpf.
xdp-firewall-tutorial - Drop packets with XDP & Golang tutorial repo
go-flutter - Flutter on Windows, MacOS and Linux - based on Flutter Embedding, Go and GLFW.