Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rvansa opened this issue Dec 18, 2020 · 1 comment
Open

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

rvansa opened this issue Dec 18, 2020 · 1 comment

Comments

@rvansa
Copy link

rvansa commented Dec 18, 2020

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.

@vincentmli
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants