summaryrefslogtreecommitdiffstats
path: root/perf
blob: ea8980694a2bc58cd3d19c8c6fa89190926a8080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# In pathological situations, this will print some error about uname.
kverrel="`uname -r`" || exit

exec "/usr/libexec/perf.$kverrel" ${1+"$@"}
rc=$?

# We're still here, so the exec failed.
echo >&2 "Sorry, your kernel ($kverrel) doesn't support perf."

exit $rc