2012-10-30 07:48:12 +01: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 02:44:13 +01:00
|
|
|
|
2012-09-28 05:56:46 +02:00
|
|
|
echo 'Recording performnce stats...'
|
2011-12-01 02:44:13 +01:00
|
|
|
|
2013-04-29 04:43:11 +02: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 05:56:46 +02:00
|
|
|
perf record ./megaglest $@
|
|
|
|
|
|
|
|
perf report
|