parca-dev / parca-agent

eBPF based always-on profiler auto-discovering targets in Kubernetes and systemd, zero code changes or restarts needed!
https://parca.dev/
Apache License 2.0
547 stars 68 forks source link

[Experiment] Use BTF to fetch debuginfo #736

Open v-thakkar opened 2 years ago

v-thakkar commented 2 years ago

Instead of using DWARF data from debuginfo packages, we can potentially collect debug info directly via BTF+kallsyms.

kakkoyun commented 2 years ago

Instead of using DWARF data from debuginfo packages, we can potentially collect debug info directly via BTF+kallsyms.

Could you please elaborate on this a little bit more? Is this for Kernel? Or user processes?

v-thakkar commented 2 years ago

For kernel. We can potentially avoid relying on debug info files. It's just an idea at this point. So I haven't gotten much far though. https://lore.kernel.org/lkml/878rqs163s.fsf@stepbren-lnx.us.oracle.com/T/

kakkoyun commented 2 years ago

Right now, we only use kallsyms. We don't check additional debug info files for the Kernel. That being said, I'm not sure how the relationship between debug files and kallsyms works. We need to investigate that.