]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bpf: Add --skip_encoding_btf_inconsistent_proto, --btf_gen_optimized to pahole flags...
authorAlan Maguire <alan.maguire@oracle.com>
Wed, 10 May 2023 13:02:41 +0000 (14:02 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 12 May 2023 18:47:05 +0000 (11:47 -0700)
commit7b99f75942da332e3f4f865e55a10fec95a30d4f
tree12feec89131ec0c14fa6f65acf9075c773bf6ca1
parent6e61c5fa4d43d4c3f780f74ba6b08dba80bd653a
bpf: Add --skip_encoding_btf_inconsistent_proto, --btf_gen_optimized to pahole flags for v1.25

v1.25 of pahole supports filtering out functions with multiple inconsistent
function prototypes or optimized-out parameters from the BTF representation.
These present problems because there is no additional info in BTF saying which
inconsistent prototype matches which function instance to help guide attachment,
and functions with optimized-out parameters can lead to incorrect assumptions
about register contents.

So for now, filter out such functions while adding BTF representations for
functions that have "."-suffixes (foo.isra.0) but not optimized-out parameters.
This patch assumes that below linked changes land in pahole for v1.25.

Issues with pahole filtering being too aggressive in removing functions
appear to be resolved now, but CI and further testing will confirm.

Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20230510130241.1696561-1-alan.maguire@oracle.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
scripts/pahole-flags.sh