Re: [PATCH bpf-next] kbuild, bpf: Enable reproducible BTF generation

From: Thomas Weißschuh
Date: Wed Jan 22 2025 - 13:51:33 EST


On 2024-12-11 00:23:50+0100, Thomas Weißschuh wrote:
> Pahole v1.27 added a new BTF generation feature to support
> reproducibility in the face of multithreading.
> Enable it if supported and reproducible builds are requested.
>
> As unknown --btf_features are ignored, avoid the test for the pahole
> version to keep the line readable.

Since pahole v1.29 this patch is obsolete. From [0]:

BTF encoder:

- The parallel reproducible BTF generation done using the new DWARF loader
multithreading model is as fast as the old non-reproducible one and thus is
now always performed, making the "reproducible_build" flag moot.


[0] https://lore.kernel.org/lkml/Z4-TDt42dTKZvCo6@x1/