SHA256
1
0
forked from pool/oprofile
oprofile/oprofile-0.9.7-watchdog.diff

18 lines
677 B
Diff
Raw Normal View History

diff -wur oprofile-0.9.7/utils/opcontrol oprofile-0.9.7-nu/utils/opcontrol
--- oprofile-0.9.7/utils/opcontrol 2011-07-20 16:36:48.000000000 -0300
+++ oprofile-0.9.7-nu/utils/opcontrol 2011-12-24 11:36:16.141000284 -0300
@@ -1211,10 +1211,10 @@
echo $3 >$MOUNT/$1/$2
else
echo -n "Error: counter $1 not available"
- if test -e /proc/sys/kernel/nmi_watchdog; then
- echo " nmi_watchdog using this resource ? Try:"
+ if test -e /proc/sys/kernel/watchdog; then
+ echo " watchdog using this resource ? Try:"
echo "opcontrol --deinit"
- echo "echo 0 > /proc/sys/kernel/nmi_watchdog"
+ echo "echo 0 > /proc/sys/kernel/watchdog"
fi
exit 1
fi