josepdcs / kubectl-prof

kubectl-prof is a kubectl plugin to profile applications on kubernetes with minimum overhead
Apache License 2.0
35 stars 3 forks source link

Use CO-RE to remove dependency on host machine kernel headers? #35

Open maxweisel opened 5 months ago

maxweisel commented 5 months ago

Hey all, I've been able to get kubectl-prof working with the perf profiler and it works beautifully (thanks for the hard work here!). However, I'd really like to use the eBPF profiler, but on DigitalOcean, their host instances do not have the kheaders module available.

I've reached out to DO and it doesn't seem like the lack of kheaders is going to change anytime soon. I was looking at CO-RE (https://web.archive.org/web/20220522105208/https://www.seekret.io/blog/handling-the-challenge-of-deploying-ebpf-into-the-wild/) as a potential work around.

Is this something that I could help implement here?

josepdcs commented 5 months ago

Thank you for the suggestion. I will study this functionality.

maxweisel commented 5 months ago

Let me know if there's a way I can help implement it!