aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2024-04-15 14:26:33 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2024-04-15 14:51:21 -0300
commita9738ddc828d5ea0bc1d0817efa7f7b58d1e2841 (patch)
tree8dbf91341ff8f0430210cdc7211b4b23bd0964c2
parentd7edf9ae0388fb973f7c6a7328a975a7dbd51b91 (diff)
downloadpahole-a9738ddc828d5ea0bc1d0817efa7f7b58d1e2841.tar.gz
tests/reproducible_build: Use --btf_features=all when encoding
Alan suggested: "What about adding --btf_features=all as this would mean we'd be encoding all the standard kernel features? we'd need to do the same below in the thread loop. without that we're missing out on a few features that the kernel builds use in BTF encoding, and we probably want to ensure that we're testing as close to a real kernel BTF encoding scenario as possible." Do it. Suggested-by: Alan Maguire <alan.maguire@oracle.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kui-Feng Lee <kuifeng@fb.com> Cc: Thomas Weißschuh <linux@weissschuh.net> Link: https://lore.kernel.org/lkml/3817fa6d-122f-4cbc-92be-616355ec04c2@oracle.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rwxr-xr-xtests/reproducible_build.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/reproducible_build.sh b/tests/reproducible_build.sh
index b821e28e..8cc36fe4 100755
--- a/tests/reproducible_build.sh
+++ b/tests/reproducible_build.sh
@@ -22,14 +22,14 @@ echo -n "Parallel reproducible DWARF Loading/Serial BTF encoding: "
test -n "$VERBOSE" && printf "\nserial encoding...\n"
-pahole --btf_encode_detached=$outdir/vmlinux.btf.serial $vmlinux
+pahole --btf_features=all --btf_encode_detached=$outdir/vmlinux.btf.serial $vmlinux
bpftool btf dump file $outdir/vmlinux.btf.serial > $outdir/bpftool.output.vmlinux.btf.serial
nr_proc=$(getconf _NPROCESSORS_ONLN)
for threads in $(seq $nr_proc) ; do
test -n "$VERBOSE" && echo $threads threads encoding
- pahole -j$threads --reproducible_build --btf_encode_detached=$outdir/vmlinux.btf.parallel.reproducible $vmlinux &
+ pahole -j$threads --reproducible_build --btf_features=all --btf_encode_detached=$outdir/vmlinux.btf.parallel.reproducible $vmlinux &
pahole=$!
# HACK: Wait a bit for pahole to start its threads
sleep 0.3s