grafana / pyroscope

Continuous Profiling Platform. Debug performance issues down to a single line of code
https://grafana.com/oss/pyroscope/
GNU Affero General Public License v3.0
9.98k stars 598 forks source link

pyroscope with eBPF #2919

Open ColdV opened 8 months ago

ColdV commented 8 months ago

when i use pyroscope with eBPF i get this error: POPO-screenshot-20240112-181359 no BTF found for kernel how to fix this error, please help me

Rperry2174 commented 8 months ago

hi @ColdV please give us more information about your system as well as your configuration for the grafana agent. have you taken a look at the ebpf example in the examples folder?

korniltsev commented 8 months ago

your kernel is either too old or compiled without CONFIG_DEBUG_INFO_BTF

we will need to add some support for providing custom arbitrary files which can be downloaded https://github.com/aquasecurity/btfhub

ColdV commented 8 months ago

hi @ColdV please give us more information about your system as well as your configuration for the grafana agent. have you taken a look at the ebpf example in the examples folder?

this is my system info: POPO-screenshot-20240113-010319 and yes, i looked the ebpf example, and config same as the example. this is my grafana agent config for ebpf: POPO-screenshot-20240113-010434

ColdV commented 8 months ago

your kernel is either too old or compiled without CONFIG_DEBUG_INFO_BTF

we will need to add some support for providing custom arbitrary files which can be downloaded https://github.com/aquasecurity/btfhub

i will try it

korniltsev commented 8 months ago

i will try it

we will need to write some code and update agent before you try

ColdV commented 8 months ago

I have solved the above problem. but i encountered a new problem: POPO-screenshot-20240114-231842 POPO-screenshot-20240114-231855

i use ebpf for a C++ program. but encountered this problem when start grafana agent

ColdV commented 8 months ago

i will try it

we will need to write some code and update agent before you try

please, i use Grafana-Agent-Flow to collect C++ program. i see the grafana-agent send these msg to C++ program: POPO-screenshot-20240115-231711 and C++ program not process these msg.

and grafana-agent self show these log: POPO-screenshot-20240115-231817

finally i collect c++ program's profiles failed. so, i must process the msg from grafana-agent-flow sent? or what should I do?