From 3ab267bbf622367b593fccb1aa04ae171baa4a40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Stolarczuk?= Date: Tue, 28 Oct 2025 16:17:25 +0100 Subject: [PATCH] [CI][Bench] Install perf in proper version in benchmark runs --- devops/actions/run-tests/benchmark/action.yml | 7 +++++++ devops/scripts/benchmarks/utils/flamegraph.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/devops/actions/run-tests/benchmark/action.yml b/devops/actions/run-tests/benchmark/action.yml index 13dc4cf7cbf66..5ba7424870548 100644 --- a/devops/actions/run-tests/benchmark/action.yml +++ b/devops/actions/run-tests/benchmark/action.yml @@ -140,6 +140,13 @@ runs: shell: bash run: | git clone -b unify-ci https://github.com/intel/llvm-ci-perf-results + # Linux tools installed during docker creation may not match the self-hosted + # kernel version, so we need to install the correct version here. + - name: Install perf in version matching the host kernel + shell: bash + run: | + sudo apt-get update + sudo apt-get install -y linux-tools-$(uname -r) - name: Run compute-benchmarks env: # Need to append "__" to save name in order to follow diff --git a/devops/scripts/benchmarks/utils/flamegraph.py b/devops/scripts/benchmarks/utils/flamegraph.py index 9e445855cc054..0841f12236888 100644 --- a/devops/scripts/benchmarks/utils/flamegraph.py +++ b/devops/scripts/benchmarks/utils/flamegraph.py @@ -67,7 +67,7 @@ def setup( """ if not shutil.which("perf"): raise FileNotFoundError( - "perf command not found. Please install linux-tools or perf package." + "perf command not found. Please install linux-tools-$(uname -r) or perf package." ) sanitized_suite_name = sanitize_filename(suite_name)