19741e07eSJiri Olsa#!/bin/sh 29741e07eSJiri Olsa# SPDX-License-Identifier: GPL-2.0 39741e07eSJiri Olsa 49741e07eSJiri Olsaextra_paholeopt= 59741e07eSJiri Olsa 69741e07eSJiri Olsaif ! [ -x "$(command -v ${PAHOLE})" ]; then 7fc02cb2bSLinus Torvalds exit 0 89741e07eSJiri Olsafi 99741e07eSJiri Olsa 102d6c9810SNathan Chancellorpahole_ver=$($(dirname $0)/pahole-version.sh ${PAHOLE}) 119741e07eSJiri Olsa 129741e07eSJiri Olsaif [ "${pahole_ver}" -ge "118" ] && [ "${pahole_ver}" -le "121" ]; then 139741e07eSJiri Olsa # pahole 1.18 through 1.21 can't handle zero-sized per-CPU vars 149741e07eSJiri Olsa extra_paholeopt="${extra_paholeopt} --skip_encoding_btf_vars" 159741e07eSJiri Olsafi 169741e07eSJiri Olsaif [ "${pahole_ver}" -ge "121" ]; then 179741e07eSJiri Olsa extra_paholeopt="${extra_paholeopt} --btf_gen_floats" 189741e07eSJiri Olsafi 19*b4f72786SKui-Feng Leeif [ "${pahole_ver}" -ge "122" ]; then 20*b4f72786SKui-Feng Lee extra_paholeopt="${extra_paholeopt} -j" 21*b4f72786SKui-Feng Leefi 229741e07eSJiri Olsa 239741e07eSJiri Olsaecho ${extra_paholeopt} 24