eunomia-bpf / bpf-developer-tutorial

eBPF Developer Tutorial: Learning eBPF Step by Step with Examples
https://eunomia.dev/tutorials/
MIT License
2.45k stars 349 forks source link

example: make goroutine trace example work #95

Closed Officeyutong closed 7 months ago

Officeyutong commented 8 months ago

This PR makes 31-goroutine basically work.

It traces the state switch of goroutines. But due to some hard issues (the struct field offset is not fixed amonf different go versions, the ABI is also not stable), the example is only limited to be working at the provided executable. See README for more details