Skip to content

Commit e502f46

Browse files
[CI][Bench] Install perf in proper version (#20493)
To fix issue: `WARNING: perf not found for kernel 6.17.0-6` ref. https://github.com/intel/llvm/actions/runs/18870710633/job/53848872196#step:19:1241 For self-hosted machines kernel packages installed in docker may be unsuitable - install packages required for `perf` in each workflow run (to match the actual host).
1 parent 0289b15 commit e502f46

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

devops/actions/run-tests/benchmark/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,13 @@ runs:
161161
sudo cmake --install build
162162
163163
cd -
164+
# Linux tools installed during docker creation may not match the self-hosted
165+
# kernel version, so we need to install the correct version here.
166+
- name: Install perf in version matching the host kernel
167+
shell: bash
168+
run: |
169+
sudo apt-get update
170+
sudo apt-get install -y linux-tools-$(uname -r)
164171
- name: Set env var for results branch
165172
shell: bash
166173
run: |

devops/scripts/benchmarks/utils/flamegraph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def setup(
6767
"""
6868
if not shutil.which("perf"):
6969
raise FileNotFoundError(
70-
"perf command not found. Please install linux-tools or perf package."
70+
"perf command not found. Please install linux-tools-$(uname -r) or perf package."
7171
)
7272

7373
sanitized_suite_name = sanitize_filename(suite_name)

0 commit comments

Comments
 (0)