aquasecurity / libbpfgo

eBPF library for Go. Powered by libbpf.
Apache License 2.0
722 stars 93 forks source link

add examples and getting started guide to libbpfgo #4

Open itaysk opened 3 years ago

itaysk commented 3 years ago

add example "hello world" programs, a sample makefile, etc. related: https://github.com/lizrice/libbpfgo-beginners

rafaeldtinoco commented 3 years ago

This was covered by:

https://github.com/aquasecurity/libbpfgo/tree/main/selftest/tcpconnect

And we have an issue to bring bpfcc-tools at:

https://github.com/aquasecurity/libbpfgo/issues/43

To have examples and to exercise first contributions.

Mind if we close this ?

itaysk commented 3 years ago

the tcpconnect test is a fantastic write up but I don't think it's the "quick start" we needed. for someone who's just starting out, I think there's too much non-libbpfgo things to understand in that 200 LOC bpf program.

we can start by skipping the migration from c to go. assume the user starts with go. Also I'd pick a simpler example than network tracking for the quick start. basically something along the lines of https://blog.aquasec.com/libbpf-ebpf-programs

geyslan commented 1 year ago

@itaysk is this still relevant? If so, it's a good first issue.