Skip to content

Commit

Permalink
build pahole v1.23 from source
Browse files Browse the repository at this point in the history
We need pahole >= 1.23 so it generates BTF_KIND_DECL_TAG and BTF_KIND_TYPE_TAG.

See cilium/ebpf#713
  • Loading branch information
lmb committed Jul 19, 2022
1 parent 3320a5d commit 1487523
Show file tree
Hide file tree
Showing 29 changed files with 67 additions and 46 deletions.
7 changes: 6 additions & 1 deletion Dockerfile
Expand Up @@ -6,7 +6,8 @@ COPY bullseye-backports.list /etc/apt/sources.list.d

RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
gcc g++ make git libssl-dev bison flex libelf-dev libssl-dev libc-dev libc6-dev-i386 libcap-dev bc \
tar xz-utils curl ca-certificates python3-pip python3-setuptools python3-docutils pahole/bullseye-backports rsync \
tar xz-utils curl ca-certificates python3-pip python3-setuptools python3-docutils rsync \
cmake libdw-dev \
&& rm -rf /var/lib/apt/lists/*

# The LLVM repos need ca-certificates to be present.
Expand All @@ -19,6 +20,10 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install --no-instal

RUN pip3 install https://github.com/amluto/virtme/archive/refs/heads/master.zip

ENV PAHOLE_TAG=v1.23
COPY pahole.sh /pahole.sh
RUN /pahole.sh ${PAHOLE_TAG} && rm /pahole.sh

VOLUME /work

CMD ["/work/make.sh"]
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
1657105395
1658247218
4 changes: 2 additions & 2 deletions linux-4.14-selftests-bpf.tgz
Git LFS file not shown
4 changes: 2 additions & 2 deletions linux-4.14.282-selftests-bpf.tgz
Git LFS file not shown
2 changes: 1 addition & 1 deletion linux-4.14.282.bz
Git LFS file not shown
2 changes: 1 addition & 1 deletion linux-4.14.bz
Git LFS file not shown
4 changes: 2 additions & 2 deletions linux-4.19-selftests-bpf.tgz
Git LFS file not shown
4 changes: 2 additions & 2 deletions linux-4.19.246-selftests-bpf.tgz
Git LFS file not shown
2 changes: 1 addition & 1 deletion linux-4.19.246.bz
Git LFS file not shown
2 changes: 1 addition & 1 deletion linux-4.19.bz
Git LFS file not shown
2 changes: 1 addition & 1 deletion linux-4.9.317.bz
Git LFS file not shown
2 changes: 1 addition & 1 deletion linux-4.9.bz
Git LFS file not shown
4 changes: 2 additions & 2 deletions linux-5.10-selftests-bpf.tgz
Git LFS file not shown
4 changes: 2 additions & 2 deletions linux-5.10.76-selftests-bpf.tgz
Git LFS file not shown
4 changes: 2 additions & 2 deletions linux-5.10.76.bz
Git LFS file not shown
4 changes: 2 additions & 2 deletions linux-5.10.bz
Git LFS file not shown
4 changes: 2 additions & 2 deletions linux-5.15-selftests-bpf.tgz
Git LFS file not shown
4 changes: 2 additions & 2 deletions linux-5.15.19-selftests-bpf.tgz
Git LFS file not shown
4 changes: 2 additions & 2 deletions linux-5.15.19.bz
Git LFS file not shown
4 changes: 2 additions & 2 deletions linux-5.15.bz
Git LFS file not shown
4 changes: 2 additions & 2 deletions linux-5.18-selftests-bpf.tgz
Git LFS file not shown
4 changes: 2 additions & 2 deletions linux-5.18.10-selftests-bpf.tgz
Git LFS file not shown
4 changes: 2 additions & 2 deletions linux-5.18.10.bz
Git LFS file not shown
4 changes: 2 additions & 2 deletions linux-5.18.bz
Git LFS file not shown
4 changes: 2 additions & 2 deletions linux-5.4-selftests-bpf.tgz
Git LFS file not shown
4 changes: 2 additions & 2 deletions linux-5.4.197-selftests-bpf.tgz
Git LFS file not shown
2 changes: 1 addition & 1 deletion linux-5.4.197.bz
Git LFS file not shown
2 changes: 1 addition & 1 deletion linux-5.4.bz
Git LFS file not shown
16 changes: 16 additions & 0 deletions pahole.sh
@@ -0,0 +1,16 @@
#!/bin/sh
# A script to install pahole from source.

set -eu

tmp="$(mktemp -d)"
trap 'rm -rf "$tmp"' EXIT
readonly tmp

cd "$tmp"
git clone --recurse-submodules --branch "$1" --single-branch https://git.kernel.org/pub/scm/devel/pahole/pahole.git pahole
mkdir pahole/build
cd pahole/build
cmake -D__LIB=lib ..
make install
ldconfig

0 comments on commit 1487523

Please sign in to comment.