[llvm] [BOLT] Add Dockerfile for testing (PR #173066)

Paschalis Mpeis via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 22 08:41:26 PST 2025


================
@@ -0,0 +1,49 @@
+FROM docker.io/library/ubuntu:24.04 AS builder
+
+# Install perf as it is missing from 24.04 packages:
+# https://bugs.launchpad.net/ubuntu/+source/linux-hwe-6.14/+bug/2117147
+
+ARG PERF_VER=6.17
+RUN set -eux; \
+  apt-get update; \
+  apt-get install -y --no-install-recommends \
+    ca-certificates wget xz-utils \
+    libtraceevent-dev libtracefs-dev \
+    build-essential flex bison \
+    libelf-dev libdw-dev zlib1g-dev liblzma-dev libcap-dev libnuma-dev \
+    python3 python3-dev python3-setuptools \
+    pkg-config; \
+  rm -rf /var/lib/apt/lists/*; \
+  wget -O /tmp/perf.tar.xz "https://mirrors.edge.kernel.org/pub/linux/kernel/tools/perf/v${PERF_VER}.0/perf-${PERF_VER}.0.tar.xz"; \
----------------
paschalis-mpeis wrote:

Thanks Peter. Good idea, proceeded with both suggestions!

https://github.com/llvm/llvm-project/pull/173066


More information about the llvm-commits mailing list