bcc
bcc copied to clipboard
Alternative path to resolve symbols from (like perf --symfs)
I am trying to generate offcpu flamegraphs using offcputime
in a container, and I am interested in data about another container. These two containers share process namespace. I have mounted kernel sources and debug symbols into the container with BCC and but obviously the filesystem differs on target and BCC container.
With perf
(for on-cpu flamegraphs) I've been able to mount a copy of the other container image to another directory and point perf
there using --symfs
- I've seen some code in BCC allowing the same but can't find how to use it from the tools like offcputime
. Thanks for hints.
I ran some perf test in k8s environment, I ran a process with gcc flag fno-omit-frame-pointer
compiled in container, I am able to run perf in host to record the process like perf record -p <pid of process>
, then perf report
to get the process symbols displayed, but if i ran perf top -p
pidof process`, perf is unable to resolve the process symbol running in container, just my observation