xuexiaolei / rpms / kernel-rt

Forked from rpms/kernel-rt 4 years ago
Clone

Blame SOURCES/perf

19f436
#!/bin/sh
19f436
19f436
# In pathological situations, this will print some error about uname.
19f436
kverrel="`uname -r`" || exit
19f436
19f436
exec "/usr/libexec/perf.$kverrel" ${1+"$@"}
19f436
rc=$?
19f436
19f436
# We're still here, so the exec failed.
19f436
echo >&2 "Sorry, your kernel ($kverrel) doesn't support perf."
19f436
19f436
exit $rc