Open xing393939 opened 5 months ago
Yes very likely. And kernel is also required to be compiled with CONFIG_DEBUG_INFO_BTF.. My personal experience is ubuntu2204 handles everything needed...
Thanks, I am doing the same thing with you. My tool has named gocallstack. Here is the usage if you Interested:
// installation
go install github.com/xing393939/gotools/cmd/gocallstack@latest
// this will output a web url likes "http://getlocx.net/callstack?demo=xxx"
gocallstack -p 'net/http.*' ./example
// visit the website and it would show the call stack.
My tool is depend on golang dlv, it processes very slow, I am just looking for the ebpf solution for it.
My version is:
My kernel is 4.19.104, does it too low? Someone says it need 5.8+.