blob: fc2c0797df81e2487d9d4cfbfa321c6a8c6ec808 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
# Execute the right version of perf for the current kernel.
version="$(uname -r)"
version="${version%%-*}"
shopt -s execfail
exec "perf_$version" "$@"
# Not found? Tell the user which package to install.
echo >&2 "E: linux-tools-$version is not installed."
exit 1
|