bcc icon indicating copy to clipboard operation
bcc copied to clipboard

Alternative path to resolve symbols from (like perf --symfs)

Open rvansa opened this issue 4 years ago • 1 comments

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.

rvansa avatar Dec 18 '20 17:12 rvansa

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

vincentmli avatar Jul 20 '22 13:07 vincentmli