diff options
author | Ken Sumrall <ksumrall@android.com> | 2012-08-13 22:34:58 -0700 |
---|---|---|
committer | Ken Sumrall <ksumrall@android.com> | 2012-08-13 22:36:57 -0700 |
commit | b20f33f727e77c00b5b8176a541d5ddfbd469fef (patch) | |
tree | 003ff53212b38dd9ab857fdf95d333f7f947548b | |
parent | fceba519e6b9ed17b9f05d292f363cda2412edf4 (diff) | |
download | extras-b20f33f727e77c00b5b8176a541d5ddfbd469fef.tar.gz |
Add manta support to android_emmc_perf_tests.sh
Also tweak the script a little bit. This is only for testing,
and doesn't ship in any product.
Change-Id: I9506d6babddef91fc6d9c0083064e0ef8a2d70a8
-rwxr-xr-x | tests/ext4/android_emmc_perf_tests.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/ext4/android_emmc_perf_tests.sh b/tests/ext4/android_emmc_perf_tests.sh index 23190f8c..202c0951 100755 --- a/tests/ext4/android_emmc_perf_tests.sh +++ b/tests/ext4/android_emmc_perf_tests.sh @@ -7,11 +7,6 @@ then echo "Cannot read $PERF test binary" fi -if [ ! -r "$PERF_OSYNC" ] -then - echo "Cannot read $PERF_OSYNC test binary" -fi - if ! adb shell true >/dev/null 2>&1 then echo "No device detected over adb" @@ -49,6 +44,11 @@ case "$HARDWARE" in CACHE="/dev/block/platform/sdhci-tegra.3/by-name/CAC" ;; + manta) + CPUFREQ="/sys/devices/system/cpu/cpu0/cpufreq" + CACHE="/dev/block/platform/dw_mmc.0/by-name/cache" + ;; + *) echo "Unknown hardware $HARDWARE. Exiting." exit 1 @@ -58,7 +58,6 @@ esac adb root adb wait-for-device adb push "$PERF" /dev -adb push "$PERF_OSYNC" /dev adb shell stop adb shell stop sdcard adb shell stop ril-daemon @@ -99,6 +98,7 @@ done # Random read test for I in 1 2 3 do + adb shell "echo 3 > /proc/sys/vm/drop_caches" echo "Random read test $I" adb shell /dev/"$PERF" -r 100 "$CACHE" done @@ -114,7 +114,7 @@ done for I in 1 2 3 do echo "Random write with o_sync test $I" - adb shell /dev/"$PERF" -w 100 -o "$CACHE" + adb shell /dev/"$PERF" -w -o 100 "$CACHE" done # Make a new empty /cache filesystem |