-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Linux Perf tool does not work as expected in Linux ARM runners #11689
Comments
Hi @visheshruparelia Thank you for bringing this issue to our attention. We are looking into this issue and will update you on this issue after investigating. |
Hi @visheshruparelia Could you please try with the below workflow for the Linux ARM runner and It is displaying the output.Thanks. FYI: |
Thank you @RaviAkshintala for looking into this. May I ask why |
@visheshruparelia Some ARM architectures might not support the same |
@RaviAkshintala when I run ![]() |
@RaviAkshintala If the hardware did not support the given event,
|
Description
In Linux ARM based runners, the perf record command does not collect any samples.
I have set the
kernel.perf_event_paranoid=1
andkernel.kptr_restrict=0
. Upon running the command:sudo perf record -g -e cycles -a -o perf.data sleep 5
it collects no samples in case of Linux ARM runners.The same command works just fine in Linux x64 runners.
This can be consistently reproduced and reproducer can be found here: https://github.com/visheshruparelia/gh-linux-arm-perf-tool-issue
Platforms affected
Runner images affected
Image version and build link
Please check the reproducer build here: https://github.com/visheshruparelia/gh-linux-arm-perf-tool-issue/actions/runs/13587925274
When you compare the output of the step named
View perf output
on both the different runners, you can clearly see that it works as expected inx64
but does not collect any data inARM
.Is it regression?
Yes - this is not seen any Linux x64 machines.
Expected behavior
The Linux ARM machine should also produce output similar to x64 machine in the last step of the job (name:
View perf output
).Actual behavior
The ARM machine does not collect any samples and thus the output is empty.
Repro steps
Run the following steps on Linux ARM runner and the last step will give an empty output.
I have created a simple reproducer for your convenience: https://github.com/visheshruparelia/gh-linux-arm-perf-tool-issue/blob/main/.github/workflows/perf-tool-issue.yml
The text was updated successfully, but these errors were encountered: