1 year ago

#356892

test-img

mR.aTA

Profile a process inside a container from host using perf

I am running docker containers on CentOS 7. If run perf on the PID on the host node I get an error about symbols not being found. This seems to be because it looks for the path of the file relative to the container but on the host node's filesystem.

If I copy the required binary files to the expected path on the host node then perf works from the host node since it can find the same symbols that match the binary files in the container (though it's not possible to create equivalent paths on host to match all).

Is there a better/cleaner way to run perf against a process running in a container with a CentOS 7 host?

docker

centos7

perf

0 Answers

Your Answer

Accepted video resources