zz85 / profile-bee

🐝🦀🔥 An ebpf based CPU profiler written in Rust
MIT License
29 stars 1 forks source link

Compute offsets correctly #1

Open zz85 opened 1 year ago

zz85 commented 1 year ago

This would cause user stacks to not display correctly if offsets are not calculated correct.

I'll need to dig a little deeper into whether that's because of .text sections or relocations.

This commit may be interesting to reference how offsets can be computed https://github.com/mstange/samply/commit/193e336a275b4e1c82b18572c94ce602f4c24b7f

zz85 commented 1 year ago

a tool https://github.com/yoshinorim/quickstack referenced from http://poormansprofiler.org/ that could be interesting as an example of getting stacks