22 lines · bash
1#!/bin/sh2# SPDX-License-Identifier: GPL-2.03 4perf_has_symbol()5{6 if perf test -vv -F "Symbols" 2>&1 | grep "[[:space:]]$1$"; then7 echo "perf does have symbol '$1'"8 return 09 fi10 echo "perf does not have symbol '$1'"11 return 112}13 14skip_test_missing_symbol()15{16 if ! perf_has_symbol "$1" ; then17 echo "perf is missing symbols - skipping test"18 exit 219 fi20 return 021}22