pyroscope
pyroscope copied to clipboard
epbf: Propagate PID namespace to kernel space
If the ebpf profiler is running on another namespace than the host PID namespace, then the PIDs that are selected by Grafana Agent are not matching up with the ones collected.
This will respect the PID namespace the original process is running under.
Fixes #3002 #1994
Note this is based on #2996