2 # SPDX-License-Identifier: GPL-2.0
6 if ! [ -x "$(command -v ${PAHOLE})" ]; then
10 pahole_ver=$(${PAHOLE} --version | sed -E 's/v([0-9]+)\.([0-9]+)/\1\2/')
12 if [ "${pahole_ver}" -ge "118" ] && [ "${pahole_ver}" -le "121" ]; then
13 # pahole 1.18 through 1.21 can't handle zero-sized per-CPU vars
14 extra_paholeopt="${extra_paholeopt} --skip_encoding_btf_vars"
16 if [ "${pahole_ver}" -ge "121" ]; then
17 extra_paholeopt="${extra_paholeopt} --btf_gen_floats"
20 if [ "${pahole_ver}" -ge "124" ]; then
21 extra_paholeopt="${extra_paholeopt} --skip_encoding_btf_enum64"
24 echo ${extra_paholeopt}