From 68f587e3ae9c58736e18422c43411653b06e8f0b Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Mon, 29 Apr 2013 02:43:11 +0000 Subject: [PATCH] updated with echo comment to indicate how to get perf working in ubuntu --- mk/linux/mg_perf.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mk/linux/mg_perf.sh b/mk/linux/mg_perf.sh index 8ad5cb33..b177f03b 100755 --- a/mk/linux/mg_perf.sh +++ b/mk/linux/mg_perf.sh @@ -6,6 +6,13 @@ echo 'Recording performnce stats...' +echo 'cat /proc/sys/kernel/kptr_restrict' +echo '1' +#echo 'echo 0 > /proc/sys/kernel/kptr_restrict' +echo 'sudo sh -c "echo 0 > /proc/sys/kernel/kptr_restrict"' +echo 'cat /proc/sys/kernel/kptr_restrict' +echo '0' + perf record ./megaglest $@ perf report