Skip to content

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