drm/rockchip: Don't change hdmi reference clock rate
[drm/drm-misc.git] / tools / perf / tests / shell / lib / perf_has_symbol.sh
blob561c93b75d77a57a28531a60d91d833cd689f24a
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
4 perf_has_symbol()
6 if perf test -vv -F "Symbols" 2>&1 | grep "[[:space:]]$1$"; then
7 echo "perf does have symbol '$1'"
8 return 0
9 fi
10 echo "perf does not have symbol '$1'"
11 return 1
14 skip_test_missing_symbol()
16 if ! perf_has_symbol "$1" ; then
17 echo "perf is missing symbols - skipping test"
18 exit 2
20 return 0