2012-10-30 06:48:12 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Use this script to gather MegaGlest performance stats
|
|
|
|
# ----------------------------------------------------------------------------
|
|
|
|
# Written by Mark Vejvoda <mark_vejvoda@hotmail.com>
|
|
|
|
# Copyright (c) 2012 Mark Vejvoda under GNU GPL v3.0+
|
2011-12-01 01:44:13 +00:00
|
|
|
|
2012-09-28 03:56:46 +00:00
|
|
|
echo 'Recording performnce stats...'
|
2011-12-01 01:44:13 +00:00
|
|
|
|
2013-04-29 02:43:11 +00:00
|
|
|
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'
|
|
|
|
|
2012-09-28 03:56:46 +00:00
|
|
|
perf record ./megaglest $@
|
|
|
|
|
|
|
|
perf report
|