This repository has been archived on 2026-03-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
ubports_kernel_google_msm/debian/tools/perf
Tim Gardner 6916e57f0f UBUNTU: (debian) vanilla debian rules
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
2014-01-09 07:43:32 -07:00

17 lines
367 B
Bash

#!/bin/bash
full_version=`uname -r`
# Removing flavour from version i.e. generic or server.
flavour_abi=${full_version#*-}
flavour=${flavour_abi#*-}
version=${full_version%-$flavour}
perf="perf_$version"
if ! which "$perf" > /dev/null; then
echo "$perf not found" >&2
echo "You may need to install linux-tools-$version" >&2
exit 2
fi
exec "$perf" "$@"