From b5bec249a9b43ebbd5a9df1bd31bc3f94c2e77b3 Mon Sep 17 00:00:00 2001 From: Lee Susman Date: Mon, 22 Sep 2014 17:48:44 +0300 Subject: block: test-iosched: expose sector_range variable to user Expose "sector_range", which will indicate to the low-level driver unit-tests the size (in sectors, starting from "start_sector") of the address space in which they can perform I/O operations. This user-defined variable can be used to change the address space size from the default 512MiB. Change-Id: I515a6849eb39b78e653f4018993a2c8e64e2a77f Signed-off-by: Lee Susman --- include/linux/test-iosched.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/linux') diff --git a/include/linux/test-iosched.h b/include/linux/test-iosched.h index 2dae014dbe58..61c15214121c 100644 --- a/include/linux/test-iosched.h +++ b/include/linux/test-iosched.h @@ -80,6 +80,8 @@ enum req_unique_type { * @debug_test_result: Exposes the test result to the user * space * @start_sector: The start sector for read/write requests + * @sector_range: Range of the test, starting from start_sector + * (in sectors) */ struct test_debug { struct dentry *debug_root; @@ -87,6 +89,7 @@ struct test_debug { struct dentry *debug_tests_root; struct dentry *debug_test_result; struct dentry *start_sector; + struct dentry *sector_range; }; /** @@ -193,6 +196,8 @@ struct blk_dev_test_type { * new BIOs. * @start_sector: The address of the first sector that can * be accessed by the test + * @sector_range: Range of the test, starting from start_sector + * (in sectors) * @wr_rd_next_req_id: A unique ID to identify WRITE/READ * request to ease the debugging of the * test cases @@ -226,6 +231,7 @@ struct test_iosched { struct request_queue *req_q; int num_of_write_bios; u32 start_sector; + u32 sector_range; int wr_rd_next_req_id; int unique_next_req_id; spinlock_t lock; -- cgit v1.2.3