You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
459 B
Bash
19 lines
459 B
Bash
4 years ago
|
#!/bin/bash
|
||
|
|
||
|
BUILD_DIR=$1
|
||
|
|
||
|
if [[ -z $(lsmod | grep vmread ) ]]; then
|
||
|
echo loading vmread module
|
||
|
if [[ ! -f $BUILD_DIR/vmread.ko ]]; then
|
||
|
echo build vmread first!
|
||
|
exit
|
||
|
fi
|
||
|
sudo insmod $BUILD_DIR/vmread.ko
|
||
|
fi
|
||
|
|
||
|
echo "Running external mode..."
|
||
|
sudo ./build/example | tail -n 5 > read_external
|
||
|
echo "Running kernel mapped mode..."
|
||
|
sudo ./build/kmod_example | tail -n 5 > read_kmod
|
||
|
gnuplot perf_plot.p
|