Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build pahole v1.23 from source #30

Merged
merged 1 commit into from
Jul 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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