#!/bin/sh# SPDX-License-Identifier: GPL-2.0
perf_has_symbol(){if perf test -vv "Symbols"2>&1| grep "[[:space:]]$1$";thenecho"perf does have symbol '$1'"return0fiecho"perf does not have symbol '$1'"return1}
skip_test_missing_symbol(){if ! perf_has_symbol "$1";thenecho"perf is missing symbols - skipping test"exit2fireturn0}