libbpfgo icon indicating copy to clipboard operation
libbpfgo copied to clipboard

add examples and getting started guide to libbpfgo

Open itaysk opened this issue 4 years ago • 3 comments

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

itaysk avatar Jan 28 '21 18:01 itaysk

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 ?

rafaeldtinoco avatar Jul 30 '21 00:07 rafaeldtinoco

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

itaysk avatar Jul 31 '21 15:07 itaysk

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

geyslan avatar Feb 01 '23 14:02 geyslan