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

Make 'perf' friendlier to non-Ubuntu Docker hosts #333

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xiphmont
Copy link
Contributor

@xiphmont xiphmont commented Dec 1, 2022

Debian's scripted perf wrapper does not work when run in Docker on a non Debian/Ubuntu host. Specifically it insists on a Debian kernel and perf matching its own naming scheme, and the kernel is an impossibility on eg RH.

We don't need kernel symbols, just the userland interface, so any close 'linux-tools-*-generic' will work. Extend the script wrapper to look for these close matches, and install this extended perf when building Dockerfile.worker

Debian's scripted perf wrapper does not work when run in Docker on a
non Debian/Ubuntu host.  Specifically it insists on a Debian kernel
and perf matching its own naming scheme, and the kernel is an
impossibility on eg RH.

We don't need kernel symbols, just the userland interface, so any
close 'linux-tools-*-generic' will work. Extend the script wrapper to
look for these close matches, and install it when building Dockerfile.worker
@xiphmont xiphmont requested review from tdaede and vibhoothi December 1, 2022 18:25
Copy link
Collaborator

@vibhoothi vibhoothi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch,

Sorry I did not get time to check it in AWCY workers manually pasted and verified it on one of the runners, just realised that the filename should be perf^^,
Great SGTM

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

Successfully merging this pull request may close these issues.

2 participants