From da2d513f18ea787099c08dfabd50408494bd7efd Mon Sep 17 00:00:00 2001 From: Lee Susman Date: Thu, 4 Dec 2014 15:29:46 +0200 Subject: 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 [merez@codeaurora.org: fix conflicts due to BKOPS tests removal] Signed-off-by: Maya Erez [venkatg@codeaurora.org: Drop changes to mmc_block_test.c] Signed-off-by: Venkat Gopalakrishnan --- include/linux/test-iosched.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/linux') 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); -- cgit v1.2.3