Skip to content

Commit 05c2adf

Browse files
committed
Use git protocol for checking out pahole
Parallel downloads from git.kernel.org using HTTPS seems to be blocked, rendering parallel vmlinux.h header generation flaky & unusable. For the kernel source that was addressed by just cloning torvalds/linux. We could switch to https://github.com/acmel/dwarves for pahole, but it seems as if using the git protocol also addresses the problem. So take that path for the time being. Signed-off-by: Daniel Müller <deso@posteo.net>
1 parent d845fa1 commit 05c2adf

2 files changed

Lines changed: 18 additions & 23 deletions

File tree

.github/workflows/vmlinux.h.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,28 @@ jobs:
3434
fetch-depth: 1
3535
path: linux/
3636

37+
- name: Check out pahole source
38+
uses: actions/checkout@v6
39+
with:
40+
repository: 'acmel/dwarves'
41+
ref: 'next'
42+
fetch-depth: 1
43+
path: pahole/
44+
45+
- name: Build pahole
46+
shell: bash
47+
run: |
48+
sudo apt -y install cmake git libdw-dev libelf-dev
49+
cd pahole
50+
mkdir -p build
51+
cmake -B=build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
52+
make -C build -j$(nproc)
53+
sudo make -C build install
54+
3755
- name: Install dependencies
3856
shell: bash
3957
run: |
4058
./scripts/install-dependencies.sh
41-
./scripts/install-pahole.sh
4259
./scripts/install-bpftool.sh
4360
4461
- name: Generate ${{ matrix.arch }}/vmlinux.h

scripts/install-pahole.sh

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)