kernel/perf

13 lines
275 B
Plaintext
Raw Normal View History

2010-07-30 00:19:53 +00:00
#!/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