diff options
| author | Lee Susman <lsusman@codeaurora.org> | 2014-12-04 15:29:46 +0200 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:01:45 -0700 |
| commit | da2d513f18ea787099c08dfabd50408494bd7efd (patch) | |
| tree | d93948aea01f8b13a78ca2d2cb028897475ebb32 /include/linux | |
| parent | a3c942633cb27ee8c896454a070585d236a740d0 (diff) | |
mmc: enhance long_sequential_test for higher throughput
Change the test design so that requests are dynamically created
and freed. This enables running tests with more than 128 requests,
therefore more than 50MiB can be written/read and makes it possible
to measure driver write/read throughput more accurately.
Change-Id: I56c9d6c1afba5c91a0621a16d97feafd4689521d
Signed-off-by: Lee Susman <lsusman@codeaurora.org>
[merez@codeaurora.org: fix conflicts due to BKOPS tests removal]
Signed-off-by: Maya Erez <merez@codeaurora.org>
[venkatg@codeaurora.org: Drop changes to mmc_block_test.c]
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/test-iosched.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/test-iosched.h b/include/linux/test-iosched.h index fda835a6f7a4..d69dcea4978b 100644 --- a/include/linux/test-iosched.h +++ b/include/linux/test-iosched.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2012, The Linux Foundation. All rights reserved. +/* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -132,6 +132,8 @@ struct test_request { * @test_duration: A jiffies value saved for timing * calculations * @data: Test specific private data + * @test_byte_count: Total number of bytes dispatched in + * the test */ struct test_info { int testcase; @@ -144,6 +146,7 @@ struct test_info { unsigned long test_duration; get_rq_disk_fn *get_rq_disk_fn; void *data; + unsigned long test_byte_count; }; /** @@ -231,6 +234,7 @@ struct test_data { extern int test_iosched_start_test(struct test_info *t_info); extern void test_iosched_mark_test_completion(void); +extern void check_test_completion(void); extern int test_iosched_add_unique_test_req(int is_err_expcted, enum req_unique_type req_unique, int start_sec, int nr_sects, rq_end_io_fn *end_req_io); |
