sched-ext / scx

sched_ext schedulers and tools
https://bit.ly/scx_slack
GNU General Public License v2.0
691 stars 48 forks source link

meson: restore previous libbpf version and update bpftool #400

Closed arighi closed 1 week ago

arighi commented 1 week ago

The upstrem bpftool git repo (https://github.com/libbpf/bpftool.git) is periodically force pushed and the specific commit that we needed is not available anymore.

Instead of failing we are actually fetching the latest bpftool (HEAD) that introduced some breakage initially fixed by commit e59c48a6 ("Update libbpf commit hash").

However, updating libbpf seems to introduce a run-time problem and all the schedulers are failing to start:

libbpf: failed to find skeleton map '' libbpf: failed to populate skeleton maps for 'bpf_bpf': -3

So, revert libbpf to the previous version and update the commit for bpftool to use a version that still allows to generate a compatible BPF skel.

Fixes: e59c48a6 ("Update libbpf commit hash")

ptr1337 commented 1 week ago

Fixes the segfaults and co.

Tested-by: Peter Jung ptr1337@cachyos.org

arighi commented 1 week ago

Merging this so that we can continue to build and test the scx schedulers. We will investigate later how to move to the new libbpf properly if it's needed.