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

kbuild, bpf: reproducible BTF from pahole when KBUILD_BUILD_TIMESTAMP set #7286

Closed

Conversation

kernel-patches-daemon-bpf[bot]
Copy link

Pull request for series with
subject: kbuild, bpf: reproducible BTF from pahole when KBUILD_BUILD_TIMESTAMP set
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=867235

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 03922e9
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=867235
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: e4a195e
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=867235
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 9474f72
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=867235
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: da5f8fd
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=867235
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 69716e4
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=867235
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: fd8db07
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=867235
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: a5912c3
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=867235
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: bc239eb
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=867235
version: 1

… set

Reproducible builds [1] require that the same source code with
the same set of tools can build identical objects each time,
but pahole in parallel mode was non-deterministic in
BTF generation prior to

dba7b5e ("pahole: Encode BTF serially in a reproducible build")

This was a problem since said BTF is baked into kernels and modules in
.BTF sections, so parallel pahole was causing non-reproducible binary
generation.  Now with the above commit we have support for parallel
reproducible BTF generation in pahole.

KBUILD_BUILD_TIMESTAMP is set for reproducible builds, so if it
is set, add reproducible_build to --btf_features.

[1] Documentation/kbuild/reproducible-builds.rst

Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
@kernel-patches-daemon-bpf
Copy link
Author

Upstream branch: 02480fe
series: https://patchwork.kernel.org/project/netdevbpf/list/?series=867235
version: 1

@kernel-patches-daemon-bpf
Copy link
Author

At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=867235 expired. Closing PR.

@kernel-patches-daemon-bpf kernel-patches-daemon-bpf bot deleted the series/867235=>bpf-next branch July 11, 2024 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant