summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorLee Susman <lsusman@codeaurora.org>2014-12-04 00:11:56 +0200
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-22 11:01:40 -0700
commit0162f826f3746efe0aa23698db8009738c89f04e (patch)
tree80e722a6a36c9e31b8f8821197926a5170964836 /block
parenta98628c1c49e40b4de5b4f411439d00d5e7a5f01 (diff)
mmc: card: Add long sequential read test to test-iosched
Long sequential read test measures read throughput at the driver level by reading large requests sequentially. Change-Id: I3b6d685930e1d0faceabbc7d20489111734cc9d4 Signed-off-by: Lee Susman <lsusman@codeaurora.org> [merez@codeaurora.org: Fix conflicts as BKOPS tests were removed] 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 'block')
-rw-r--r--block/test-iosched.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/block/test-iosched.c b/block/test-iosched.c
index 7c5347773759..76178e819e6a 100644
--- a/block/test-iosched.c
+++ b/block/test-iosched.c
@@ -95,6 +95,9 @@ static void check_test_completion(void)
return;
}
+ ptd->test_info.test_duration = jiffies -
+ ptd->test_info.test_duration;
+
test_pr_info("%s: Test is completed", __func__);
test_iosched_mark_test_completion();
@@ -124,7 +127,7 @@ static void end_test_req(struct request *rq, int err)
test_rq = (struct test_request *)rq->elv.priv[0];
BUG_ON(!test_rq);
- test_pr_info("%s: request %d completed, err=%d",
+ test_pr_debug("%s: request %d completed, err=%d",
__func__, test_rq->req_id, err);
test_rq->req_completed = true;
@@ -671,6 +674,7 @@ int test_iosched_start_test(struct test_info *t_info)
goto error;
}
+ ptd->test_info.test_duration = jiffies;
ret = run_test(ptd);
if (ret) {
test_pr_err("%s: failed to run the test\n", __func__);
@@ -680,6 +684,7 @@ int test_iosched_start_test(struct test_info *t_info)
test_pr_info("%s: Waiting for the test completion", __func__);
wait_event(ptd->wait_q, ptd->test_state == TEST_COMPLETED);
+ t_info->test_duration = ptd->test_info.test_duration;
del_timer_sync(&ptd->timeout_timer);
ret = check_test_result(ptd);