OSDN Git Service

Add some tools for testing ext4 performance and resiliency.
authorKen Sumrall <ksumrall@android.com>
Wed, 30 May 2012 23:44:40 +0000 (16:44 -0700)
committerKen Sumrall <ksumrall@android.com>
Fri, 15 Jun 2012 00:13:54 +0000 (17:13 -0700)
commit2633ce5ca5024d5565c9068c29ec39a8c3ed10e9
treebe6087153d48f1781461b3d4587c02d5ebfd57ba
parentb9314021ee1ccaa62eb115e8e0188f482a950f3b
Add some tools for testing ext4 performance and resiliency.

rand_emmc_perf is a simple test to test random read/write performance
of emmc chips.  android_emmc_perf_tests is a script that runs on
the host that uses rand_emmc_perf to test the emmc performance on
a device.

corrupt_gdt_free_blocks is used to corrupt a filesystem so the kernel
trips over it at runtime and panics, thus testing kernel's ability to
mark the filesystem as needing to be fixed.

set_ext4_err_bit sets the error bit in the superblock so e2fsck will
trigger a full check next boot.

corrupt_gdt_free_blocks and set_ext4_err_bit are only built for
userdebug and eng builds.  rand_emmc_perf is marked optional, and
not included in any build by default.

Change-Id: I808174025d891f358ac54008371cb590e3c19f2f
tests/ext4/Android.mk [new file with mode: 0644]
tests/ext4/android_emmc_perf_tests.sh [new file with mode: 0755]
tests/ext4/corrupt_gdt_free_blocks.c [new file with mode: 0644]
tests/ext4/rand_emmc_perf.c [new file with mode: 0644]
tests/ext4/set_ext4_err_bit.c [new file with mode: 0644]