Skip to content

Commit bd9d73d

Browse files
aledbfclaude
andcommitted
kernel: perf without the debuginfod client
perf found libdebuginfod in the base image and linked it; the root has no libdebuginfod (Wolfi ships the library in -dev alone), so image check refused the root and construct kernel-profile's perf would not have started on a machine. Recording needs no debuginfod. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent b6f124c commit bd9d73d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎kernel/Dockerfile‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,12 @@ RUN make -s -C linux/tools/power/x86/turbostat && \
135135
# perf, from the same tree: what records the kernel's taken branches on a machine for its AutoFDO
136136
# profile (construct kernel-profile). Only what recording needs - no scripting, no TUI. Its event
137137
# tables (jevents), which name BR_INST_RETIRED, are generated by the python python3-config names:
138-
# perf's own need, so installed here.
138+
# perf's own need, so installed here. No debuginfod client: perf links it when the base image
139+
# has it, and the root does not (image check), so perf would not start on a machine.
139140
RUN apk add --no-cache python-3-dev && \
140141
make -s -C linux/tools/perf NO_LIBPYTHON=1 NO_LIBPERL=1 NO_SLANG=1 NO_GTK2=1 NO_JVMTI=1 \
141142
NO_LIBBABELTRACE=1 NO_LIBUNWIND=1 NO_LIBNUMA=1 NO_SDT=1 NO_LIBTRACEEVENT=1 NO_LIBLLVM=1 \
142-
BUILD_BPF_SKEL=0 && \
143+
NO_LIBDEBUGINFOD=1 BUILD_BPF_SKEL=0 && \
143144
install -Dm755 linux/tools/perf/perf /out/modules/usr/bin/perf
144145

145146
FROM scratch AS kernel

0 commit comments

Comments
 (0)